Skip to main content
Glama

Earnstile

Create gateway

create_gateway

Put a metering gateway in front of your MCP server or HTTP API. Returns the public endpoint.

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

Input Schema

NameRequiredDescriptionDefault
nameYesDisplay name
typeNomcp
tool_weightsNoUnits per successful call of a tool (default 1)
upstream_urlYeshttps URL of your MCP server or API
rest_count_pathsNo
upstream_headersNoHeaders sent to the upstream (e.g. Authorization). Stored encrypted, never returned.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full disclosure burden for a mutating creation tool. It does state that a public endpoint is returned, which is genuinely useful, but says nothing about authentication requirements, idempotency or duplicate-name behavior, whether metering/enforcement begins immediately, or whether headers are encrypted (only the schema mentions that).

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

Conciseness5/5

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

Two short sentences, front-loaded with the core action, with the return value folded in as a second sentence. Zero filler and no repetition of the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a 6-parameter creation call with nested objects and no annotations or output schema, so the description should do more. It omits setup prerequisites, auth, failure modes, and the semantics of the more complex parameters, leaving an agent unable to call it confidently beyond the two required fields.

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 67%, so the schema handles most parameter meaning and the baseline is a 3. The description adds only a mild gloss: 'MCP server or HTTP API' hints at the `type` enum, and 'metering' loosely relates to tool_weights. The undocumented `rest_count_paths` parameter and the `type` default get no clarification from the description.

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?

States a specific action and a specific resource: putting a 'metering gateway' in front of an MCP server or HTTP API, plus the side effect of returning the public endpoint. An agent can distinguish this from siblings like list_gateways or create_key on the verb+resource alone. It stops short of an explicit sibling comparison, so not a 5.

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?

No when-to-use, when-not-to-use, or prerequisite guidance is given. Nothing explains whether a gateway must be created before keys, whether a plan/account is required, or how this relates to create_key and update_key. The only signal is the implicit 'you need a gateway to meter traffic'.

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