Skip to main content
Glama

inspect_ros_topic

Read-onlyIdempotent

Samples a ROS topic for 0.1–30 seconds, bounded by the configured sample cap, and compares Header timestamps with callback-arrival intervals to diagnose timing jitter and clock mismatches.

Instructions

Sample one topic for 0.1..30 seconds, bounded by configured sample cap; inspect Header and callback-arrival intervals separately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYes
duration_sNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNo
errorNo
sourceYes
statusNovalid
warningsNo
measurementsNo
schema_versionNo1.0
observed_at_utcNo
measurement_kindNoobserved

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered. The description adds genuine behavioral context the annotations don't: sampling is time-bounded (0.1–30 s), capped by a configured sample limit, and reports Header timing separately from callback-arrival timing.

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?

A single dense sentence that front-loads the verb, the scope and the two timing dimensions; nothing is redundant or padded.

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?

An output schema exists, so return values need not be explained, and annotations cover safety. What remains thin is routing guidance against the many sibling ROS/time tools, which the description does not address.

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 0%, but with only two parameters and all constraints (min 0.1, max 30, default 5, topic regex) encoded in the schema, the burden is light. The description only restates the duration range and says nothing about the topic string beyond what the pattern shows, so it adds marginal value.

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 gives a specific verb and resource: sample one topic and split inspection into Header vs callback-arrival intervals, which tells the agent exactly what analysis is performed. 'One topic' implicitly separates it from compare_ros_topics and list_ros_topics, but no sibling is named explicitly.

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 when-to-use or when-not-to-use guidance and no named alternative. The agent must infer from the name and from the sibling list whether this or analyze_ros_timestamps / compare_ros_topics is the right entry point.

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