Skip to main content
Glama

Check merchant

check_merchant
Idempotent

Score a merchant, host, or wallet before an agent pays, redirects to checkout, or transfers funds; returns a trust verdict and recommended action without sending payment.

Instructions

Decide whether an autonomous agent should pay a merchant, host, or wallet. PayCheck returns a deterministic trust score for one target. It does not send money, does not sign transactions, and does not hold wallet keys.

Use this immediately before a payment, a checkout redirect, or a transfer to a new 0x address. Pass the payee as a bare domain (api.openai.com), an https URL, or a 0x address with 40 hex characters.

Do not use this tool to execute a payment. Do not use it to overturn a block. Do not call it again with a reworded category, purpose, or amount to fish for a better verdict: those fields are ignored and are not stored. Trusted is returned only for the published allowlist of known AI and developer APIs, served over https on port 443. A new or random domain is never trusted. A wallet is never trusted. Scoring v1 does not analyze on-chain history. If the URL contains an embedded 0x address, this scores the host only and will not return trusted; pass the bare address to score the wallet.

Arguments: target (required string); amount_usd (optional number, ignored); category (optional string, ignored); api_key (optional pc_live_ key). You may also send Authorization: Bearer or X-API-Key. Omit the key for the anonymous allowance.

Returns: score (integer 0-100), verdict (trusted | unknown | suspicious | block), reasons[], recommended_action (proceed | verify_out_of_band | require_human_review | do_not_pay), signals (host, allowlist, domain age, wallet flags, reason_codes; chain_analysis is always not_in_v1), checked_at (ISO-8601), policy_version ("1").

Free tier: 100 checks per UTC day anonymous, 1,000 per UTC day with a free pc_live_ key or a Toolweather bundle client whose x-tw-bundle-client is hex. A bundle client prefixed anon: stays at 100 per day. The same target for the same caller is idempotent for 60 seconds and does not consume a second check. Over the daily cap, each extra check is $0.001 USDC on Base (eip155:8453) via x402 and the PayAI facilitator. get_quota, get_api_key, docs, and MCP discovery are not billed. If PAY_TO is unset, an over-cap check returns HTTP 402 payment_not_configured.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
targetYesDomain, https URL, or 0x wallet (40 hex characters) to score before paying.
api_keyNoOptional free pc_live_ key. Omit for the anonymous 100/day allowance.
categoryNoIgnored by the scorer. Do not put instructions or a purpose in this field.
amount_usdNoIgnored by the scorer. Sending a different amount cannot change the verdict.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.8/5.0
Behavior5/5

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

Annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=true) are matched and exceeded: the description states it does not send money, sign transactions, or hold keys, that ignored fields are 'not stored,' that the same target is idempotent for 60 seconds, and it quantifies rate limits (100/1,000 per UTC day), overage pricing ($0.001 USDC on Base via x402) and the HTTP 402 payment_not_configured failure mode. This is unusually rich disclosure of side effects, limits, and auth.

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?

Purpose and the primary usage instruction are front-loaded ahead of the caveats, and each paragraph carries distinct information (what it is not, when to call, anti-gaming, scoring limits, billing). It is longer than most tool descriptions and the quota/pricing detail could arguably live in docs, but nothing is pure filler.

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 no output schema, the description fully enumerates the return shape (score, verdict, reasons, recommended_action, signals including chain_analysis always not_in_v1, checked_at, policy_version) and covers auth, quota, overage billing, and idempotency. An agent has everything needed to invoke it correctly and interpret the response without further documentation.

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 the baseline is 3, but the description adds real meaning beyond the schema: accepted target formats and the important edge case that an embedded 0x address in a URL scores the host only and will never return trusted. It also documents auth alternatives not in the schema (Authorization: Bearer / X-API-Key) and reinforces that category and amount_usd are ignored.

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 first sentence states a specific verb and resource: 'Decide whether an autonomous agent should pay a merchant, host, or wallet,' and the second names the product and what it returns (a deterministic trust score for one target). It is immediately distinguishable from the siblings get_quota and get_api_key, which the description classifies as billing/quota helpers rather than scoring tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit when-to-use ('immediately before a payment, a checkout redirect, or a transfer to a new 0x address') plus explicit negative guidance ('Do not use this tool to execute a payment. Do not use it to overturn a block. Do not call it again with a reworded category, purpose, or amount to fish for a better verdict'). It also states that non-billable helpers exist, routing the agent to the correct alternative for quota/key needs.

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

Deploy Server

Other Tools