Skip to main content
Glama
robotmcp

ROS MCP Server

publish_for_durations

Schedule and publish a sequence of ROS messages with specified delays to control robotic movements, enabling precise velocity manipulation through timed commands.

Instructions

Publish a sequence of messages with delays. Example: publish_for_durations(topic='/cmd_vel', msg_type='geometry_msgs/msg/TwistStamped', messages=[{'linear': {'x': 1.0}}, {'linear': {'x': 0.0}}], durations=[1, 2])

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
durationsNo
messagesNo
msg_typeNo
topicNo
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It mentions 'publish' (implying a write/mutation operation) and 'delays', but doesn't clarify permissions needed, whether messages are sent immediately or queued, error handling, or what happens if durations/messages arrays mismatch. The example hints at usage but lacks comprehensive behavioral context for a mutation tool.

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 highly concise and front-loaded: the first sentence states the core purpose, followed immediately by a practical example. Every sentence earns its place by demonstrating usage without unnecessary elaboration. No wasted words or redundant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given 4 parameters with 0% schema coverage, no annotations, and no output schema, the description is incomplete. While the example helps, it doesn't cover error cases, return values, or detailed behavioral expectations. For a mutation tool publishing sequences with timing, more context on execution flow and results is needed.

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 example illustrates all four parameters (topic, msg_type, messages, durations) with concrete values, adding meaningful semantics beyond the bare schema. However, it doesn't explain parameter constraints (e.g., durations in seconds, message format requirements) or relationships between arrays. Baseline 3 reflects partial compensation.

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 clearly states the tool's purpose: 'Publish a sequence of messages with delays.' This specifies the verb ('publish'), resource ('messages'), and key behavior ('with delays'). It distinguishes from siblings like 'publish_once' by emphasizing sequential publishing with timing. However, it doesn't explicitly contrast with 'subscribe_for_duration' or other siblings beyond the example.

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?

The description provides no explicit guidance on when to use this tool versus alternatives. While the example shows usage, it doesn't state when this tool is preferred over 'publish_once' or when subscription tools might be more appropriate. No prerequisites, exclusions, or comparative context are mentioned.

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/robotmcp/ros-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server