Skip to main content
Glama

Mad Check

mad_check_endpoint

Check an endpoint before paying against its printed x402 price: HTTP status, latency, sha256 of the body served, and whether it is alive at all. A dead door's price print is a price for nothing.

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": {
      "url": "<url>"
    },
    "name": "mad_check_endpoint"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden. It usefully discloses that this is a pre-payment probe and lists what it measures, but says nothing about timeouts, redirect handling, authentication requirements, or whether the probe itself has a cost — material gaps for a network-check tool.

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 operative content is front-loaded in one sentence, and the follow-up aphorism motivates the tool rather than restating it. The metaphor costs a few words but reinforces why liveness matters, so it mostly 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?

This is a low-complexity, single-parameter tool with no output schema, and the description compensates by enumerating the return values the agent will receive. Only error and failure-mode behavior (unreachable host, timeout) is left unaddressed.

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 0% for the single url parameter, so the description must compensate. It implies the url is the x402-priced endpoint being probed, but never states the expected format (scheme, path, query) or whether it must be the paid resource itself versus a base host.

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?

Names a specific verb and resource (check an endpoint) and enumerates exactly what it reports: HTTP status, latency, sha256 of the body, and liveness. That is far more concrete than the sibling names mad_check_agent or mad_test, though it never explicitly contrasts itself with them.

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?

Gives a clear triggering condition — run it before paying against a printed x402 price — which tells the agent where this sits in a workflow. It stops short of naming alternatives or stating when not to call it (e.g., for already-verified or free endpoints).

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