Skip to main content
Glama

Mad Check

mad_check_authorization

Signing firewall for EIP-3009 / x402 authorizations. Call BEFORE signing, every time. Returns SIGN or DONT_SIGN with machine-readable reasons. A DONT_SIGN is a stop, not a suggestion; a SIGN is evidence, not an instruction — the caller's own policy still decides.

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": {
      "from": "<from>",
      "to": "<to>",
      "value": "<value>",
      "validAfter": "<validAfter>",
      "validBefore": "<validBefore>",
      "nonce": "<nonce>",
      "chainId": "<chainId>",
      "verifyingContract": "<verifyingContract>"
    },
    "name": "mad_check_authorization"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYes
nowNoOptional: pin evaluation time, unix seconds
fromYes
nonceYesbytes32 hex nonce
valueYesAmount in the token's smallest unit, as a string
chainIdYes
validAfterYesUnix seconds
validBeforeYesUnix seconds
verifyingContractYesToken contract (e.g. USDC on Base)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses the two verdicts, says reasons are machine-readable, and explicitly defines the semantics of each verdict ('a stop, not a suggestion' / 'evidence, not an instruction'). It still does not state that the call is side-effect-free or what happens on malformed input.

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?

Four short sentences, zero filler, front-loaded with purpose then timing then return contract then verdict semantics. Every sentence adds distinct information.

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 9-parameter tool with no output schema and no annotations, the description covers the return contract and verdict semantics well, which compensates for the absent output schema. It leaves a few gaps: no statement of read-only behavior, no shape for the 'machine-readable reasons', and no guidance on the three undescribed schema fields.

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 67%, with from, to, and chainId undocumented, and the description adds no per-parameter meaning. Its only contribution is naming the EIP-3009 tuple standard, which contextualizes what the eight required fields collectively represent but does not resolve the individual gaps.

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 role: a 'signing firewall for EIP-3009 / x402 authorizations' that returns SIGN or DONT_SIGN. That names the exact resource and scope, which implicitly differentiates it from the other mad_check_* siblings (agent, endpoint) without needing to list 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?

'Call BEFORE signing, every time' gives an unambiguous invocation point and makes clear there is no conditional fast-path. It does not name sibling alternatives or state when-not to call, so it stops short of full routing guidance.

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