Skip to main content
Glama
gate

gatepay-local-mcp

by gate

x402_centralized_payment

Execute centralized payments from X402 PAYMENT-REQUIRED headers by parsing payment details, handling Gate Pay OAuth, calling the API, and returning transaction results.

Instructions

Execute centralized payment (中心化支付) by parsing PAYMENT-REQUIRED header, extracting payment information, and calling the Gate Pay centralized payment API. Automatically handles Gate Pay OAuth authentication if needed (same as x402_gate_pay_auth). Parses amount (converts from smallest unit by dividing by 10^6), currency, prepayId, and orderId from the header. Returns payment result including transaction details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
payment_required_headerYesBase64-encoded PAYMENT-REQUIRED header value containing payment information
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses key behaviors: automatic OAuth handling, amount conversion from smallest unit (divide by 10^6), specific fields parsed from the header, and a return value containing transaction details. It does not mention error conditions or side effects, but the core mutating action is clear.

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 three sentences, front-loading the primary action and then adding only necessary details about auth and parsing. Every sentence contributes meaningful information without redundancy or verbosity.

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?

The tool has one parameter, no output schema, and moderate complexity. The description covers the input processing, the external API call, and the return type sufficiently. It lacks explicit sequencing guidance among sibling tools, but is otherwise complete for its scope.

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?

The input schema describes the parameter as a Base64-encoded PAYMENT-REQUIRED header value, with high coverage. The description adds meaning beyond the schema by explaining what payment information is extracted (amount, currency, prepayId, orderId) and the amount unit conversion, which is valuable for correct invocation.

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 a specific action ('Execute centralized payment') and specifies the mechanism (parsing PAYMENT-REQUIRED header and calling the Gate Pay API). It also distinguishes itself from sibling x402_gate_pay_auth by noting it handles the same auth automatically, making the tool's role unambiguous.

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 implies the tool is used when a PAYMENT-REQUIRED header is present and notes that OAuth is handled automatically, avoiding a separate call to x402_gate_pay_auth. However, it does not explicitly compare against other payment-related siblings like x402_submit_payment or x402_place_order, so exclusion criteria are not fully stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/gate/gatepay-local-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server