Skip to main content
Glama
CubeAPM MCP Server

CubeAPM MCP Server

get_trace

Fetch a complete trace by ID from CubeAPM to inspect all spans and full details for debugging service errors or latency.

Instructions

Fetch a complete trace by its ID from CubeAPM. Returns all spans in the trace with full details.

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_id": "<trace_id>",
      "start": "<start>",
      "end": "<end>"
    },
    "name": "get_trace"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYesEnd timestamp in RFC3339 format or Unix seconds
startYesStart timestamp in RFC3339 format or Unix seconds
trace_idYesThe hex-encoded trace ID to fetch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose the return shape at a high level ('all spans in the trace with full details'), which is useful, but it says nothing about permission requirements, what happens when the trace ID is not found, or any size/volume limits on the returned span set.

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?

Two short sentences with no filler, front-loaded with the action and resource. Every clause contributes information; nothing is redundant with the title or schema.

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

Completeness3/5

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

For a simple three-parameter read tool with no output schema, the description covers the essentials of what it does and roughly what comes back. It falls short on error behavior, permissions, and the purpose of the required time bounds, which an agent would need to call it confidently.

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%, so the schema already documents all three parameters and their formats, making 3 the baseline. The description reinforces that trace_id is the lookup key but adds nothing about why start and end are mandatory for an ID-based fetch, which is the one non-obvious semantic gap.

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 resource: 'Fetch a complete trace by its ID from CubeAPM.' The 'by its ID' phrasing implicitly separates it from the sibling search_traces, which takes query criteria rather than an exact identifier. It does not name the sibling explicitly, so differentiation is inferred rather than stated.

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?

Usage is only implied: an agent can infer this is the tool for when it already holds a trace ID, versus search_traces for discovery. There is no explicit when-to-use statement, no mention of what to do when the ID is unknown, and no exclusions.

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