Skip to main content
Glama

inject_signal

Inject step, sine, square, or triangle signals into ROS command topics to test controller responses and analyze PID behavior.

Instructions

Inject a step or sinusoidal excitation signal into a command topic.

Choosing the right injection point: inject at controller INPUT (e.g. /controllers/gimbal_controller/command, rm_msgs/GimbalCmd: extra_fields={"mode": 3}, (GimbalCmd mode constants: 0: RATE, 1: TRACK, 2: DIRECT, 3: TRAJ). field="traj_yaw"/"traj_pitch") — NOT */controllers//command (std_msgs/Float64), which is PID-computed OUTPUT. Quiet state restoration (0.0 signal) occurs automatically upon completion (1-loop RealtimeBuffer update delay).

Timestamps: after extra_fields are applied, a zero/absent top-level stamp or header.stamp is filled with rospy.Time.now() on every published message (quiet-state restoration included); an explicit nonzero stamp is preserved — eliminating 0-timestamp artifacts in rosbag-based analysis.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldYes
forceNo
topicYes
dry_runNo
waveformNostep
amplitudeNo
frequencyNo
duration_secNo
extra_fieldsNo
confirm_tokenNo
publish_rate_hzNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

No annotations exist, so the description must disclose side effects and it does: it states quiet-state restoration (0.0 signal) automatically occurs, notes the 1-loop RealtimeBuffer delay, and explains timestamp filling/preservation behavior. This is high-value behavioral context.

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?

Front-loaded with the core action and then organized into useful caveats, though it is fairly long and includes an awkward nested parentheses structure. Every section adds relevant information.

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?

Given an output schema exists, return values need not be described. The description covers the crucial injection-point pitfall, automatic restoration, and timestamp behavior, making it strong for the intended use case. It remains incomplete for general use because key parameters like `force` and `confirm_token` are not explained, and the waveform set is partially described.

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 coverage is 0%, so the description bears the burden. It adds meaning for `topic`/`field`/`extra_fields` via the GimbalCmd example and mode constants, but does not document `force`, `dry_run`, `amplitude`, `frequency`, `duration_sec`, `publish_rate_hz`, or `confirm_token`. It also says 'step or sinusoidal' while the schema also supports square and triangle waveforms, a notable gap.

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 opens with a clear verb and resource: 'Inject a step or sinusoidal excitation signal into a command topic.' It further differentiates the tool by warning against injecting into PID-computed output topics, clarifying its role relative to signal injection.

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

Usage Guidelines4/5

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

Provides explicit placement guidance: inject at controller INPUT with a concrete example topic/message, and explicitly says NOT to use */controllers/<axis>/command (std_msgs/Float64) since that is PID output. It does not mention alternative sibling tools or when to prefer step vs. sine/square/triangle, so it misses full alternative coverage.

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

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/Nescript/rm_mcp'

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