Skip to main content
Glama

Replace a gateway

update_gateway
DestructiveIdempotent

Replace a gateway

Replaces the whole config: send the config from the get_gateway tool with your changes. Fields left out take their defaults and the same checks apply as on create. A body without a name keeps this one; a different name renames the gateway (a name already in use is 409 conflict) and its keys follow. Keys stay attached either way. Requests follow the new config within about a minute: the router keeps a key's gateway and the account's gateway list for about 60 seconds, so until then a request may still run through the old config.

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": {
      "name": "<name>",
      "body": "<body>"
    },
    "name": "update_gateway"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesA gateway's config, as the console stores it and the router reads it (snake_case, unlike the rest of this API). Fields left out take their defaults; unknown fields are dropped.
nameYesThe gateway's name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructive/idempotent annotations: omitted fields silently reset to defaults, a rename collision returns 409, keys stay attached across a rename, and router propagation lags about 60 seconds so old config may still serve traffic. These are exactly the side effects an agent needs before calling a destructive replace.

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?

Front-loaded with the destructive replace semantics, then name behavior, then propagation timing. Each sentence carries information, though the final propagation sentence is dense and could be split for readability.

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?

Covers defaults-reset risk, rename conflicts, key attachment, and eventual consistency, which is strong for a destructive tool with no output schema. It stops short of describing the response shape or whether the returned config reflects the new or old state during the 60-second window.

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 baseline is 3, but the description adds behavior the schema's terse 'name' field does not: an absent body name preserves the current name, a differing name renames the gateway and its keys follow. That is genuine semantic value beyond the structured fields.

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?

States a specific verb and resource ('Replaces the whole config') and makes the PUT semantics explicit, distinguishing it from a partial update. It also names get_gateway as the source of the config and create as the reference for validation, so an agent can place it among its siblings without opening another schema.

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?

Gives a concrete workflow: fetch via get_gateway, send back with changes. It also sets the important precondition that omitted fields revert to defaults and the same checks as create apply. It does not explicitly say when to prefer this over create_gateway or delete_gateway, but the replace semantics imply it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources