trace_summary
Summarize trace session details including step count, errors, and timing for monitoring and debugging agent safety operations.
Instructions
Get a summary of the current trace session — step count, errors, timing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "trace_summary"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/agent_safety_mcp/server.py:331-335 (handler)The implementation of the 'trace_summary' MCP tool. It retrieves the tracer and returns its summary.
@mcp.tool() def trace_summary() -> dict: """Get a summary of the current trace session — step count, errors, timing.""" tracer = _get_tracer() return tracer.summary()