Skip to main content
Glama

request_endpoint_topup_payment

Return the x402 payment challenge (v1 JSON body plus, when the server sends it, the decoded v2 PAYMENT-REQUIRED header as paymentRequired) needed to top up credits for an existing agent endpoint. Accepts either a dashboard PAT with mcp:endpoints:write or mcp:* or a legacy endpoint API 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": {
      "slug": "<slug>",
      "topupAmount": "<topupAmount>"
    },
    "name": "request_endpoint_topup_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesSlug of the endpoint to top up
apiKeyNoLegacy endpoint API key (x402_*)
accessTokenNoYour dashboard MCP personal access token (sgl_pat_*). Can be omitted when the connection sends Authorization: Bearer sgl_pat_*
topupAmountYesUSDC amount to add, minimum 1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / accessToken / description
      Previous value: -"Your dashboard MCP personal access token (sgl_pat_*)"New value: +"Your dashboard MCP personal access token (sgl_pat_*). Can be omitted when the connection sends Authorization: Bearer sgl_pat_*"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the return shape (v1 JSON body, optional decoded v2 header as paymentRequired), notes server-dependent behavior for the v2 header, and specifies accepted credentials (PAT with mcp:endpoints:write or mcp:*, or legacy x402_* key). It does not clarify that this only produces a challenge and performs no charge itself, nor mention rate limits.

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

Conciseness4/5

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

Two dense sentences, front-loaded with the returned artifact and followed by the auth model; no filler. The parenthetical about the v2 header is long but carries real 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?

No output schema and no annotations, yet the description explains the returned challenge structure and the credential paths, which is the critical information for this tool. The main remaining gap is what the caller should do with the challenge next and whether any credit is actually consumed at this step.

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 description coverage is 100%, so the baseline is 3. The description adds only marginal meaning — that the two credential parameters are interchangeable alternatives and what scopes each requires — while slug and topupAmount semantics remain solely in the schema.

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?

Names a specific resource and outcome: returns the x402 payment challenge (v1 JSON body plus decoded v2 PAYMENT-REQUIRED header) used to top up credits on an existing agent endpoint. The 'existing agent endpoint' scoping implicitly separates it from creation-payment siblings, but no sibling is named explicitly, so an agent must infer the split.

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?

Clearly frames the context of use — obtaining a payment challenge for topping up an existing endpoint — and implicitly excludes creation flows. It does not name the follow-up tool (e.g. topup_endpoint_with_payment) that consumes the challenge, nor state when a different payment-request sibling is preferable.

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