Skip to main content
Glama

Payment requirements

payment_info
Read-only

Free. Returns the x402 payment requirements (price, USDC/USDT contract, pay-to wallet, network) for a given tool so an agent can construct an x402 payment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolYesName of the paid AMR tool to get payment requirements for (same name as in tools/list, e.g. `web_search`).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorYes
acceptsYes
free_tierNo
extensionsNo
facilitatorYes
x402VersionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "extract_clean",
      -  "market_spread",
      -  "gas_fees",
      -  "best_price",
      -  "token_price",
      -  "wallet_balance",
      -  "web_search",
      -  "email_validate",
      -  "dns_whois",
      -  "pdf_text",
      -  "seo_check",
      -  "defi_yields",
      -  "currency_convert",
      -  "geo_ip",
      -  "rss_feed",
      -  "crypto_ohlcv",
      -  "ens_resolve",
      -  "html_to_markdown",
      -  "youtube_transcript",
      -  "github_repo_summary",
      -  "dex_price",
      -  "tx_status",
      -  "erc20_balance",
      -  "news_search",
      -  "hn_search",
      -  "reddit_search",
      -  "defi_tvl",
      -  "fear_greed",
      -  "agent_wallet_snapshot",
      -  "url_status",
      -  "web_crawl",
      -  "metadata",
      -  "sitemap_urls",
      -  "wikipedia_summary",
      -  "arxiv_search",
      -  "npm_package",
      -  "pypi_package",
      -  "geocode",
      -  "domain_rdap",
      -  "dns_lookup",
      -  "contract_info",
      -  "weather",
      -  "holidays",
      -  "robots_check",
      -  "feed_discover",
      -  "text_stats",
      -  "timezone",
      -  "qr_generate",
      -  "uuid",
      -  "hash"
      -]New value: +[
      +  "extract_clean",
      +  "market_spread",
      +  "gas_fees",
      +  "best_price",
      +  "token_price",
      +  "wallet_balance",
      +  "web_search",
      +  "email_validate",
      +  "dns_whois",
      +  "pdf_text",
      +  "seo_check",
      +  "defi_yields",
      +  "currency_convert",
      +  "geo_ip",
      +  "rss_feed",
      +  "crypto_ohlcv",
      +  "ens_resolve",
      +  "html_to_markdown",
      +  "youtube_transcript",
      +  "github_repo_summary",
      +  "dex_price",
      +  "tx_status",
      +  "erc20_balance",
      +  "news_search",
      +  "hn_search",
      +  "reddit_search",
      +  "defi_tvl",
      +  "fear_greed",
      +  "agent_wallet_snapshot",
      +  "url_status",
      +  "web_crawl",
      +  "metadata",
      +  "sitemap_urls",
      +  "wikipedia_summary",
      +  "arxiv_search",
      +  "npm_package",
      +  "pypi_package",
      +  "geocode",
      +  "domain_rdap",
      +  "dns_lookup",
      +  "contract_info",
      +  "weather",
      +  "holidays",
      +  "robots_check",
      +  "feed_discover",
      +  "text_stats",
      +  "timezone",
      +  "qr_generate",
      +  "uuid",
      +  "hash",
      +  "media_convert"
      +]
  2. Changed1 schema field changed
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "extract_clean",
      -  "market_spread",
      -  "gas_fees",
      -  "best_price",
      -  "token_price",
      -  "wallet_balance",
      -  "web_search",
      -  "email_validate",
      -  "dns_whois",
      -  "pdf_text",
      -  "seo_check",
      -  "defi_yields",
      -  "currency_convert",
      -  "geo_ip",
      -  "rss_feed",
      -  "crypto_ohlcv",
      -  "ens_resolve",
      -  "html_to_markdown",
      -  "youtube_transcript",
      -  "github_repo_summary",
      -  "dex_price",
      -  "tx_status",
      -  "erc20_balance",
      -  "news_search",
      -  "hn_search",
      -  "reddit_search",
      -  "defi_tvl",
      -  "fear_greed",
      -  "agent_wallet_snapshot",
      -  "url_status",
      -  "web_crawl",
      -  "wikipedia_summary",
      -  "arxiv_search",
      -  "npm_package",
      -  "pypi_package",
      -  "geocode",
      -  "domain_rdap",
      -  "dns_lookup",
      -  "contract_info",
      -  "weather",
      -  "holidays",
      -  "robots_check",
      -  "feed_discover",
      -  "text_stats",
      -  "timezone",
      -  "qr_generate",
      -  "uuid",
      -  "hash"
      -]New value: +[
      +  "extract_clean",
      +  "market_spread",
      +  "gas_fees",
      +  "best_price",
      +  "token_price",
      +  "wallet_balance",
      +  "web_search",
      +  "email_validate",
      +  "dns_whois",
      +  "pdf_text",
      +  "seo_check",
      +  "defi_yields",
      +  "currency_convert",
      +  "geo_ip",
      +  "rss_feed",
      +  "crypto_ohlcv",
      +  "ens_resolve",
      +  "html_to_markdown",
      +  "youtube_transcript",
      +  "github_repo_summary",
      +  "dex_price",
      +  "tx_status",
      +  "erc20_balance",
      +  "news_search",
      +  "hn_search",
      +  "reddit_search",
      +  "defi_tvl",
      +  "fear_greed",
      +  "agent_wallet_snapshot",
      +  "url_status",
      +  "web_crawl",
      +  "metadata",
      +  "sitemap_urls",
      +  "wikipedia_summary",
      +  "arxiv_search",
      +  "npm_package",
      +  "pypi_package",
      +  "geocode",
      +  "domain_rdap",
      +  "dns_lookup",
      +  "contract_info",
      +  "weather",
      +  "holidays",
      +  "robots_check",
      +  "feed_discover",
      +  "text_stats",
      +  "timezone",
      +  "qr_generate",
      +  "uuid",
      +  "hash"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "extract_clean",
      -  "market_spread",
      -  "gas_fees",
      -  "best_price",
      -  "token_price",
      -  "wallet_balance",
      -  "web_search",
      -  "email_validate",
      -  "dns_whois",
      -  "pdf_text",
      -  "seo_check",
      -  "defi_yields",
      -  "currency_convert",
      -  "geo_ip",
      -  "rss_feed",
      -  "crypto_ohlcv",
      -  "ens_resolve",
      -  "html_to_markdown",
      -  "youtube_transcript",
      -  "github_repo_summary",
      -  "dex_price",
      -  "tx_status",
      -  "erc20_balance",
      -  "news_search",
      -  "hn_search",
      -  "reddit_search",
      -  "defi_tvl",
      -  "fear_greed",
      -  "agent_wallet_snapshot",
      -  "url_status",
      -  "web_crawl",
      -  "wikipedia_summary",
      -  "arxiv_search",
      -  "npm_package",
      -  "pypi_package",
      -  "geocode",
      -  "domain_rdap",
      -  "dns_lookup",
      -  "contract_info"
      -]New value: +[
      +  "extract_clean",
      +  "market_spread",
      +  "gas_fees",
      +  "best_price",
      +  "token_price",
      +  "wallet_balance",
      +  "web_search",
      +  "email_validate",
      +  "dns_whois",
      +  "pdf_text",
      +  "seo_check",
      +  "defi_yields",
      +  "currency_convert",
      +  "geo_ip",
      +  "rss_feed",
      +  "crypto_ohlcv",
      +  "ens_resolve",
      +  "html_to_markdown",
      +  "youtube_transcript",
      +  "github_repo_summary",
      +  "dex_price",
      +  "tx_status",
      +  "erc20_balance",
      +  "news_search",
      +  "hn_search",
      +  "reddit_search",
      +  "defi_tvl",
      +  "fear_greed",
      +  "agent_wallet_snapshot",
      +  "url_status",
      +  "web_crawl",
      +  "wikipedia_summary",
      +  "arxiv_search",
      +  "npm_package",
      +  "pypi_package",
      +  "geocode",
      +  "domain_rdap",
      +  "dns_lookup",
      +  "contract_info",
      +  "weather",
      +  "holidays",
      +  "robots_check",
      +  "feed_discover",
      +  "text_stats",
      +  "timezone",
      +  "qr_generate",
      +  "uuid",
      +  "hash"
      +]
  4. Changed1 schema field changed
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "extract_clean",
      -  "market_spread",
      -  "gas_fees",
      -  "token_price",
      -  "wallet_balance",
      -  "web_search",
      -  "email_validate",
      -  "dns_whois",
      -  "pdf_text",
      -  "seo_check",
      -  "defi_yields",
      -  "currency_convert",
      -  "geo_ip",
      -  "rss_feed",
      -  "crypto_ohlcv",
      -  "ens_resolve",
      -  "html_to_markdown",
      -  "youtube_transcript",
      -  "github_repo_summary",
      -  "dex_price",
      -  "tx_status",
      -  "erc20_balance",
      -  "news_search",
      -  "hn_search",
      -  "reddit_search",
      -  "defi_tvl",
      -  "fear_greed",
      -  "agent_wallet_snapshot",
      -  "url_status",
      -  "web_crawl",
      -  "wikipedia_summary",
      -  "arxiv_search",
      -  "npm_package",
      -  "pypi_package",
      -  "geocode",
      -  "domain_rdap",
      -  "dns_lookup",
      -  "contract_info"
      -]New value: +[
      +  "extract_clean",
      +  "market_spread",
      +  "gas_fees",
      +  "best_price",
      +  "token_price",
      +  "wallet_balance",
      +  "web_search",
      +  "email_validate",
      +  "dns_whois",
      +  "pdf_text",
      +  "seo_check",
      +  "defi_yields",
      +  "currency_convert",
      +  "geo_ip",
      +  "rss_feed",
      +  "crypto_ohlcv",
      +  "ens_resolve",
      +  "html_to_markdown",
      +  "youtube_transcript",
      +  "github_repo_summary",
      +  "dex_price",
      +  "tx_status",
      +  "erc20_balance",
      +  "news_search",
      +  "hn_search",
      +  "reddit_search",
      +  "defi_tvl",
      +  "fear_greed",
      +  "agent_wallet_snapshot",
      +  "url_status",
      +  "web_crawl",
      +  "wikipedia_summary",
      +  "arxiv_search",
      +  "npm_package",
      +  "pypi_package",
      +  "geocode",
      +  "domain_rdap",
      +  "dns_lookup",
      +  "contract_info"
      +]
  5. Changed1 schema field changed
    • addedOutput schema / properties / extensions
      Added value: +{
      +  "anyOf": [
      +    {
      +      "additionalProperties": true,
      +      "type": "object"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Extensions"
      +}
  6. Changed2 schema fields changed
    • addedInput schema / properties / tool / description
      Added value: +"Name of the paid AMR tool to get payment requirements for (same name as in tools/list, e.g. `web_search`)."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Body of the HTTP 402 response following the x402 convention.",
      +  "properties": {
      +    "accepts": {
      +      "items": {
      +        "description": "A single accepted payment option in an x402 ``402`` response.",
      +        "properties": {
      +          "asset": {
      +            "description": "Token contract address.",
      +            "title": "Asset",
      +            "type": "string"
      +          },
      +          "assetSymbol": {
      +            "title": "Assetsymbol",
      +            "type": "string"
      +          },
      +          "description": {
      +            "title": "Description",
      +            "type": "string"
      +          },
      +          "extra": {
      +            "additionalProperties": true,
      +            "title": "Extra",
      +            "type": "object"
      +          },
      +          "maxAmountRequired": {
      +            "description": "Atomic units as string (6 decimals).",
      +            "title": "Maxamountrequired",
      +            "type": "string"
      +          },
      +          "maxTimeoutSeconds": {
      +            "title": "Maxtimeoutseconds",
      +            "type": "integer"
      +          },
      +          "mimeType": {
      +            "default": "application/json",
      +            "title": "Mimetype",
      +            "type": "string"
      +          },
      +          "network": {
      +            "title": "Network",
      +            "type": "string"
      +          },
      +          "outputSchema": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": true,
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "default": null,
      +            "description": "Bazaar discovery info: {input:{type:'http',...}, output:{type:'json',...}}.",
      +            "title": "Outputschema"
      +          },
      +          "payTo": {
      +            "title": "Payto",
      +            "type": "string"
      +          },
      +          "priceUsd": {
      +            "title": "Priceusd",
      +            "type": "number"
      +          },
      +          "resource": {
      +            "title": "Resource",
      +            "type": "string"
      +          },
      +          "scheme": {
      +            "default": "exact",
      +            "title": "Scheme",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "network",
      +          "asset",
      +          "assetSymbol",
      +          "maxAmountRequired",
      +          "priceUsd",
      +          "payTo",
      +          "resource",
      +          "description",
      +          "maxTimeoutSeconds"
      +        ],
      +        "title": "PaymentRequirement",
      +        "type": "object"
      +      },
      +      "title": "Accepts",
      +      "type": "array"
      +    },
      +    "error": {
      +      "title": "Error",
      +      "type": "string"
      +    },
      +    "facilitator": {
      +      "title": "Facilitator",
      +      "type": "string"
      +    },
      +    "free_tier": {
      +      "additionalProperties": true,
      +      "title": "Free Tier",
      +      "type": "object"
      +    },
      +    "x402Version": {
      +      "default": 1,
      +      "title": "X402Version",
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "error",
      +    "accepts",
      +    "facilitator"
      +  ],
      +  "type": "object"
      +}
  7. Changed1 schema field changed
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "extract_clean",
      -  "market_spread",
      -  "gas_fees",
      -  "token_price",
      -  "wallet_balance",
      -  "web_search",
      -  "email_validate",
      -  "dns_whois",
      -  "pdf_text",
      -  "seo_check",
      -  "defi_yields",
      -  "currency_convert",
      -  "geo_ip",
      -  "rss_feed",
      -  "crypto_ohlcv",
      -  "ens_resolve",
      -  "html_to_markdown",
      -  "youtube_transcript",
      -  "github_repo_summary",
      -  "dex_price",
      -  "tx_status",
      -  "erc20_balance",
      -  "news_search",
      -  "hn_search",
      -  "reddit_search",
      -  "defi_tvl",
      -  "fear_greed",
      -  "agent_wallet_snapshot",
      -  "url_status",
      -  "web_crawl"
      -]New value: +[
      +  "extract_clean",
      +  "market_spread",
      +  "gas_fees",
      +  "token_price",
      +  "wallet_balance",
      +  "web_search",
      +  "email_validate",
      +  "dns_whois",
      +  "pdf_text",
      +  "seo_check",
      +  "defi_yields",
      +  "currency_convert",
      +  "geo_ip",
      +  "rss_feed",
      +  "crypto_ohlcv",
      +  "ens_resolve",
      +  "html_to_markdown",
      +  "youtube_transcript",
      +  "github_repo_summary",
      +  "dex_price",
      +  "tx_status",
      +  "erc20_balance",
      +  "news_search",
      +  "hn_search",
      +  "reddit_search",
      +  "defi_tvl",
      +  "fear_greed",
      +  "agent_wallet_snapshot",
      +  "url_status",
      +  "web_crawl",
      +  "wikipedia_summary",
      +  "arxiv_search",
      +  "npm_package",
      +  "pypi_package",
      +  "geocode",
      +  "domain_rdap",
      +  "dns_lookup",
      +  "contract_info"
      +]
  8. Changed1 schema field changed
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "extract_clean",
      -  "market_spread",
      -  "gas_fees",
      -  "token_price",
      -  "wallet_balance",
      -  "web_search",
      -  "email_validate",
      -  "dns_whois",
      -  "pdf_text",
      -  "seo_check",
      -  "defi_yields",
      -  "currency_convert",
      -  "geo_ip",
      -  "rss_feed",
      -  "crypto_ohlcv",
      -  "ens_resolve",
      -  "html_to_markdown",
      -  "youtube_transcript",
      -  "github_repo_summary",
      -  "dex_price"
      -]New value: +[
      +  "extract_clean",
      +  "market_spread",
      +  "gas_fees",
      +  "token_price",
      +  "wallet_balance",
      +  "web_search",
      +  "email_validate",
      +  "dns_whois",
      +  "pdf_text",
      +  "seo_check",
      +  "defi_yields",
      +  "currency_convert",
      +  "geo_ip",
      +  "rss_feed",
      +  "crypto_ohlcv",
      +  "ens_resolve",
      +  "html_to_markdown",
      +  "youtube_transcript",
      +  "github_repo_summary",
      +  "dex_price",
      +  "tx_status",
      +  "erc20_balance",
      +  "news_search",
      +  "hn_search",
      +  "reddit_search",
      +  "defi_tvl",
      +  "fear_greed",
      +  "agent_wallet_snapshot",
      +  "url_status",
      +  "web_crawl"
      +]
  9. Changed1 schema field changed
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "extract_clean",
      -  "market_spread",
      -  "gas_fees",
      -  "token_price",
      -  "wallet_balance",
      -  "web_search",
      -  "email_validate",
      -  "dns_whois",
      -  "pdf_text",
      -  "seo_check",
      -  "defi_yields",
      -  "currency_convert",
      -  "geo_ip",
      -  "rss_feed",
      -  "crypto_ohlcv",
      -  "ens_resolve"
      -]New value: +[
      +  "extract_clean",
      +  "market_spread",
      +  "gas_fees",
      +  "token_price",
      +  "wallet_balance",
      +  "web_search",
      +  "email_validate",
      +  "dns_whois",
      +  "pdf_text",
      +  "seo_check",
      +  "defi_yields",
      +  "currency_convert",
      +  "geo_ip",
      +  "rss_feed",
      +  "crypto_ohlcv",
      +  "ens_resolve",
      +  "html_to_markdown",
      +  "youtube_transcript",
      +  "github_repo_summary",
      +  "dex_price"
      +]
  10. Changed1 schema field changed
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "extract_clean",
      -  "market_spread",
      -  "gas_fees",
      -  "token_price",
      -  "wallet_balance",
      -  "web_search",
      -  "email_validate",
      -  "dns_whois",
      -  "pdf_text",
      -  "seo_check"
      -]New value: +[
      +  "extract_clean",
      +  "market_spread",
      +  "gas_fees",
      +  "token_price",
      +  "wallet_balance",
      +  "web_search",
      +  "email_validate",
      +  "dns_whois",
      +  "pdf_text",
      +  "seo_check",
      +  "defi_yields",
      +  "currency_convert",
      +  "geo_ip",
      +  "rss_feed",
      +  "crypto_ohlcv",
      +  "ens_resolve"
      +]
  11. Changed1 schema field changed
    • changedInput schema / properties / tool / enum
      Previous value: -[
      -  "extract_clean",
      -  "market_spread",
      -  "gas_fees",
      -  "token_price",
      -  "wallet_balance"
      -]New value: +[
      +  "extract_clean",
      +  "market_spread",
      +  "gas_fees",
      +  "token_price",
      +  "wallet_balance",
      +  "web_search",
      +  "email_validate",
      +  "dns_whois",
      +  "pdf_text",
      +  "seo_check"
      +]
  12. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The description explicitly states 'Free', which is valuable behavioral context beyond the readOnlyHint annotation. It also discloses what the tool returns and its purpose. It does not mention rate limits or error behavior, but for a simple read-only lookup tool with a single parameter, the disclosure is adequate.

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 single sentence that front-loads the most important fact ('Free') and then states the resource, the specific fields, and the purpose. Every word earns its place; no filler or redundancy.

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?

For a simple one-parameter read-only tool with an output schema, the description is nearly complete. It tells the agent what it returns and why to use it. The only minor gap is that it doesn't describe the output schema structure, but the output schema itself is present in the context, so the description need not repeat it.

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% and the parameter description already explains the tool name and gives an example. The description adds context by explaining that the returned requirements are for constructing an x402 payment, which clarifies why the parameter matters. The enum list is exhaustive, so the agent has full information.

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 ('Returns'), a specific resource ('x402 payment requirements'), and enumerates the exact fields returned (price, USDC/USDT contract, pay-to wallet, network). It also states the purpose ('so an agent can construct an x402 payment'), which distinguishes it from sibling tools that perform the actual paid operations.

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 clearly indicates when to use this tool: when an agent needs to construct an x402 payment for a given tool. It implies this is a prerequisite step before calling a paid tool, and the parameter description reinforces that the tool name should match tools/list. However, it does not explicitly state when NOT to use it or name alternatives, so it falls short of a 5.

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.