Skip to main content
Glama

Delete a gateway

delete_gateway
DestructiveIdempotent

Delete a gateway

Deletes it. Keys that had it as their default go back to none, so their requests run as without a gateway; a request still naming it is refused by the Model API (400 gateway_not_found). Both follow 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 deleted gateway. 204 with no body.

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>"
    },
    "name": "delete_gateway"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe gateway's name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds substantive behavior well beyond them: keys with this gateway as default fall back to none, in-flight references fail with 400 gateway_not_found, and both effects lag by roughly 60 seconds due to router caching. It also discloses the exact success response (204, empty body), which is critical since no output schema exists.

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?

The body is dense and front-loaded: consequences, error code, consistency window, and status code are each stated once with no filler. The only waste is the redundant title/name echo ('Delete a gateway' followed by 'Deletes it.'), which occupies the opening slot without adding information.

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?

For a single-parameter destructive tool with no output schema, the description covers everything an agent needs: the side effect on dependent keys, the resulting API error, the eventual-consistency delay, and the exact HTTP success shape. Nothing material is left for the agent to infer.

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?

With one parameter at 100% schema description coverage and a name pattern already in the schema, the baseline of 3 applies. The description implies the name is the sole identifying handle ('a request still naming it') but adds no format, casing, or lookup semantics beyond what the schema already states.

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 definition gives a specific verb+resource (remove an existing gateway by name) that is distinguishable from create_gateway, get_gateway, and update_gateway by name alone. The opening lines ('Delete a gateway' / 'Deletes it.') are near-tautological restatements, so the clarity comes primarily from the name and title rather than the prose, and no sibling is explicitly referenced.

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?

Usage is implied by the consequences described: deleting reassigns default-gateway keys to none and causes 400 gateway_not_found for requests naming the deleted gateway. However, the description never states when to choose this over an alternative such as update_gateway to disable/neutralize a gateway, nor any precondition or confirmation guidance for a destructive call.

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