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
nameYesPublic name of the paid endpoint, up to 100 characters, for example Weather Forecast API
categoryNoCatalog category, for example data, finance or ai
price_satsYesPrice per call in satoshis (sats, not msats), integer 1 or more, for example 50
descriptionNoWhat buyers get for each paid call, up to 500 characters
upstream_urlYesPublic https URL of the endpoint to sell, for example https://api.example.com/v1/data. Private and localhost addresses are refused
upstream_methodNoHTTP method used to call your upstream URL. Default GETGET
upstream_headersNoExtra HTTP headers sent to your upstream, as a JSON object of header name to value, for example {"X-Api-Key": "secret"}
upstream_timeout_msNoUpstream timeout in milliseconds, 1000 to 30000, for example 10000

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / category / description
      Added value: +"Catalog category, for example data, finance or ai"
    • addedInput schema / properties / description / description
      Added value: +"What buyers get for each paid call, up to 500 characters"
    • addedInput schema / properties / name / description
      Added value: +"Public name of the paid endpoint, up to 100 characters, for example Weather Forecast API"
    • addedInput schema / properties / price_sats / description
      Added value: +"Price per call in satoshis (sats, not msats), integer 1 or more, for example 50"
    • addedInput schema / properties / upstream_headers / description
      Added value: +"Extra HTTP headers sent to your upstream, as a JSON object of header name to value, for example {\"X-Api-Key\": \"secret\"}"
    • addedInput schema / properties / upstream_method / description
      Added value: +"HTTP method used to call your upstream URL. Default GET"
    • addedInput schema / properties / upstream_timeout_ms / description
      Added value: +"Upstream timeout in milliseconds, 1000 to 30000, for example 10000"
    • addedInput schema / properties / upstream_url / description
      Added value: +"Public https URL of the endpoint to sell, for example https://api.example.com/v1/data. Private and localhost addresses are refused"
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: the upstream is probed before registration and registration fails if unreachable, no funds are spent, and an operator key is required. These are exactly the side-effect, failure-mode, and auth facts an agent needs and that the annotations (readOnlyHint=false, destructiveHint=false) do not convey.

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 short sentences, front-loaded with the core action, then cost, then failure behavior, then the auth requirement. No filler and every sentence carries information.

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 an 8-parameter mutation with no output schema, the description covers purpose, cost, failure mode, and auth. It does not say what is returned on success (e.g., an endpoint id) or address the non-idempotent hint, which would help an agent avoid duplicate registrations.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: price_sats is charged per request over Lightning and upstream_url is the target the gateway proxies to. That clarifies the semantics of the two most consequential parameters beyond their schema text.

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 the seller-side role, which cleanly separates it from gateway_update, gateway_delete, and gateway_list. 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?

Gives clear context for when to use it (seller side, exposing an endpoint for per-request Lightning payment) and a key prerequisite ('REQUIRES OPERATOR KEY'). It does not explicitly name the sibling to use for later modification (gateway_update) or pausing, so the alternative routing is left implicit.

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.