Skip to main content
Glama

agent_ex_restart

Restart the current MCP server process to load the current build safely without disrupting background workers or other live server connections.

Instructions

主动重启当前 MCP server 进程(process.exit,由 host 自动 respawn 并加载当前 dist)。 server 无状态、in-flight worker 在独立进程组,重启安全;只重启调用方这条连接,不影响其他 live server 或在跑任务。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "agent_ex_restart"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.0

TDQS

A3.9/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 it does well: it discloses the process.exit mechanism, host auto-respawn, statelessness, in-flight workers living in separate process groups, and the blast radius being limited to the caller's connection. The notable gap is that it doesn't say whether this call returns a response at all before the process dies, or what an agent should expect on the wire.

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?

Two tight sentences, with the mechanism and blast radius front-loaded and the safety rationale following. Every clause carries information an agent needs; nothing is redundant.

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?

For a zero-parameter, no-output-schema tool, the description covers mechanism, safety, and scope well. It could be more complete by stating what the caller experiences after process.exit (dropped connection, forced retry, or a returned acknowledgment).

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?

The tool takes zero parameters, so there is nothing for the description to disambiguate. The baseline of 4 applies; the description does not waste words on non-existent inputs.

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 states a specific verb and resource: actively restart the current MCP server process via process.exit, with the host respawning it. This is clearly distinct from the sibling tools (cancel, doctor, status, submit, version), though it does not explicitly name which sibling to prefer for diagnostics.

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

Usage Guidelines3/5

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

The description implies the use case by noting the restart loads the current dist, but it never says when an agent should choose restart over agent_ex_doctor or agent_ex_status. The safety preconditions are given, which is useful context, but there is no explicit guidance on when to use the tool versus when not to use it.

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