Skip to main content
Glama
zhywwyzh

Global-MCP-Server

by zhywwyzh

restart_service

Restart a critical ROS service by killing its process and relaunching it in the background. Requires explicit confirmation to prevent accidental disruption; verify occupancy topic data after restart.

Instructions

重启关键 ROS 服务(先杀进程,再后台启动)。

当前支持: ego_planner(obj_nav.launch)。 安全设计:confirm 必须显式传 True 才执行,防止误杀正在运行的服务。 重启后请调用 ros_topic_status 验证 occupancy 话题有数据才算成功。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNo
serviceYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations present, the description carries the full burden and it does well: it reveals the destructive sequence (kill then start), the safety confirm-lock that prevents accidental kills, and the required post-restart verification. It doesn't spell out side effects like failure modes or the impact of killing an active node, but it is transparent enough for safe operation.

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?

Every sentence earns its place: purpose, supported service, safety rule, and verification step. The description is compact, well-structured, and front-loaded with the tool's core behavior before safety and follow-up notes.

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?

Given that this is a simple two-parameter destruction tool with an output schema, the description covers all essential operational context: what it does, how to safety-confirm it, which service is supported, and how to verify success. It also complements the sibling list by pointing to ros_topic_status as the required validation channel. Nothing an agent needs to invoke 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?

Because schema description coverage is 0%, the description must explain the parameters. It does so for both: 'confirm' must be explicitly True, and 'service' is exemplified by 'ego_planner' (obj_nav.launch). It doesn't enumerate all possible service names, but it clearly states the currently supported one, which is sufficient for the current one-service scope.

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 clearly states the action — restart a critical ROS service — and the exact mechanism: kill process first, then start in background. It also names the currently supported service (ego_planner with obj_nav.launch), making it unambiguous what resource this tool acts on and distinguishing it from sibling status/exec tools.

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?

The description gives clear usage context: it is the tool for restarting the supported 'ego_planner' service, the confirm parameter is a mandatory safety gate, and the agent is instructed to verify via ros_topic_status after the restart. It does not, however, explicitly say when not to use it or contrast it with exec_cmd/ssh_exec as an alternative, so it misses the when-not/alternative dimension by one level.

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/zhywwyzh/Global-MCP-Server'

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