Skip to main content
Glama

gateway_update

Idempotent

Seller side: change the name, description, price or upstream of one of your gateway endpoints. Only the fields you pass change. 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": {
      "endpoint_id": "<endpoint_id>"
    },
    "name": "gateway_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoNew public name, for example Weather Forecast API
price_satsNoNew price per call in satoshis (sats, not msats), integer 1 or more, for example 50
descriptionNoNew description of what buyers get for each paid call
endpoint_idYesGateway endpoint id (integer) from gateway_list, for example 12
upstream_urlNoPublic 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 GET
upstream_headersNoExtra HTTP headers sent to your upstream, as a JSON object of header name to value, for example {"X-Api-Key": "secret"}. Replaces the existing headers
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 / description / description
      Added value: +"New description of what buyers get for each paid call"
    • addedInput schema / properties / endpoint_id / description
      Added value: +"Gateway endpoint id (integer) from gateway_list, for example 12"
    • addedInput schema / properties / name / description
      Added value: +"New public name, for example Weather Forecast API"
    • addedInput schema / properties / price_sats / description
      Added value: +"New 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\"}. Replaces the existing headers"
    • 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

A3.8/5.0
Behavior4/5

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

Annotations already declare the write-but-non-destructive, idempotent profile; the description goes further by disclosing the operator-key authentication requirement and that unspecified fields are left untouched. It still omits what the response contains and what happens when upstream validation fails, which are the remaining behavioral 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?

Three short sentences, each carrying distinct information: scope, patch semantics, and the auth precondition, with the requirement capitalized and placed last for emphasis. Nothing is redundant with the title or schema.

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 tool with no output schema, the definition covers ownership scope, partial-update behavior, and auth. It stops short of describing the returned object or failure modes, but the rich schema fills most of the remaining surface.

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%, so every parameter including upstream_headers replacement behavior and URL restrictions is already documented in structured fields. The description only summarizes four field groups and adds no syntax or constraint detail beyond the schema, so the baseline of 3 applies.

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 verb ('change') plus the resource ('one of your gateway endpoints') and enumerates the mutable fields (name, description, price, upstream). 'Seller side' and 'your' scope it against buyer-facing siblings such as gateway_catalog and gateway_probe, though no sibling is named explicitly.

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?

The description supplies the key precondition ('REQUIRES OPERATOR KEY') and clarifies patch semantics ('Only the fields you pass change'), which tells the agent this is not a full replace. It never says when to use this versus gateway_register or update_operator, so alternative selection is left to inference.

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.