Skip to main content
Glama

audit_trace_file

Audit local inferdiff trace files offline to surface P0/P1 protocol breaches and frame statistics for debugging streaming issues.

Instructions

Audit a local inferdiff trace offline and return P0/P1 findings and frame statistics.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "trace_path": "<trace_path>"
    },
    "name": "audit_trace_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
trace_pathYesPath to a local inferdiff .trace.jsonl recording.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden. It does disclose two meaningful traits: the operation runs offline against a local file, and it returns P0/P1 findings plus frame statistics. It does not state whether the tool is read-only, what permissions or setup it needs, or how large a trace it can handle, leaving notable gaps for an unannotated tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single well-formed sentence that front-loads the action and scope and ends with the expected output. There is no redundant or filler wording.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, no-output-schema tool the description is nearly complete: it states the input domain (offline local trace) and summarizes the return content. Minor gaps remain around P0/P1 semantics and any size or permission constraints, but nothing essential to invoking it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is a single parameter with 100% schema description coverage, so the schema already documents the path and its required .trace.jsonl extension. The description adds no syntax or format detail beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb (audit), a specific resource (a local inferdiff .trace.jsonl recording), and a stated output (P0/P1 findings and frame statistics). It is clear what the tool does, though the domain term 'inferdiff' is unexplained and it does not explicitly distinguish itself from siblings like replay_trace_bundle or audit_sse_text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The word 'offline' and 'local' implicitly frame this as file-based analysis rather than live/proxy inspection, which is useful context. However, there is no explicit when-to-use or when-not-to-use guidance and no named alternative for cases such as replaying a trace bundle or auditing SSE text.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.