Skip to main content
Glama

ros2_mock_publish_sequence

Publish a sequence of mock messages to a ROS2 topic to stimulate and test subscriber nodes. Specify the topic, message type, message list, and optional delay between messages.

Instructions

Publish a sequence of mock messages to stimulate and test subscriber nodes.

    Args:
        topic: Target topic name
        topic_type: Message type identifier
        sequence: List of JSON message objects to publish in order
        interval_sec: Delay between each published message
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicYes
sequenceYes
topic_typeYes
interval_secNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states that messages are published in sequence at a given interval, but it does not disclose whether publishing blocks until completion, what happens on invalid JSON or unknown topic types, whether the topic is validated before publishing, or what the return behavior is beyond an output schema that is not shown.

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?

The description is compact: one purpose sentence followed by a short Args list. The main idea is front-loaded and there is minimal fluff. The Args list partially duplicates the schema, but it adds enough semantic color to justify its presence.

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?

The description covers the basic operation and parameter meanings, and an output schema exists to document return values. However, without annotations, it lacks critical behavioral context such as blocking behavior, validation, and failure modes. It also does not guide selection among sibling publish/echo tools, leaving an agent to infer some important operational details.

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%, so the description must compensate. The Args list adds basic semantics for each parameter, particularly 'sequence: List of JSON message objects to publish in order,' which is helpful. However, it does not explain how to reference the ROS message type (e.g., package/msg/Type), the expected JSON structure for sequence items, or constraints on interval_sec beyond the schema default.

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 starts with a clear verb and resource: 'Publish a sequence of mock messages to stimulate and test subscriber nodes.' It conveys the core purpose and implicitly differentiates from sibling ros2_topic_publish by emphasizing a sequenced batch of mock messages. It does not explicitly name or contrast a sibling, so it stops short of a perfect 5.

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

Usage Guidelines3/5

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

The phrase 'to stimulate and test subscriber nodes' gives a clear intended context. However, there is no explicit guidance about when to choose this tool over alternatives like ros2_topic_publish, nor any exclusions or conditions such as 'for a single message use ros2_topic_publish.' The usage guidance is implied rather than stated.

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