Skip to main content
Glama

AgentWorld

check_x402_endpoint

[FREE] Check one x402 endpoint before you try to pay it, or check your own before you ship.

Calls the URL once with no payment and grades the 402 a buyer receives: whether a facilitator is named where clients read it and whether that facilitator answers, whether the Payment-Required header exists and survives a default 4KB proxy buffer, whether the terms are complete enough to sign, and whether the price clears the measured on-chain cost of settling it. Returns a 0-100 score, a verdict, and each defect with what it costs and how to fix it.

url should be the full endpoint URL. method is the verb the endpoint expects, GET or POST. Free, unauthenticated, and it never sends a payment.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
methodNoGET

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.8/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 does so well: it discloses that the tool calls the URL once, sends no payment, requires no authentication, is free, and grades specific aspects of the 402 response. It also explains what it returns, making the tool's behavior and side effects transparent.

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?

The description is detailed but every sentence earns its place: usage context, behavioral specifics, grading criteria, and parameter guidance are all covered without padding. The most important usage framing is front-loaded.

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 complexity, sparse input schema, and lack of annotations, the description is complete enough: it covers inputs, side effects, safety expectations, and the output shape. The output schema provides structural return details, so no critical guidance is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description fully compensates by explaining that url should be the full endpoint URL and that method is the verb the endpoint expects, limited to GET or POST. This adds meaningful guidance beyond the bare schema definition.

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 description names a specific verb ('Check') and a specific resource ('one x402 endpoint'), and explains the two use contexts: before paying or before shipping your own. It is clearly distinguishable from sibling tools because it is scoped to grading an endpoint's 402 response, not general payment readiness.

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?

It explicitly states when to use the tool: before trying to pay an endpoint or before shipping your own endpoint. It does not name sibling alternatives or state when not to use it, so it stops short of a 5, but the usage context is clear and actionable.

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