Skip to main content
Glama

mcp_set_gateway

Switch the active Gateway session to a specified URL, returning the new session context or an error when the Gateway is unreachable.

Instructions

Switch to another gateway by URL.

Args: url: Gateway base URL, e.g. http://10.0.1.50:8088.

Returns: The new session context, or an error payload when the gateway is unreachable.

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": {
      "url": "<url>"
    },
    "name": "mcp_set_gateway"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose useful failure behavior ('an error payload when the gateway is unreachable') and the successful return ('the new session context'), but it is silent on important traits: whether the prior session/connection is discarded, whether authentication or credentials are needed for the new URL, and whether the switch is reversible.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Very short and front-loaded: the first sentence states the action, then Args and Returns sections are clearly separated. The docstring-style formatting is slightly formal but nothing is redundant or padded.

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?

Minor deduction: no guidance on prerequisites.

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 coverage is 0% — the schema exposes only a bare string named 'url' with no description — so the description must compensate. It does add the key meaning ('Gateway base URL') plus a concrete example format, which is genuinely useful, but it says nothing about accepted schemes, path prefixes, ports, or validation behavior.

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 opens with a specific verb+resource: 'Switch to another gateway by URL.' That is unambiguous about what the tool does and how the target is identified. It does not, however, differentiate itself from plausible siblings such as mcp_connect or mcp_discover_gateways, so an agent must infer the boundary.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use guidance, and no mention of alternatives or prerequisites (e.g., whether the target must first be discovered via mcp_discover_gateways). Usage is only implied by 'switch to another gateway,' which assumes the caller already knows why it would want to change gateways.

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

Deploy Server

Other Tools