Skip to main content
Glama

Agent trace analyser

submit_agent_trace_analyser
Idempotent

Summarise an agent trace: span count, total and slowest duration, and error spans. When a trace has been exported and needs summarising. Do not choose this when you need live trace data from a backend, which needs access. Example requests: Analyse this agent trace and tell me where the time went. | Summarise these spans and count the errors. | What is slowest in this agent run?

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": {
      "inputs": "<inputs>",
      "authorized_by": "<authorized_by>"
    },
    "name": "submit_agent_trace_analyser"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputsYes
quote_idNoThe quote_id from POST /v1/jobs; required when priced.
buyer_tokenNoThe buyer_token returned with your first purchase. It opens the purchase history for that buyer, including earlier deliverables.
authorized_byYesIdentifier of the human or agent authorizing this job.
accepted_priceNoThe quoted amount, echoed exactly; checked against the quote.
idempotency_keyNoRetry key; the same key returns the same job.
payment_signatureNox402 payment payload; required for a priced capability (see submit_job).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / buyer_token
      Added value: +{
      +  "description": "The buyer_token returned with your first purchase. It opens the purchase history for that buyer, including earlier deliverables.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. Changed5 schema fields changed
    • changedInput schema / properties / accepted_price / description
      Previous value: -"The amount accepted, exactly as quoted (for example \"5.00\" or 5). Checked against the stored quote, so a price that moved between quote and authorize is refused rather than silently absorbed. Optional, but sent to make the acceptance explicit."New value: +"The quoted amount, echoed exactly; checked against the quote."
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Retry key. Re-sending the same key returns the same job instead of running it twice."New value: +"Retry key; the same key returns the same job."
    • changedInput schema / properties / payment_signature / description
      Previous value: -"Base64-encoded x402 payment payload (the value the HTTP interface puts in the PAYMENT-SIGNATURE header), signed for the amount in the payment requirement the first call returned. Required for a priced capability; nothing is charged until the work completes."New value: +"x402 payment payload; required for a priced capability (see submit_job)."
    • changedInput schema / properties / quote_id / description
      Previous value: -"The quote_id returned by POST /v1/jobs. Required to authorize a priced capability; the service rejects a priced job that does not name the quote it issued."New value: +"The quote_id from POST /v1/jobs; required when priced."
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "access_token": {
      -      "description": "Per-job credential. Present it as the X-Job-Token header to read the job or list it. Keep it; it is the only credential for this job.",
      -      "type": "string"
      -    },
      -    "artifacts": {
      -      "type": "array"
      -    },
      -    "capability_id": {
      -      "type": "string"
      -    },
      -    "job_id": {
      -      "type": "string"
      -    },
      -    "quote": {
      -      "type": "object"
      -    },
      -    "state": {
      -      "enum": [
      -        "received",
      -        "rejected",
      -        "quoted",
      -        "authorized",
      -        "executing",
      -        "deferred",
      -        "queued",
      -        "verifying",
      -        "completed",
      -        "failed",
      -        "timed_out",
      -        "cancelled"
      -      ]
      -    },
      -    "verification": {
      -      "description": "Independent verification. verification.ok = false means the job failed, not a partial success.",
      -      "type": "object"
      -    }
      -  },
      -  "required": [
      -    "job_id",
      -    "state"
      -  ],
      -  "type": "object"
      -}New value: +null
  3. Changed2 schema fields changed
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Retry key. Re-sending the same key returns the same job instead of running it twice.",
      +  "type": "string"
      +}
    • addedInput schema / properties / payment_signature
      Added value: +{
      +  "description": "Base64-encoded x402 payment payload (the value the HTTP interface puts in the PAYMENT-SIGNATURE header), signed for the amount in the payment requirement the first call returned. Required for a priced capability; nothing is charged until the work completes.",
      +  "minLength": 1,
      +  "type": "string"
      +}
  4. Changed1 schema field changed
    • changedOutput schema / properties / state / enum
      Previous value: -[
      -  "received",
      -  "rejected",
      -  "quoted",
      -  "authorized",
      -  "executing",
      -  "deferred",
      -  "verifying",
      -  "completed",
      -  "failed",
      -  "timed_out",
      -  "cancelled"
      -]New value: +[
      +  "received",
      +  "rejected",
      +  "quoted",
      +  "authorized",
      +  "executing",
      +  "deferred",
      +  "queued",
      +  "verifying",
      +  "completed",
      +  "failed",
      +  "timed_out",
      +  "cancelled"
      +]
  5. Added

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=true, so the safety and retry profile is covered. The description adds one genuine behavioral constraint beyond them: the trace must be supplied as exported text, not fetched live. However it says nothing about the dominant traits of this tool—that it submits a priced, authorized job rather than returning results directly, and that quoting/payment are involved—leaving that entirely to the schema.

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?

The purpose is front-loaded in the first sentence, followed by usage guidance, with example phrasings last. Nothing is redundant, though the three example requests are somewhat verbose filler relative to the short normative sentences preceding them.

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

Completeness5/5

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

For a job-submission tool with no output schema, the description covers what the result contains (span count, durations, errors) and what input is expected (an exported trace). The pricing/payment mechanics are fully documented in the input schema, so the description does not need to repeat them.

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 86% and the schema already documents trace format, quote_id, buyer_token, accepted_price, idempotency_key and payment_signature. The description adds no meaning to any parameter; it never mentions that a trace must be pasted as text, nor clarifies the authorization or payment fields. Baseline 3 applies where 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?

The first sentence gives a specific verb ('summarise') plus the concrete outputs: span count, total and slowest duration, error spans. That is far better than the bare title 'Agent trace analyser' and lets an agent predict the response. It only stops short of a 5 because it never frames itself against the many submit_* siblings by name or function.

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

Usage Guidelines4/5

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

It gives both a positive trigger ('when a trace has been exported and needs summarising') and a negative one ('do not choose this when you need live trace data from a backend'). That is real when/when-not guidance. The exclusion sentence is grammatically garbled ('which needs access'), and no concrete alternative tool is named, so it isn't a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources