Skip to main content
Glama

gateway_register

Seller side: put your HTTP endpoint behind an L402 paywall on our gateway. Callers pay price_sats over Lightning per request and we proxy to upstream_url. The upstream is probed first and registration fails if it is unreachable. Registering does not spend funds. REQUIRES OPERATOR KEY.

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

Input Schema

NameRequiredDescriptionDefault
nameYes
categoryNo
price_satsYes
descriptionNo
upstream_urlYes
upstream_methodNoGET
upstream_headersNo
upstream_timeout_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses the pre-registration upstream probe, failure on unreachable upstream, that registration does not spend funds, and the operator-key requirement. It omits duplicate-name behavior and what the response returns, leaving some gaps.

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?

Four tight sentences, front-loaded with the seller-side framing and the key behavior, with the operator-key requirement emphasized at the end. No sentence is wasted.

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?

Given no output schema and no annotations, the description covers the core behavioral facts (probe, failure mode, no fund spend, auth). It falls slightly short on the nested-object parameters and duplicate-name/response semantics, but is largely sufficient to call correctly.

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 0% across 8 params, so the description must compensate. It gives real meaning to price_sats (per-request Lightning payment) and upstream_url (proxied target), but leaves upstream_headers, upstream_method, upstream_timeout_ms, category, and description unexplained.

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 ('put your HTTP endpoint behind an L402 paywall on our gateway') and frames it from the seller side, distinguishing it from gateway_list, gateway_update, and the buyer-side pay_l402_api. An agent can identify the operation without opening the 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?

'Seller side' plus 'Registering does not spend funds' gives clear situational context and implicitly contrasts with spend tools like pay_l402_api. It states the operator-key requirement. It does not explicitly name an alternative (e.g., gateway_update for changes), so it stops short of full when/when-not guidance.

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.