Skip to main content
Glama

Analyze CAN trace

analyze_trace
Read-onlyIdempotent

Analyze a whole CAN trace of a UDS diagnostic or flash session and say what went wrong. Accepts candump logs, Vector ASC, PEAK TRC (1.x/2.x), SavvyCAN or python-can CSV pasted as text, and those plus Vector BLF, Wireshark pcap/pcapng (SocketCAN) and ASAM MF4 bus logging uploaded as a file. Reassembles ISO-TP, pairs requests with responses (including 0x78 responsePending), measures P2/P2*, follows sessions and security access, reconstructs RequestDownload/TransferData into an image with CRC32, extracts identification DIDs, and returns a root-cause finding with the frames that show it. Shows an interactive timeline.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileNoAn uploaded trace file: text formats above, or binary BLF, pcap, pcapng, MF4.
traceNoTrace text (candump, ASC, TRC or CSV). Use this or file.
formatNoDefault auto-detect.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / file / description
      Previous value: -"An uploaded trace file."New value: +"An uploaded trace file: text formats above, or binary BLF, pcap, pcapng, MF4."
    • changedInput schema / properties / trace / description
      Previous value: -"The trace text (candump, ASC, TRC or CSV). Use this or file."New value: +"Trace text (candump, ASC, TRC or CSV). Use this or file."
  2. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), yet the description adds substantial process detail beyond them: ISO-TP reassembly, request/response pairing including 0x78 responsePending, P2/P2* timing, session and security-access tracking, RequestDownload/TransferData reconstruction with CRC32, and DID extraction. This tells the agent exactly what the analysis performs.

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?

Front-loads the purpose in the first sentence, then packs the accepted formats and analysis steps into a single dense second sentence where every clause names a concrete capability. No filler or restated boilerplate.

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?

No output schema exists, and the description compensates by stating the return: a root-cause finding with the supporting frames plus an interactive timeline. Combined with the input-format guidance, an agent has everything needed to call and expect results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real value by mapping formats to parameters: text formats (candump, ASC, TRC, CSV) go in 'trace' or 'file', while binary formats (BLF, pcap/pcapng, MF4) require 'file' upload. That clarifies which parameter each format belongs in.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Analyze a whole CAN trace of a UDS diagnostic or flash session and say what went wrong.' The scope word 'whole trace/session' distinguishes it from the frame-level decoders (decode_isotp, decode_uds) in the sibling set.

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?

Implies usage by scoping to an entire diagnostic/flash session rather than individual frames, which steers agents away from the single-frame decoders. However, it never explicitly names an alternative or states when NOT to use it, so routing rests on inference.

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.