Skip to main content
Glama
dbsectrainer

mcp-agent-trace-inspector

by dbsectrainer

trace_end

Mark a trace as completed to finalize an agent workflow and prevent any further steps from being added.

Instructions

Mark a trace as completed. No further steps should be added after this call. Example: { "trace_id": "abc-123" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
trace_idYesID of the trace to complete. Example: "abc-123-def-456"

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the agent knows this is a non-destructive mutation. The description adds the terminal-finality trait, but says nothing about idempotency or what happens if the trace is already ended or does not exist.

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

Conciseness4/5

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

Two short sentences plus an example, with the core action front-loaded. The example partially duplicates the schema example, which is slightly redundant but not wasteful.

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 terminal-marker tool with no output schema, the description covers the essential action and the key sequencing rule. Error behavior and idempotency are the only notable omissions, which are minor at this complexity.

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?

Schema description coverage is 100% for the single trace_id parameter, so the schema already carries the semantics and the description's inline example duplicates the schema's own example. Baseline 3 applies when the schema does the heavy lifting.

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?

States a specific verb and object ('Mark a trace as completed'), which is unambiguous about the operation performed. It does not explicitly contrast itself with siblings like trace_start or trace_step, but the start/step/end naming family makes the role inferable.

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 ordering constraint 'No further steps should be added after this call' is genuine timing guidance, telling the agent this is terminal. However, it names no alternatives or conditions for when to leave a trace open instead, so usage is only implied rather than explicit.

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