Skip to main content
Glama

analyzer_transactions

Read-onlyIdempotent

Group captured USB packets into transactions with token, data, and handshake phases, and decode SETUP requests for control-transfer analysis.

Instructions

Group captured packets into transactions (token + data + handshake), decoding SETUP requests.

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_transactions"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum transactions to return.
addressNoOnly this device address.
endpointNoOnly this endpoint number.
start_seqNoFirst packet sequence number (None = oldest).
include_nakNoInclude NAKed transactions.
include_sofNoInclude SOF packets.
decode_setupNoDecode SETUP data as standard control requests.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds useful context: transactions are reconstructed from token/data/handshake phases and SETUP payloads are decoded by default. It does not discuss ordering, pagination, or what an incomplete/halted transaction looks like, so it modestly exceeds the annotation baseline.

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?

A single dense sentence that front-loads the core action and then qualifies it with the phase composition and SETUP decoding. No filler, though the parenthetical is slightly cryptic without domain knowledge of USB transaction phases.

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?

With an output schema present, the return shape need not be explained, and all parameters are covered by schema descriptions. What is missing is workflow context: whether a capture must be running or stopped, and how the limit/start_seq interact with sequential grouping across a capture boundary.

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 all seven parameters including limit, address, endpoint, start_seq, include_nak, include_sof and decode_setup are already documented. The description only reinforces the decode_setup behavior in prose; it adds no filtering or sequencing semantics beyond the schema.

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 — 'group captured packets into transactions' — and clarifies that a transaction spans token + data + handshake stages, plus SETUP decoding. This clearly differentiates it from packet-level siblings like decode_usb_packet, though it doesn't explicitly name an alternative.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no prerequisite that a capture must exist first, and no mention of when to prefer this over analyzer_summary or decode_usb_packet. Usage is only implied by the phrase 'captured packets'.

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