Skip to main content
Glama

monitor

Captures CAN frames for a specified duration or frame limit and returns structured JSON, enabling agents to inspect bus traffic during diagnostics.

Instructions

Time-bounded capture of CAN frames into one response.

    Requires open_device. Collects up to max_frames for up to duration_s
    (hard cap 30s), then returns. Use receive_frame for a single next frame;
    use run_scenario wait_* steps for ID-matched waits. Returns JSON Result
    with data.frames[], count, and truncated.
    

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": {
      "device": "<device>"
    },
    "name": "monitor"
  }
}

Input Schema

NameRequiredDescriptionDefault
deviceYesDevice alias from config / list_devices
duration_sNoCapture window in seconds; capped at 30
max_framesNoStop early after this many frames; default 500

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.4
    • addedInput schema / properties / device / description
      Added value: +"Device alias from config / list_devices"
    • addedInput schema / properties / duration_s / description
      Added value: +"Capture window in seconds; capped at 30"
    • addedInput schema / properties / max_frames / description
      Added value: +"Stop early after this many frames; default 500"
  2. First observedv0.1.3

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the capture window, the hard 30s cap, early stopping at max_frames, and the returned fields (data.frames[], count, truncated). It does not describe blocking behavior, error handling, or interaction with concurrent device operations, but the annotations already cover safety and world-openness.

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?

The description is short, front-loaded with the core behavior, and each sentence adds useful information: purpose, prerequisite, limits/return, and alternatives. There is no unnecessary wording or structure that would obscure selection.

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?

Given the output schema and annotations, the description supplies enough context to invoke the tool correctly: prerequisite, capture limits, return shape, and the sibling alternatives. Nothing essential for a monitor-style capture tool appears to be missing.

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 device, duration_s, max_frames, defaults, and the 30s cap. The description reinforces the combined limit semantics and early-stop behavior, but adds only modest meaning beyond what the schema already provides.

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?

The description states a specific verb and resource: time-bounded capture of CAN frames into one response. It also explicitly distinguishes this from receive_frame for a single next frame and run_scenario wait_* for ID-matched waits, so an agent can tell exactly what this tool does versus siblings.

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

Usage Guidelines5/5

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

It gives the key prerequisite (Requires open_device) and names the alternatives with their selection conditions: receive_frame for one frame, run_scenario wait_* for ID-matched waits. This is explicit when-to-use guidance with clear alternatives.

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