Skip to main content
Glama

Check before paying

check_before_paying
Read-only

Should your agent pay this? Run before paying an x402 / pay-per-call endpoint, an unfamiliar seller or a wallet address. Returns a verdict (ok_to_pay, caution, dont_pay, no_payment_needed) with reasons, from: the endpoint's live payment terms (price, token, payment address), its listing in Coinbase's x402 marketplace (how many different wallets paid it in 30 days, listed payment address), whether the live payment address matches the listing, whether the token is real USDC, the price compared with typical prices for similar tools, and the seller domain's age, website and mail security. Read-only: never pays or signs anything.

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": {
      "target": "<target>"
    },
    "name": "check_before_paying"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYesPaid endpoint URL (e.g. "https://api.example.com/v1/search"), seller domain (e.g. "example.com") or wallet address (0x...).
amount_usdNoOptional: the amount in USD you are about to pay, to check it against what the endpoint asks for.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false; the description reinforces this with the stronger 'never pays or signs anything.' It adds real substance beyond annotations by enumerating the evidence sources consulted (live payment terms, x402 marketplace listing, address match, token authenticity, price benchmark, domain age/website/mail security), which tells the agent what network calls and lookups occur. It does not mention cost, latency, or behavior when a target is unreachable.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

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

Front-loads the decision question and the verdict set before the supporting detail, so an agent can stop reading early and still know what it gets. The second sentence is a dense enumeration of six evidence sources, but each item earns its place by telling the agent which risk dimensions are covered.

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, but the description compensates by naming all four verdict values and stating that a verdict comes 'with reasons,' so the agent knows the response shape at a high level. Combined with the annotation safety profile and a fully covered 2-parameter schema, it is close to sufficient; it could still say what happens when the target cannot be resolved.

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%, so both parameters are already fully documented in the schema. The description implies target accepts three forms and that amount_usd is compared against the endpoint's asking price, but this largely restates the schema. Baseline 3 applies since the schema does the heavy lifting.

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?

Opens with a concrete decision question ('Should your agent pay this?') and specifies the exact resources it accepts (x402/pay-per-call endpoint, seller domain, wallet address). The verdict vocabulary makes its role obvious, though it never names a sibling to contrast with (e.g. vendor_trust_profile or x402_market_report), which is a mild ambiguity risk.

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?

Gives an explicit trigger condition: run it before paying an x402 endpoint, an unfamiliar seller, or a wallet address. That is a clear when-to-use, but there is no when-not-to-use and no alternative tool named for adjacent questions such as reading an existing trust report.

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