Skip to main content
Glama

gateway.refresh

Reload backend MCP server configurations and reconnect after adding new servers or encountering connection errors. Pending downstream requests block refresh unless force=true cancels them.

Instructions

Reload backend MCP server configurations and reconnect. Use this when new MCP servers have been configured or to recover from connection errors. Refuses by default while downstream requests are pending; set force=true to cancel them.

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": "gateway.refresh"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoCancel pending downstream requests before refreshing
reasonNoReason for refresh (for logging)
sourceNoConfig source to reload from

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv3.0.1
    • addedInput schema / properties / reason / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / reason / type
      Removed value: -"string"
    • addedInput schema / properties / source / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "claude_config",
      +      "custom"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / source / enum
      Removed value: -[
      -  "claude_config",
      -  "custom"
      -]
    • removedInput schema / properties / source / type
      Removed value: -"string"
  2. Addedv1.21.1
  3. Removedv1.20.0
  4. First observedv1.18.0

TDQS

A4/5.0
Behavior4/5

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

With no annotations at all, the description carries real weight here: it discloses that the operation refuses by default while downstream requests are pending and that force=true cancels those in-flight requests, which is exactly the destructive side effect an agent must know before calling. It omits auth requirements, what happens if reload fails partway, and whether the gateway is briefly unavailable, so it is not fully complete.

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?

Three short sentences, each earning its place: what it does, when to invoke it, and the important default-refusal/force behavior front-loaded before the agent commits. Zero filler or restatement of the tool name.

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 3-optional-parameter mutation with no output schema and no annotations, the definition covers purpose, trigger conditions, and the risky default behavior, which is what an agent needs to call it correctly. Missing only failure-mode and post-refresh state details.

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 force and the optional source/reason are already documented. The description restates the force semantics (cancel pending downstream requests) without adding meaning beyond the schema, and says nothing about how source or reason are used, so the baseline of 3 applies.

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 first sentence gives a specific verb and resource ('Reload backend MCP server configurations and reconnect'), which is clearly distinct from siblings like gateway.connect_server or gateway.restart_server. It stops short of explicitly contrasting itself with those near-neighbors, but the action is unambiguous.

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?

Explicit when-to-use guidance is given: 'when new MCP servers have been configured or to recover from connection errors', plus a default-refusal condition with the force escape hatch. No explicit when-not or named alternatives among the siblings (e.g. restart_server vs. refresh) are offered, which keeps it from a 5.

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