Skip to main content
Glama

Get x402 payment requirements

get_payment_requirements
Read-onlyIdempotent

Return the exact x402 payment requirements (price, payTo, asset, network, input schema) for one a-un product, so an x402-capable client can pay and call it. Use before buying. Without an endpoint it returns the requirements of every product.

Input Schema

NameRequiredDescriptionDefault
endpointNoProduct path, full URL, key or name, e.g. /x402/web-read, https://a-upgradenet.com/x402/memory-health or web.read. Get valid values from list_products. Omit it to get every product.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / endpoint / description
      Previous value: -"Product path or full URL, e.g. /x402/web-read or https://a-upgradenet.com/x402/memory-health. Get valid values from list_products."New value: +"Product path, full URL, key or name, e.g. /x402/web-read, https://a-upgradenet.com/x402/memory-health or web.read. Get valid values from list_products. Omit it to get every product."
    • removedInput schema / required
      Removed value: -[
      -  "endpoint"
      -]
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's added value is the fallback behavior: omitting the endpoint returns requirements for every product, which hints at an unbounded response. It does not discuss response size, pagination, or error behavior for an unknown endpoint.

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?

Three short sentences, front-loaded with the return payload, then purpose, then the fallback case. No filler and no repetition beyond the minor overlap on the optional parameter.

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?

With no output schema, the description carries the burden of describing return values and does so by naming the five key fields. The remaining gap is the shape of the multi-product response and failure modes for an invalid endpoint.

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 coverage is 100% and the endpoint parameter is already fully documented in the schema, including examples and the 'omit to get every product' note. The description's closing sentence restates that same optionality rather than adding new meaning, so baseline 3 applies.

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?

States a specific verb and resource ('Return the exact x402 payment requirements') and enumerates the returned fields (price, payTo, asset, network, input schema) for 'one a-un product'. The scope is precise, but the description never names a sibling to distinguish itself from, so differentiation is left to inference.

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?

'Use before buying' is an explicit workflow cue that tells the agent when this call belongs in a sequence, and the no-endpoint case is documented. There is no statement of when NOT to use it or of alternative tools, so it stops short of full routing guidance.

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