| name | analyze-agent-transcript-mcp-action-performance |
| description | For each MCP tool call in a Transcript Segment, assess whether the call helped or hurt the Segment's Goal, whether its response shape was usable, and whether its token cost was proportionate. Output recommendations to modify tool implementations or response shapes — or to delete tools that are net-negative.
|
| user-invocable | false |
Analyze MCP action performance
Per-Segment analyzer. Focuses on the behavior of MCP tools that ran — their response shape, token cost, error messages, and side effects.
Inputs
segment: a Segment from segments.json (Goal, Outcome, meta.event_range). The orchestrator hands you the Segment directly — you do not walk raw JSONL.
transcript.json: the OpenTranscripts Transcript document. Dereference event ids from segment.meta.event_range into transcript.json events[] to find MCP ToolCall events, their paired ToolResult events, and the events those responses caused.
external_context (optional): external-context.json if present.
philosophy_mcp: the philosophy-on-mcp reference
Output
This is the item body. The orchestrator wraps it with id / segment_id / analyzer (see the orchestrator's "Findings-item shape" section) — emit only the fields below.
{
"calls": [
{
"tool": "...",
"called_at_event": "<event id>",
"outcome": "helpful" | "neutral" | "hurtful",
"response_shape_issue": "<too-verbose | too-terse | wrong-fields | unparseable | none>",
"tokens_estimate": N,
"turns_caused": N,
"error_quality": "<good | bad | none>",
"recommendation": {"kind": "none" | "modify_response" | "modify_implementation" | "remove_tool", "details": "..."}
}
]
}
called_at_event and any evidence cite OpenTranscripts event ids (the id strings in transcript.json), never integer turn numbers. When this Segment made no MCP tool call, return nothing; the orchestrator omits the item rather than writing one with an empty calls array.
Sequencing checklist
Notes
- A tool call that was perfect in this Segment should produce
kind: "none".
- Token cost is a first-class concern. A "correct but verbose" tool can be more expensive than a missing tool — flag it accordingly.
- A
modify_response / modify_implementation here is the owner of any defect in an existing MCP tool that fired. When an MCP tool was called and the fix is to its body, response shape, or implementation, this analyzer's recommendation is the canonical finding — analyze-agent-transcript-mcp-gaps must not also propose a new server/tool for the same defect (it defers). If a failure-hypothesis seed routed analyze-agent-transcript-mcp-gaps at the same defect, expect the gap analyzer to record the deferral and let synthesize-agent-transcript-analysis-report reconcile to this recommendation.