Skip to main content
Glama

gateway.restart_server

Restarts a known downstream MCP server without altering persistent configuration; by default it refuses if pending requests exist, or force=true cancels them before restart.

Instructions

Restart a known downstream MCP server without changing persistent config. Refuses by default when that server has pending requests; set force=true to cancel them.

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": {
      "server_name": "<server_name>"
    },
    "name": "gateway.restart_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoCancel this server's pending requests before restarting
server_nameYesName of the server to restart

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.1
    • addedInput schema / properties / server_name / minLength
      Added value: +1
  2. First observedv1.18.0

TDQS

A3.8/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 disclose meaningful behavior: config is preserved, the call fails safely when requests are pending, and force=true cancels those requests (a destructive side effect). It omits what happens to the server during restart (downtime, in-flight state), whether the call is idempotent, and any auth/permission requirements.

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 sentences with zero filler; the core action comes first and the safety gate follows. Every clause carries information the agent needs.

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 simple two-parameter restart tool with no output schema and no annotations, the description covers the action, the config side effect, and the refusal/override condition. The remaining gap is the post-restart outcome and any prerequisite permissions, which an agent would want before invoking.

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 description coverage is 100%, so both parameters are already documented. The description reinforces the consequence of force=true (pending requests are canceled) rather than adding new semantics, which is the baseline case for a fully documented schema.

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?

States a specific verb and resource ("Restart a known downstream MCP server") and adds a scope qualifier that implicitly separates it from config mutators like gateway.update_server ("without changing persistent config"). It stops short of naming a sibling explicitly, so an agent must still infer the boundary against gateway.refresh or gateway.connect_server.

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?

It gives one concrete usage precondition (pending requests cause a default refusal, force overrides it), which is useful. It never says when to prefer this over gateway.refresh, gateway.disconnect_server plus gateway.connect_server, or gateway.update_server, so the when-to-use versus alternatives is only implied.

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