Skip to main content
Glama

ghost_commerce_search

Decide which x402 provider to pay, before paying it. Consult when the provider is unknown, when a decision you hold has passed its valid_until, or when the price, health, verdict or funding of one materially changed. Finds providers by need and ranks them by real economic evidence: independent payers, calls-per-payer (the repeat signature), last settlement, on-chain trust verdicts and change history. Returns USE/WATCH/AVOID with the exact call, a fallback, valid_until and recheck_when — reuse a held decision until it expires or a trigger fires, rather than asking again. Paid per call via x402; free preflight at /v1/commerce/search/preflight (3/day).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryNoFree-text need, e.g. 'solana market data with recent buyers'
networkNoCAIP-2 filter, e.g. eip155:8453
capabilityNoCapability keyword(s), e.g. 'search'
min_payersNoOnly providers with at least this many independent payers in 30d
max_price_usdNo0 means no price ceiling
payment_signatureNox402 PAYMENT-SIGNATURE header value. Omit it to receive the payment terms; call again with it to run the tool.

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations, the description carries the full burden, and it does an excellent job. It discloses the paid nature ('Paid per call via x402'), the two‑step process ('Omit it to receive the payment terms; call again with it to run the tool'), a free preflight endpoint with rate limit ('free preflight at /v1/commerce/search/preflight (3/day)'), and the return structure ('USE/WATCH/AVOID with the exact call, a fallback, valid_until and recheck_when'). This goes well beyond what a schema or annotations would typically provide.

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 description is dense but every sentence serves a purpose. It is front-loaded with the core purpose and usage, then details the evidence and return structure, then the cost/preflight. It is not overly verbose, but a few sentences pack multiple ideas. The structure is logical and scannable, earning a 4.

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?

Despite lacking an output schema, the description explains the return format, the payment flow, the need for a payment signature, and the preflight option. It covers the main triggers for re‑consultation. It does not mention error handling or limits beyond the preflight, but for a tool of this complexity it is fairly complete. A 4 reflects that it covers the essential agent needs without exhaustive edge cases.

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 description coverage is 86%, so the baseline is 3. The description does not add extra meaning to the parameters beyond what the schema already specifies (e.g., network, capability, min_payers). It explains the ranking logic (independent payers, calls-per-payer, etc.) but that is not parameter semantics. No additional parameter-level guidance is given, so a 3 is appropriate.

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 clearly states the tool's job: 'Decide which x402 provider to pay'. It specifies the resource (x402 providers) and the action (decide/rank/return verdict). It distinguishes itself from siblings by describing a search-and-decision function, though it does not explicitly name alternatives. It is more specific than a tautology, earning a 4.

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 provides explicit conditions for when to use the tool: 'Consult when the provider is unknown, when a decision you hold has passed its valid_until, or when the price, health, verdict or funding of one materially changed.' It also advises when not to use it ('reuse a held decision until it expires or a trigger fires, rather than asking again'). However, it does not mention sibling tools as alternatives, so it lacks explicit exclusion guidance but still offers clear context.

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.

TDQS

A4.2/5.0
Disambiguation4/5

Each tool targets a distinct stage of the x402 provider workflow: search for provider selection, vet for a single known provider, pre_spend_gate for task-level payment economics, and schema_freshness for contract drift. Search and pre_spend_gate both surface payment-related decisions, but their descriptions make the separation relatively clear.

Naming Consistency3/5

All tools share the ghost_ prefix and snake_case style, which is consistent at a high level. However, the pattern is mixed: commerce_search and commerce_vet are verb-oriented, while pre_spend_gate and schema_freshness are noun-oriented, so there is no uniform verb_noun convention.

Tool Count5/5

Four tools is well-scoped for a focused market-intel, vetting, and schema-freshness server. Each tool covers a distinct part of the pre-payment decision workflow without redundancy or bloat.

Completeness5/5

The tool surface covers the full apparent lifecycle: discovering and ranking providers, vetting a named provider, making a task-specific pre-payment decision, and checking schema freshness before repeated use. No obvious dead-end or missing operation is apparent from the domain implied by the tools.

Resources