Skip to main content
Glama

analyzer_read

Read-onlyIdempotent

Read decoded USB capture packets and bus events from the buffer for live or post-capture analysis, using sequence-based polling to fetch only new records.

Instructions

Read decoded capture records (packets with PID/address/endpoint/data/CRC check, and bus events) from the buffer. Use next_seq for incremental polling. Works during and after a capture.

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": "analyzer_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
rawNoInclude raw packet bytes as hex.
pidsNoOnly these PIDs, e.g. ['SETUP','DATA0','IN'].
kindsNoRecord kinds to include (default both).
limitNoMaximum records to return.
addressNoOnly tokens/transactions for this device address.
endpointNoOnly this endpoint number.
start_seqNoFirst record sequence number (None = oldest available).
include_nakNoInclude NAK handshakes.
include_sofNoInclude SOF packets.
only_errorsNoOnly records with invalid PID or bad CRC.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered without prose. The description adds genuinely new behavioral context: reads come from a bounded buffer, they are served both during and after a capture, and incremental polling is supported via sequence numbers. It does not discuss buffer eviction or how analyzer_clear affects availability, which keeps it from a 5.

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?

Three short sentences with the core action front-loaded and no filler; the buffer/content detail comes before the usage hints. The only blemish is the off-schema 'next_seq' reference, which costs a bit of precision without costing length.

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

Completeness4/5

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

With an output schema present, return values need no explanation, and all ten parameters are schema-documented, so the description's main job is placement in the workflow — which it does by stating buffer origin and validity during and after capture. What is missing is how the buffer's finite/clearing behavior affects reads (relationship to analyzer_clear), a real gap for a tool whose data can be discarded.

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 ten parameters including ranges, defaults and enum values are already fully documented in structured form; baseline is 3. The description adds only the incremental-polling hint, and it does so using 'next_seq', a name that does not exist in the schema (the parameter is 'start_seq'), which is mildly confusing rather than clarifying.

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 description names a specific verb and resource ('Read decoded capture records ... from the buffer') and enumerates the record shape (PID/address/endpoint/data/CRC plus bus events), so an agent knows this is record-level access rather than a summary or transaction view. It stops short of naming a sibling to contrast with, but the scope is concrete enough to distinguish it from analyzer_summary or analyzer_transactions.

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?

It gives one real usage instruction — 'Use next_seq for incremental polling' — and a state condition, 'Works during and after a capture', which tells the agent the tool is valid mid-capture. There is no explicit when-not guidance or pointer to an alternative (e.g., a transaction-level or summary tool) for higher-level views, so guidance is implied rather than complete.

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