Skip to main content
Glama

Get a gateway

get_gateway
Read-onlyIdempotent

Get a gateway

The gateway's stored config (what create and replace accept, normalized), the ids of the keys it is the default of, and when it was created and last changed.

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

Input Schema

NameRequiredDescriptionDefault
nameYesThe gateway's name.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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), so the description's added value is in describing the response payload: normalized config, key ids for which this gateway is the default, and timestamps. With no output schema present, that return-shape disclosure is genuinely useful, though it omits error cases such as a missing gateway.

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 line simply restates the title and name with no added information, while the second sentence is dense but front-loads the return contents. It is efficient overall but the leading repetition is dead weight.

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 simple single-parameter read tool with no output schema, the description covers the meaningful unknowns by explaining what the response contains and how the config relates to create/update. Missing are failure behavior and whether key ids are only defaults, but the essentials are present.

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 100% and the single parameter's description ('The gateway's name') already documents it fully, so the description adds nothing about the name argument itself. The aside about 'what create and replace accept' hints at how the returned config relates to create/update calls but does not clarify the parameter.

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 (get a gateway) and goes on to enumerate what the call returns: stored config, default key ids, and creation/last-changed timestamps. It is clear what the tool does, though it never explicitly contrasts itself with read-only siblings like gateway_decisions or gateway_stats.

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 only implied by the verb 'get' and by the mention that the config is 'what create and replace accept.' There is no explicit statement of when to reach for this tool versus gateway_decisions, gateway_stats, or update_gateway, leaving the agent to infer the choice.

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