Skip to main content
Glama

x402 Resource Scan

scan_x402_resource
Read-onlyIdempotent

Read-only scan of a public API/provider URL for x402, OpenAPI, pricing, and agent-discovery metadata. Pass url, and optionally marketplace_url plus expected_resources, to get a readiness score, issues, and fixes; no private endpoints are called.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesTarget API/provider base URL to scan.
marketplace_urlNoOptional marketplace/listing URL to compare against public metadata.
expected_resourcesNoOptional expected resource count.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
scoreYes
issuesYes
pricesNo
targetYes
nextStepsYes
marketplacePositioningNo

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint, idempotentHint, and destructiveHint=false. The description adds the explicit 'read-only' and 'no private endpoints are called' guarantees, reinforcing the safety profile, and mentions the output (readiness score, issues, fixes) which is useful behavior beyond annotations. No contradiction with annotations.

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, front-loaded with the core purpose and safety guarantee, then parameter usage. Every word earns its place; no fluff.

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?

Given the tool's moderate complexity (3 params, 1 required) and the presence of an output schema, the description adequately covers actions, inputs, outputs, and safety. It doesn't need to explain return values since output schema handles that.

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?

Input schema covers all three parameters with descriptions, achieving 100% coverage. The description only restates that url is passed and marketplace_url and expected_resources are optional, adding no new semantic detail. Baseline 3 for high schema coverage applies, with no compensatory info.

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?

Description clearly states a read-only scan of a public API/provider URL for x402, OpenAPI, pricing, and agent-discovery metadata, distinguishing it from sibling tools by naming the resource type and the specific metadata categories. The verb 'scan' and the output (readiness score, issues, fixes) make the tool's purpose unambiguous.

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 clear context for when to use it: for scanning a public API/provider URL, with optional marketplace and expected resources. It does not explicitly contrast with sibling tools like probe_x402_paid_path or check_agent_tool_readiness, and does not mention exclusions or alternative selection criteria.

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

Most tools have distinct purposes, but there is some conceptual overlap: 'check_agent_tool_readiness' and 'scan_x402_resource' both evaluate readiness, while 'boundary_guard_check' and 'generate_trust_receipt' both produce receipts. Descriptions clarify the differences, so ambiguity is low.

Naming Consistency4/5

All names use snake_case, and most follow a verb_noun pattern (check_, generate_, probe_, scan_). 'boundary_guard_check' deviates by being a noun-noun compound, but it's the only outlier and remains readable.

Tool Count5/5

With 6 tools, the count is well-scoped for an x402/MCP utility server. Each tool covers a distinct aspect (pre-action guard, readiness, receipts, launch pack, probing, scanning) without unnecessary bloat.

Completeness4/5

The set covers the core lifecycle of x402 validation and seller readiness: pre-action checks, readiness assessment, trust receipts, launch assets, and endpoint probing/scanning. Minor gaps exist (e.g., no tool to update or delete launch packs), but they are not critical to the server's purpose.