Skip to main content
Glama

gateway.update_server

Update a subordinate MCP server package to a newer version and restart it so the new version runs; pinned or discovered servers and pending requests are refused unless force is set.

Instructions

Update a subordinate MCP server package to latest version and restart it so the new version is actually running. Call this to check for and apply an update -- the gateway does not volunteer update notices, so nothing will prompt you. Refuses a server whose config pins a version, and a server registered with gateway.register_discovered_server. Refuses to restart by default when the 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.update_server"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoRestart the server even if it has pending requests or active MCP tasks, cancelling them. Mirrors gateway.restart_server's force flag.
server_nameYesName of server to update

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.0.1
    • changedInput schema / properties / force / description
      Previous value: -"Cancel this server's pending requests before restarting"New value: +"Restart the server even if it has pending requests or active MCP tasks, cancelling them. Mirrors gateway.restart_server's force flag."
    • addedInput schema / properties / server_name / minLength
      Added value: +1
  2. Changed1 schema field changedv2.1.1
    • addedInput schema / properties / force
      Added value: +{
      +  "default": false,
      +  "description": "Cancel this server's pending requests before restarting",
      +  "type": "boolean"
      +}
  3. First observedv1.18.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so well: it discloses mutation, restart behavior, refusal for pinned versions, refusal for servers registered via gateway.register_discovered_server, and the cancellation risk when force=true.

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?

The description is front-loaded with the core action and then adds only operational constraints that affect correct invocation. Every sentence provides useful guidance without redundant restatement.

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 mutation tool with no annotations and no output schema, the description covers the critical behavioral details needed to invoke it safely. It does not describe return values, but those are less essential here than the update, refusal, and force semantics.

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 the schema already documents both parameters. The description still adds meaningful semantics by explaining that force cancels pending requests and active tasks, beyond the schema's concise flag description.

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 states a specific verb and resource: update a subordinate MCP server package to the latest version and restart it. It clearly distinguishes this from a simple restart by describing the package update plus restart behavior.

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?

It explicitly says when to call this tool and notes that the gateway will not prompt for updates. It also names refusal cases and explains when to use force, giving clear operational guidance and exclusions.

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