Skip to main content
Glama

Payment check

payment_check
Read-onlyIdempotent

Call this before paying any unknown seller or URL. Payment check: is this seller safe to pay, checked at the moment the agent pays. Compares the 402 price and payee with the seller's published listings when they can be fetched, screens the payee against a local denylist and the bundled OFAC SDN digital-currency address list, flags an over-price versus the intended amount, reuses the duplicate-payment check, and confirms the seller URL returns a valid 402. Returns allow, review or block with reasons and a signed receipt id. Fetches time out in about 2s and fail closed to review. $0.005 per call. Try it free first (3 calls a day without a key), then pay per call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "payment_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNoOptional agent or caller id, also used on the signed receipt.
event_idNoOptional idempotency key for this check.
seller_urlNoThe seller's paid HTTP URL.
intended_amountNoUSD the agent intends to pay.
payment_requiredNoThe seller's 402 PAYMENT-REQUIRED payload or base64 header value.

Output Schema

NameRequiredDescriptionDefault
payeeNo
checksNo
reasonsNo
verdictNoallow, review, or block.
amount_usdNo
receipt_idNo
request_idNo
verify_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnly, openWorld, idempotent, non-destructive), the description discloses the failure mode (fetches time out in ~2s and fail closed to review), the decision vocabulary (allow, review, block with reasons and a signed receipt id), and cost (free tier of 3 calls/day, then $0.005 per call). Those are exactly the operational traits an agent needs before invoking a paid, network-dependent check.

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?

The imperative guidance is front-loaded and the purpose sentence leads, so an agent skimming gets the key cue immediately. The second sentence is a long run-on chain of checks, but nearly every clause carries distinct operational information.

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?

With an output schema present, return format needn't be spelled out, yet the description still summarizes the allow/review/block outcome. For a read-only, open-world, paid verification tool, the fail-closed behavior, latency, pricing, and decision outcomes cover everything needed to call it correctly.

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%, so baseline is 3, but the description adds real meaning: intended_amount is tied to the over-price flag, seller_url is validated for a valid 402 response, and payment_required is compared against the seller's published listings. agent_id and event_id remain only schema-documented.

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?

The description gives a specific verb and resource, stating it checks whether a seller is safe to pay at the moment of payment, and enumerates the concrete checks performed (price/payee comparison, denylist and OFAC screening, over-price flag, duplicate check, 402 validation). It doesn't differentiate itself from plausible siblings like payment_guard_authorize or trust_score, so an agent can't tell from this text alone which of those to pick.

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?

"Call this before paying any unknown seller or URL" gives a clear triggering condition, and the duplicate-payment reuse hints at overlap with another check. There is no explicit when-not guidance or named alternative for the authorization/trust-scoring siblings.

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