Skip to main content
Glama
@asterpay/mcp-server

@asterpay/mcp-server

by petteri74dev

get_x402_payment_details

Fetch x402 payment details for an order—facilitator endpoint, USDC amount, network, and payment header—so your agent can execute the payment with an x402 client.

Instructions

Get x402 payment details for an order: facilitator endpoint, USDC amount, network, and payment header. Your agent needs an x402 client (e.g. @x402/axios) to execute the actual payment.

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": {
      "order_id": "<order_id>"
    },
    "name": "get_x402_payment_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesOrder ID to get payment details for
merchantSlugNoMerchant identifier. Omit to use default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4/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 it does disclose the single most important behavioral trait: the tool only retrieves payment details and the actual payment requires an external x402 client (e.g. @x402/axios). That prevents a costly misread of scope. It stops short of covering auth needs, whether the payment header expires, or any 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.

Conciseness5/5

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

Two sentences, front-loaded with the verb and resource, then the critical execution caveat. No filler, no restatement of the tool name.

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?

There is no output schema, so the description compensates by naming the returned fields, and it clarifies the non-mutating boundary in the absence of annotations. It could go further on the shape/format of the payment header and on what happens if the order is not payable, but the essentials for a correct call are present.

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% and both parameters are documented in the schema, including the 'omit to use default' behavior for merchantSlug. The description adds no syntax, format, or validation meaning beyond that, so the baseline of 3 applies.

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 states a specific verb and resource ('Get x402 payment details for an order') and enumerates exactly what the response contains: facilitator endpoint, USDC amount, network, and payment header. That enumeration makes it unmistakable against neighbors like get_order_status or get_business_info.

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?

Usage is only implied: an agent infers it should call this when it needs payment instructions before paying. The second sentence usefully rules out one mistaken expectation (this tool does not move funds), but there is no explicit statement of when to call it versus get_order_status, nor any prerequisite or ordering guidance.

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