TopicForge demonstrates solid tool design with consistent naming (verb_noun pattern), comprehensive parameter descriptions, and well-documented schemas. All 10 tools follow the verb-first convention (health_check, list_topics, get_topic_info, sample_messages, analyze_bag, list_participants, peek_dds_samples, topic_metrics, detect_qos_mismatch, list_participant_events). Descriptions are detailed (100-400 chars typical) and explain WHAT, WHEN, and prerequisites. Parameters include type definitions, ranges, and constraints. However, output schemas are described in prose rather than as explicit JSON Schema objects, and error handling guidance is present but could be more actionable. No tool annotations (readOnlyHint, destructiveHint) are visible in the code.
Summarize a ROS2 bag at `path`. Returns a `BagAnalysis` carrying storage format, total duration, message count, per-topic stats, detected anomalies, and `mode_effective` (`"live"` or `"mock"`) so callers can tell a real bag analysis from a mock fixture. **Live mode** shells out to `ros2 bag info` and accepts `.mcap`, `.db3`, and `.bag` files plus `rosbag2_*` directories ; **mock mode** returns rich fixture data regardless of path suffix (except blatantly non-bag extensions). **Raises an MCP error** if the path is malformed, missing in live mode, or unparseable. Deep anomaly detection is mock-only at MVP. Read-only ; no side effects.
Detect QoS mismatches between publishers and subscribers on a topic. Returns a `MismatchReport` carrying the topic name, a list of mismatches (each with `publisher_guid`, `subscriber_guid`, `policy`, `publisher_value`, `subscriber_value`), and `mode_effective` (`"live"` or `"mock"`). **Live mode** requires an active DDS backend (install `pip install topicforge[dds]` and set `TOPICFORGE_DDS_BACKEND=cyclone`); **mock mode** returns deterministic fixtures with synthetic mismatches. **Raises an MCP error** when no DDS module is active in live mode. Read-only ; no side effects.
Return detailed info for a single ROS2 topic. `topic` must be a fully qualified topic name, e.g. `/cmd_vel`. Returns a `TopicInfo` carrying `mode_effective` (`"live"` or `"mock"`) so callers can distinguish a real-graph hit from a mock fixture. **Raises an MCP error** (isError=true) if the topic name is malformed or the topic is unknown to the active graph. Read-only ; no side effects.
Report TopicForge environment state: effective runtime mode (`"live"` or `"mock"`), whether the `ros2` CLI is on PATH, `ROS_DISTRO`, the server version, the server-side sample cap, the active DDS backend (`mock`/`cyclone`/`rti`/`none`), and the observed DDS domain id when applicable. Returns a `HealthReport`. **Always succeeds**. Call this first when something looks wrong, since every other tool may raise. Read-only ; no side effects.
Output schemas documented in prose only; no explicit JSON Schema definitions visible for return types (HealthReport, TopicInfo, SampleResult, BagAnalysis, ParticipantInfo, TopicMetrics, MismatchReport, ParticipantEvent). LLMs cannot parse prose descriptions to infer response structure for chaining.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) visible in tool definitions. All 10 tools are read-only and idempotent, but this is not formally declared to clients.
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 63 | <=2025-11-25 | v2 |
List DDS participant lifecycle events (joins, leaves, heartbeats) observed on a domain over a time window. Returns `list[ParticipantEvent]`: each entry carries `timestamp_ns`, `event_type` (`join`/`leave`/`heartbeat`), `participant_guid`, `vendor`, optional `hostname`, and `mode_effective` (`"live"` or `"mock"`). **Live mode** requires an active DDS backend (install `pip install topicforge[dds]` and set `TOPICFORGE_DDS_BACKEND=cyclone`); **mock mode** returns deterministic fixtures. **Raises an MCP error** when no DDS module is active in live mode. Read-only ; no side effects.
List DDS participants observed on a domain. Returns `list[ParticipantInfo]`: each entry carries `guid`, `vendor` (`cyclone`/`rti`/`mock`/`unknown`), optional `hostname`, `domain_id`, and `mode_effective` (`"live"`/`"mock"`). **Distinct from ROS2 graph nodes**: operates at the raw DDS layer beneath ROS, useful for non-ROS DDS stacks or for diagnosing why a participant isn't seen by the ROS graph. **Read-only by architecture**: the underlying `MiddlewareAdapter` protocol does not expose a write method, so this tool cannot publish, modify QoS, or alter the bus. **Raises an MCP error** when no DDS module is active (install `pip install topicforge[dds]` and set `TOPICFORGE_DDS_BACKEND=cyclone`). With the v0.2.0 `CycloneDdsAdapter` stub, also raises with a v0.2.x roadmap pointer ; mock backend returns deterministic fixtures.
List every ROS2 topic on the current graph (or the deterministic mock graph in mock mode). Returns `list[TopicInfo]`: each entry carries `name`, `message_type`, `publisher_count`, `subscriber_count`, `qos_reliability`, and `mode_effective` (`"live"` or `"mock"`) so a downstream LLM can distinguish a real graph from demo fixtures. **Empty list** when the graph has no topics or when live discovery times out. Read-only ; no side effects.
Peek raw DDS samples from a topic on the bare middleware layer. Returns a `SampleResult` envelope carrying the topic name, actual sample count, the samples themselves, and `mode_effective` (`"live"` or `"mock"`). **Distinct from `sample_messages`**: that tool reads the ROS2 graph ; this one reads the raw DDS layer, useful for non-ROS DDS stacks or for diagnosing why a ROS2 topic isn't seeing expected traffic. **Live mode** requires an active DDS backend (install `pip install topicforge[dds]` and set `TOPICFORGE_DDS_BACKEND=cyclone`); **mock mode** returns deterministic fixtures. **Raises an MCP error** when no DDS module is active in live mode. Read-only ; never publishes to the bus.
Peek up to `count` recent ROS2 messages from `topic`, sampled from the runtime graph. `topic` must be a fully qualified name (see the `topic` parameter description). `count` defaults to 5 and is silently clamped to 50: request more and you receive at most 50 without warning. Returns a `SampleResult` envelope `{topic, count, samples, mode_effective}` where `count` is the actual number of samples returned (may be 0) and `mode_effective` is `"live"` or `"mock"`. **Live mode** shells out to `ros2 topic echo --csv --once` with a short timeout, so the result is empty when no publisher is currently active. `samples[i].timestamp_ns` is the message's `header.stamp` (publish time) when the message is `Header`-stamped, and 0 for headerless types (e.g. `std_msgs/String`). The live parser exposes fields as positional CSV columns under `samples[i].payload` keys `col_0`, `col_1`, ..., with the verbatim CSV row under the reserved `_raw_text` key. **Mock mode** returns deterministic samples with monotonically increasing timestamps for the fictional demo robot (and no `_raw_text` key, since the payload is already structured). Read-only ; never publishes to the bus. **Distinct from `peek_dds_samples`**: that tool reads the raw DDS layer ; this one reads the ROS2 graph.
Compute per-topic metrics on the DDS layer: message rate (Hz), latency percentiles (p50/p95/p99 ms), sequence gaps, and QoS profile summary. Returns a `TopicMetrics` envelope carrying the topic name, the metrics dict, and `mode_effective` (`"live"` or `"mock"`). **Live mode** requires an active DDS backend (install `pip install topicforge[dds]` and set `TOPICFORGE_DDS_BACKEND=cyclone`); **mock mode** returns deterministic fixtures with synthetic anomalies (e.g. a gap at sequence 50). **Raises an MCP error** when no DDS module is active in live mode. Read-only ; no side effects.
Error messages are descriptive but lack actionable recovery guidance. E.g., 'Raises an MCP error if the topic name is malformed' does not tell the LLM what to do next (e.g., 'Call list_topics() to see valid topic names').
STDIO-only transport limits remote accessibility. Hosted MCP clients (Claude Desktop, web-based agents) cannot invoke this server without local setup.
Parameter 'count' in sample_messages and peek_dds_samples silently clamps to 50 without warning. LLM may request 100 samples expecting 100 but receive 50, causing silent data loss in reasoning.