Skip to main content
Glama

get_node_info

Read-onlyIdempotent

Describe one ROS 2 node as a NodeInfo: its topics, services, actions, parameters and use_sim_time. A node that misses the parameter read timeout is reported as a finding, not an error.

Instructions

ROS 2 graph only; on a DDS-only setup use list_participants. Describe one ROS 2 node as a NodeInfo: the topics it publishes and subscribes to, the services and actions it serves or calls (each {name, type}), its parameters and use_sim_time. Interfaces come from the graph (ros2 node info), which never waits for the node. Parameters come from a read (ros2 param dump) bounded by timeout_s: a node that does not answer in time is a finding, not an error: parameters is null, parameters_note says its executor is probably blocked, and the interfaces are still returned. A value whose name contains password, secret, token, api_key or credential is replaced by <masked> and a long value is cut (truncated, original_size), both said in parameters_note. With params_file, param_diff lists declared values that differ on the node, are declared_only or masked. With several nodes of that name duplicate_count is above 1 and note warns. Raises an MCP error when the node is not on the graph (the message lists close matches), the name is malformed, or without a ros2 CLI. Read-only: the only request TopicForge ever sends is a parameter read (list/get); it sends no other request to a node. Duration: ros2 CLI behind the ROS lock, one call at a time; up to three CLI calls (node list and info, 8 s each at most; the parameter read, at most timeout_s, 20 s); ends within 45 s, less time for the read after a wait; busy error if the lock is held (retry).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "node": "<node>"
    },
    "name": "get_node_info"
  }
}

Input Schema

NameRequiredDescriptionDefault
nodeYesFully qualified node name as `list_nodes` gives it, e.g. `/robot1/lidar_driver` (a missing leading `/` is added).
timeout_sNoSeconds to wait for the parameter read, 1..20, default 8. A node that does not answer is reported in `parameters_note`, not as an error.
params_fileNoServer path of a ROS 2 parameter `.yaml` (1 MiB max).
param_diff_onlyNoWith `params_file`: return only `param_diff` and its note; interfaces and parameters are left out.

Output Schema

NameRequiredDescriptionDefault
noteNoOne sentence of context, or `None`.
full_nameYesFully qualified node name, e.g. `/lidar_driver`.
lifecycleNoTrue when `service_servers` has `<full_name>/get_state` (GetState).
param_diffNoFile against node: differences only.
parametersNoParameters sorted by name; `None` when unreadable (see `parameters_note`); an empty list means none.
publishersYesTopics the node publishes.
subscribersYesTopics the node subscribes to.
use_sim_timeNoValue of the node's `use_sim_time` parameter. `None` when unknown: see `use_sim_time_note`.
action_clientsYesActions the node calls.
action_serversYesActions the node serves.
mode_effectiveYes`live` or `mock` (fixtures).
duplicate_countYesNodes using this exact full name (1: unique); above 1, the data above belongs to one of them.
param_diff_noteNo
parameters_noteNoWhy `parameters` is `None`, or what was masked or cut; `None` when complete.
service_clientsYesServices the node calls.
service_serversYesServices the node offers, its own parameter services included.
parameters_statusNoWhy `parameters` is `None`; `None` when it was read.
use_sim_time_noteNoWhy `use_sim_time` is `None`. `None` when it is set.
param_diff_summaryNoLeft out of `param_diff`: same, live_only, with names.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.11.0
    • changedOutput schema / properties / duplicate_count / description
      Previous value: -"Nodes using this exact full name; above 1, the data above belongs to one of them."New value: +"Nodes using this exact full name (1: unique); above 1, the data above belongs to one of them."
  2. Changed2 schema fields changedv0.10.0
    • addedInput schema / properties / param_diff_only
      Added value: +{
      +  "default": false,
      +  "description": "With `params_file`: return only `param_diff` and its note; interfaces and parameters are left out.",
      +  "type": "boolean"
      +}
    • addedOutput schema / properties / parameters_status
      Added value: +{
      +  "description": "Why `parameters` is `None`; `None` when it was read.",
      +  "enum": [
      +    "timeout",
      +    "no_parameter_services",
      +    "no_budget",
      +    "failed",
      +    null
      +  ],
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  3. Changed1 schema field changedv0.8.1
    • changedOutput schema / properties / param_diff_summary / description
      Previous value: -"Counts left out: same, live_only."New value: +"Left out of `param_diff`: same, live_only, with names."
  4. Changed25 schema fields changedv0.8.0
    • addedInput schema / properties / params_file
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Server path of a ROS 2 parameter `.yaml` (1 MiB max)."
      +}
    • removedOutput schema / $defs / NodeParameter / properties / original_size / anyOf
      Removed value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedOutput schema / $defs / NodeParameter / properties / original_size / default
      Removed value: -null
    • addedOutput schema / $defs / NodeParameter / properties / original_size / type
      Added value: +[
      +  "integer",
      +  "null"
      +]
    • addedOutput schema / $defs / ParamDiff
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "declared": {
      +      "$ref": "#/$defs/JsonValue"
      +    },
      +    "live": {
      +      "$ref": "#/$defs/JsonValue"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "`declared_only`: absent on the node.",
      +      "enum": [
      +        "different",
      +        "declared_only",
      +        "masked"
      +      ],
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "name",
      +    "status",
      +    "declared",
      +    "live"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / lifecycle
      Added value: +{
      +  "description": "True when `service_servers` has `<full_name>/get_state` (GetState).",
      +  "type": "boolean"
      +}
    • removedOutput schema / properties / note / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedOutput schema / properties / note / default
      Removed value: -null
    • addedOutput schema / properties / note / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • addedOutput schema / properties / param_diff
      Added value: +{
      +  "description": "File against node: differences only.",
      +  "items": {
      +    "$ref": "#/$defs/ParamDiff"
      +  },
      +  "type": [
      +    "array",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / param_diff_note
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / param_diff_summary
      Added value: +{
      +  "description": "Counts left out: same, live_only.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • removedOutput schema / properties / parameters / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "$ref": "#/$defs/NodeParameter"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedOutput schema / properties / parameters / default
      Removed value: -null
    • addedOutput schema / properties / parameters / items
      Added value: +{
      +  "$ref": "#/$defs/NodeParameter"
      +}
    • addedOutput schema / properties / parameters / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedOutput schema / properties / parameters_note / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedOutput schema / properties / parameters_note / default
      Removed value: -null
    • addedOutput schema / properties / parameters_note / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / use_sim_time / anyOf
      Removed value: -[
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedOutput schema / properties / use_sim_time / default
      Removed value: -null
    • addedOutput schema / properties / use_sim_time / type
      Added value: +[
      +  "boolean",
      +  "null"
      +]
    • removedOutput schema / properties / use_sim_time_note / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedOutput schema / properties / use_sim_time_note / default
      Removed value: -null
    • addedOutput schema / properties / use_sim_time_note / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  5. Addedv0.7.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only/idempotent, yet the description goes much further: interfaces never wait for the node, a timed-out parameter read is a finding with `parameters` null rather than an error, secret-named and long values are masked/truncated, duplicates surface as `duplicate_count` plus `note`, and specific MCP error conditions are listed. It even clarifies the exact request footprint of the read-only claim and the lock/`busy` retry behavior.

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 scope constraint and the core action, and nearly every clause carries operational meaning (timeouts, masking, errors, lock retries). It is still a dense wall of semicolon-chained clauses, and some return-shape detail (masking, truncation fields) partly overlaps the existing output schema.

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

Completeness5/5

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

For a four-parameter tool with an output schema, the description covers the remaining risk surface: partial-failure semantics, error conditions, secret masking, duplicates, and worst-case duration under a shared CLI lock. An agent can call this correctly without further inference.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3, but the description adds real semantics: how `params_file` activates `param_diff` and its `declared_only`/`masked` categories, how `param_diff_only` suppresses interfaces and parameters, and that `timeout_s` governs only the parameter read. That interaction between the three optional parameters is not spelled out in the schema.

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?

States a specific verb and resource ('Describe one ROS 2 node as a NodeInfo') and enumerates exactly what is returned: topics, services, actions, parameters, use_sim_time. It also scopes itself ('ROS 2 graph only') against the sibling `list_participants` and implicitly against `list_nodes`, which supplies the node names.

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?

Explicitly names the condition that selects a sibling ('on a DDS-only setup use `list_participants`') and ties the `node` value to `list_nodes` output. It does not contrast with topic-level siblings like `get_topic_info`, so it stops short of full when/when-not routing, but the primary alternative is handled.

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