Skip to main content
Glama

minia2a_check_endpoint

Read-only

Validate x402 endpoints for autonomous-agent readiness via nine checks—reachability, payment challenge, amount, network, recipient, trial, registration, handshake—and return a 0–100% PASS/FAIL score.

Instructions

Validate any x402 endpoint for autonomous-agent (Claude Code auto-mode) readiness. Checks 9 signals: HTTP reachability, JSON content-type, payment challenge (canonical PAYMENT-REQUIRED header or legacy x-402-* headers), payment amount, network, recipient, trial info, registration path, and /api/agent-ready handshake. Returns a score (0-100%) with per-check PASS/FAIL detail. Use this before calling a paid endpoint to verify it works with autonomous agents.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "endpointUrl": "<endpointUrl>"
    },
    "name": "minia2a_check_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
endpointUrlYesThe endpoint URL to validate (e.g., 'https://minia2a.uk/x402/gas')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries the rest and does so well: it discloses the exact check list, the canonical PAYMENT-REQUIRED header vs legacy x-402-* fallback, and the return shape (0-100% score with per-check PASS/FAIL). It does not mention rate limits, whether the target endpoint incurs cost during probing, or timeout behavior, which keeps it from a 5.

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?

Front-loads the purpose, then the check list, then the return format, then the usage instruction — a sensible order. The nine-signal enumeration is long but informative rather than padding; only minor tightening is possible.

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?

Although there is no output schema, the description explicitly describes the return value as a 0-100% score with per-check PASS/FAIL detail, so nothing about the result is opaque. For a one-parameter read-only diagnostic tool, an agent has everything needed to call it and interpret the result.

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?

There is a single required parameter with 100% schema description coverage including an example URL, so the schema already does the work. The description adds no format constraints, protocol requirements (http vs https), or validation rules beyond what the schema states, making this the baseline case.

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?

Uses a specific verb ("Validate") against a specific resource ("any x402 endpoint for autonomous-agent readiness") and enumerates the nine signals checked. An agent can distinguish this diagnostic tool from minia2a_call_service or minia2a_register without opening any schema.

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?

Explicitly states the trigger: "Use this before calling a paid endpoint to verify it works with autonomous agents." That gives a clear pre-flight use case, though it does not name an alternative tool or state when not to bother running the check.

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