Skip to main content
Glama

analyzer_start

Starts a background USB capture between TARGET-C (host) and TARGET-A (device), loading analyzer gateware as needed; poll status or read data, then stop.

Instructions

Start a background USB capture between TARGET-C (host) and TARGET-A (device). Loads the analyzer gateware if needed (stops other gateware). Poll with analyzer_status/analyzer_read, end with analyzer_stop.

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

Input Schema

NameRequiredDescriptionDefault
speedNoBus speed to capture; auto detects it (r0.6+ boards).auto
duration_sNoAuto-stop after this many seconds (None = run until analyzer_stop).
vbus_from_auxNoPower control: feed VBUS from the AUX port.
buffer_packetsNoRing buffer size in records.
include_linestateNoKeep LINESTATE_* bus events in the buffer (very verbose: ~8 per packet). Counted in status either way.
auto_load_gatewareNoLoad the analyzer gateware first if another mode is active.
discharge_target_aNoPower control: discharge TARGET-A VBUS.
vbus_from_target_cNoPower control: feed VBUS from TARGET-C (None = default pass-through).
include_sof_in_bufferNoKeep SOF packets in the buffer (high volume at FS/HS).
vbus_from_control_hostNoPower control: feed VBUS from the CONTROL host.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already establish this is a non-read-only, non-destructive, closed-world action, so the safety profile is mostly covered. The description adds genuinely useful behavioral detail: it loads gateware if needed and that load stops other gateware, which is a side effect an agent needs to know about. It still does not say whether the call returns immediately, how buffering behaves once the ring fills, or what happens if a capture is already running.

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 sentences, zero waste, and the core action is front-loaded ahead of lifecycle and side-effect notes. Every clause carries information the agent cannot get elsewhere in the definition.

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 10 optional parameters, an output schema, and existing annotations, the description covers purpose, side effects, and lifecycle adequately. It leaves the power-control parameters and the async return semantics entirely to the schema, which is acceptable but means the narrative is thin for a tool with this many options.

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 every parameter including speed, duration_s, buffer_packets and the vbus_* power controls is already documented in the schema. The description adds no parameter-level meaning beyond that, which makes the baseline 3 appropriate.

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 ("Start a background USB capture") and pins down the endpoint roles: TARGET-C is host, TARGET-A is device. It does not distinguish itself from the analyzer_capture sibling, so an agent must consult the schema to know which capture entry point applies.

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?

The description gives an explicit lifecycle workflow: poll with analyzer_status/analyzer_read, end with analyzer_stop. That is clear operational context, but it offers no exclusion rule for when not to use this tool, nor does it contrast with the other capture-starting tool in the catalog.

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