Skip to main content
Glama
XuChen-AI

ros2-inspector

by XuChen-AI

ros_install_info

Detect whether ROS 2 is installed and list available distributions without requiring ROS. Use before choosing inspection tools.

Instructions

检测本机是否安装了 ROS2、装了哪些发行版。无需安装 ROS 即可运行。

何时用:不确定这台机器有没有 ROS、装的什么版本、工具能否查看时, 先调这个再决定用哪些查看类工具。 返回:installed(布尔)、distros 列表(发行版名+路径)、PATH 上是否 直接可用 ros2、当前 MCP 工具将使用的发行版、ROS 相关环境变量。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it names what is returned (installed flag, distro list with paths, PATH availability, the distro the MCP tools will use, ROS env vars) and clarifies it works without ROS installed. It stops short of an explicit read-only/no-side-effect statement, which would complete the safety profile.

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 purpose, then clearly labeled '何时用' and '返回' sections. It is slightly verbose but every line carries meaning; no filler or repetition.

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?

No output schema exists, and the description compensates by enumerating the return fields and the preflight ordering role. For a zero-parameter detection tool with no annotations, nothing an agent needs to call it correctly is missing.

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?

Zero parameters, which warrants the baseline 4; there are no inputs to disambiguate, and the description correctly spends no words on parameters.

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+resource: detect whether ROS2 is installed and which distros are present, plus that it runs without ROS installed. An agent can distinguish this preflight probe from the sibling inspection tools (list_nodes, list_topics, etc.) without opening any schema.

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

Usage Guidelines5/5

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

The '何时用' block gives an explicit triggering condition (uncertain whether ROS exists, which version, whether tools can run) and an explicit ordering rule — call this first, then decide which inspection tools to use. So it directly routes the agent relative to siblings.

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