# Building Tower Trace: stopping agent tool calls and proving it in SigNoz

· Source: AI on Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cybersecurity & Data Privacy, Robotics & Autonomous Systems · Depth: Intermediate, medium

Summary

Tower Trace is a system designed to prevent AI agents from executing expensive or malicious tool calls by intercepting and controlling every agent tool invocation. Developed for the SigNoz hackathon, it addresses the inadequacy of prompt-only safety for agents with capabilities like reading tickets, drafting emails, hitting URLs, running DB queries, and exporting customer CSVs. The system's kernel enforces policies, checks budgets (e.g., \$0.10 per job for tenant "globex"), and manages approvals before allowing tools to run. Decision trails are sent to SigNoz, which is self-hosted with Foundry, accessible via "localhost:8080" for UI, "4317" for OTLP gRPC, and "8000" for MCP. Tower Trace demonstrates its effectiveness through three scenarios: a "happy" path with [ALLOW] lines, an "injection" scenario where a malicious ticket "TKT-666" triggers a "deny-export-untrusted" rule, and a "runaway" scenario where an agent is "killed_budget" after exceeding its cost limit. SigNoz provides dashboards, alerts (e.g., "tower-critical-deny", "tower-budget-kill"), and saved views for operational visibility.

Key takeaway

For AI Engineers building agentic systems, relying solely on LLM prompts for safety is insufficient when tools are involved. You must implement an explicit control plane, like Tower Trace's kernel, to intercept and enforce policies on every tool call. This approach ensures that malicious or expensive actions are genuinely stopped, not just refused in chat. Integrate robust observability, such as SigNoz, to verify policy enforcement and provide forensic data for denied or killed jobs, enabling transparent and auditable agent operations.

Key insights

Agent tool calls require explicit control plane enforcement, not just prompt-based safety, with observability for verification.

Principles

Method

An agent's tool request goes through policy evaluation, budget check, and potential approval before execution, with all decisions recorded.

In practice

Topics

Code references

Best for: AI Engineer, MLOps Engineer, AI Security Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by AI on Medium.