Skip to main content
Glama

topup_endpoint_with_payment

Complete an endpoint credit top-up after you have obtained a valid X-Payment payload. Accepts either a dashboard PAT with mcp:endpoints:write or mcp:* or a legacy endpoint API key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesSlug of the endpoint to top up
apiKeyNoLegacy endpoint API key (x402_*)
accessTokenNoYour dashboard MCP personal access token (sgl_pat_*)
topupAmountYesUSDC amount to add, minimum 1
paymentPayloadYesRaw X-Payment payload returned by the paying client, as JSON or base64 string

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior3/5

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

With no annotations, the description carries the full burden for behavioral disclosure. It covers credential requirements and the need for a prior payment payload, but it does not mention the resulting side effect (credit balance increase) or possible return/error behavior.

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?

The description is exactly two sentences, front-loaded with the primary action and followed by necessary credential context. Every sentence contributes meaningful information with no filler.

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

Completeness3/5

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

The workflow and authentication prerequisites are well covered, but with no output schema and no annotations, the description leaves return values and error cases unspecified. For a paid top-up tool in a multi-step flow, additional completion details would make it more robust.

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%, but the description adds value by clarifying the either/or relationship between apiKey and accessToken, and by explaining that paymentPayload is the payload from a prior payment step. This goes beyond the schema's individual field descriptions.

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?

The description clearly states 'Complete an endpoint credit top-up' with a specific verb, resource, and phase. It distinguishes itself from the sibling request_endpoint_topup_payment by emphasizing the completion step after obtaining a payment payload.

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?

The description provides clear temporal context ('after you have obtained a valid X-Payment payload') and specifies accepted credential types. It implies the preceding payment request step without explicitly naming the sibling tool, so it is clear but not fully exhaustive.

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