Skip to main content
Glama
gate

gatepay-local-mcp

by gate

x402_gate_pay_auth

Authorizes Gate Pay OAuth for centralized payments by opening the Gate authorization URL and exchanging the code for an access token, enabling authenticated x402 payment submission.

Instructions

When the user chooses centralized_payment (中心化支付), run this tool to complete Gate Pay OAuth: browser opens Gate authorize URL, redirect hits localhost callback, then the client exchanges the code for access_token via the remote OAuth backend (GATE_PAY_OAUTH_TOKEN_BASE_URL, etc.). Stores access_token in-process for Authorization: Bearer on x402_submit_payment when sign_mode is centralized_payment. Success JSON includes gate_pay_access_token_masked and gate_pay_uid_masked (脱敏). Wallet MCP login (x402_quick_wallet_auth) is separate and not used for Gate Pay.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior5/5

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

With no annotations provided, the description fully takes on the burden of behavioral disclosure. It thoroughly details the OAuth flow: browser opens the Gate authorize URL, redirect hits localhost callback, client exchanges code for access_token via the remote OAuth backend, and the token is stored in-process for later Authorization Bearer header. It even lists the success JSON fields, providing transparent operational expectations.

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 a compact paragraph of three sentences, front-loaded with the trigger condition and then systematically covering the OAuth flow, storage, downstream use, and success output. Every sentence contributes valuable information without redundancy or filler.

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

Completeness5/5

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

For a zero-parameter tool with no output schema and no annotations, the description is exceptionally complete. It covers the trigger, the full OAuth mechanism, the in-process storage side effect, downstream integration with x402_submit_payment, and differentiates from related tools. No important operational context is missing.

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 tool has zero parameters, so the schema is trivially complete and the baseline score of 4 applies. While the description does not add parameter-level detail (there are none), it explains the overall process and side effects, which is sufficient for a parameterless tool.

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 explicitly states 'run this tool to complete Gate Pay OAuth' and specifies the exact trigger condition ('When the user chooses centralized_payment'). It distinguishes itself from the sibling tool x402_quick_wallet_auth by clarifying that wallet MCP login is separate and not used for Gate Pay.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It provides an explicit when-to-use rule: run when the user chooses centralized_payment. It also names an alternative (wallet MCP login) and explicitly excludes it from Gate Pay, giving the agent clear guidance on tool selection.

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