Skip to main content
Glama

List gateways

list_gateways
Read-onlyIdempotent

List gateways

Every gateway of the account, A to Z by name, with its kind, its default model and how many rules, questions and keys it has. A gateway is a named config a request runs through. A chat gateway (kind chat) routes the chat and messages calls your code sends: fallbacks between models, retries, a response cache, a rate limit, a time limit and the models allowed. A decision gateway (kind decision) is your own classifier: it keeps a decision model and the questions, so a call to the decisions endpoint sends only the text. Attach one to a key as its default (the update_key tool) or name it per request with the x-klinn-gateway header; the header wins, except on a key locked to its gateway. A key with a gateway of its own, or under an account default gateway with guardrails, is locked to it: a header naming another is a 403 gateway_locked.

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": "list_gateways"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description earns credit for adding return-content detail: each gateway's kind, default model, and counts of rules, questions, and keys, plus alphabetical ordering. Since there is no output schema, this disclosure is genuinely useful. The rest of the paragraph is domain education about gateway kinds and locking rather than behavior of this call, which caps it below 5.

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

Conciseness3/5

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

The first sentence is well front-loaded with the return shape, but the bulk of the paragraph explains gateway concepts, header precedence, and 403 gateway_locked locking rules that have no bearing on invoking a parameterless list call. That material is tangential to this tool and inflates the definition without improving selection or invocation.

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 zero-parameter list tool with no output schema, the definition supplies enough: it discloses the returned fields and ordering, and annotations cover safety. The only real gap is the absence of any pointer to sibling tools for metrics or decision content, which would help an agent route correctly.

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?

The tool takes zero parameters, so there is no parameter semantics to explain and the baseline of 4 applies. The description correctly does not invent parameter behavior or imply filters that the empty schema does not support.

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 states a specific verb and resource ('List gateways') and adds scope: every gateway of the account, sorted A to Z by name, with kind, default model, and counts of rules, questions, and keys. That is a precise, agent-usable purpose. It stops short of a 5 because it never contrasts the tool with nearby siblings such as gateway_stats or gateway_decisions, leaving the agent to infer the distinction.

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 rather than stated: an agent can reasonably infer this is the read path for inspecting gateway configuration. However, there is no explicit when-to-use or when-not guidance, and no routing to alternatives like gateway_stats for metrics or gateway_decisions for classifier content. The mention of update_key and the x-klinn-gateway header concerns gateway attachment, not tool selection.

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