Skip to main content
Glama
selectarank

selectarank-mcp

Official
by selectarank

Check that an x402 endpoint's 402 challenge is well-formed before paying it

selectarank_preflight

Validate an x402 endpoint's 402 challenge before paying, ensuring the payment requirements are well-formed.

Instructions

Check that an x402 endpoint's 402 challenge is well-formed before paying it. Paid x402 endpoint: 0.010000 USDC per call on Base (GET /v1/preflight). With EVM_PRIVATE_KEY set the call is paid automatically; otherwise the 402 payment requirements are returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYeshttps URL (port 443, public host) of the x402 endpoint to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses the monetary cost (0.010000 USDC per call on Base), the automatic payment behavior when EVM_PRIVATE_KEY is set, and the fallback behavior of returning 402 payment requirements. It does not detail what constitutes 'well-formed' or error cases, leaving some gaps.

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?

Two sentences with zero waste, front-loading the purpose and then the payment details. Every sentence earns its place.

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 tool with a single parameter and no output schema, the description covers the essential operational context: cost, payment flow, and fallback. It could be more explicit about what the check returns or how 'well-formed' is evaluated, but the coverage is largely adequate.

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 the single url parameter is fully documented in the schema. The description adds no syntax, format, or constraint beyond what the schema already provides, matching the baseline of 3 when the schema does the heavy lifting.

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?

States a specific verb ('Check') and resource ('x402 endpoint's 402 challenge') and clarifies intent ('before paying it'). This clearly distinguishes it from the data-retrieval siblings (earthquakes, weather, worldbank) that share the selectarank_ prefix.

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 phrase 'before paying it' gives a clear contextual trigger for when to use the tool. It does not state exclusions or name alternatives, but no sibling overlaps exist, so the guidance is sufficient though not exhaustive.

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