Skip to main content
Glama

Pre-payment check

inam_check
Read-onlyIdempotent

Use before paying an x402 endpoint, a paid MCP tool, a wallet or an agent: checks an x402 endpoint URL, an EVM wallet or a did:key from public signals: the URL's 402 payment requirements (payTo, price, network), whether payTo owns an ERC-8004 identity and has feedback, whether payTo is proven by an INAM ID and that ID's reputation, a Web Bot Auth key directory, HTTPS and the domain's registration age. Works when INAM has no data on the target. A URL that does not answer with an x402 payment request gets verdict fail ('Not an x402 paywall'): there is nothing to pay there in this format, which says nothing about whether the site is safe. Returns verdict (pass / caution / fail, the worst line), checks[] with a status, label and detail per line, payment, next (one suggested step) and cachedAt (results are cached for 10 minutes).

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": {
      "target": "<target>"
    },
    "name": "inam_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
methodNoHTTP method for a URL target; default GET, use POST for endpoints that only answer POST
targetYesx402 endpoint http(s) URL, 0x EVM wallet address, or did:key:z...

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  3. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the read-only/idempotent annotations, the description discloses the return shape (verdict, checks[] with status/label/detail, payment, next, cachedAt), the 10-minute cache lifetime, and the aggregation rule that verdict is the worst line. It also explains a non-obvious failure mode: a URL that is not an x402 paywall gets 'fail' with 'Not an x402 paywall', which says nothing about site safety. That is exactly the kind of context annotations cannot carry.

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?

It is front-loaded with the usage cue and the inspection list, and every clause carries information. The single dense paragraph with chained colons and parentheticals makes it harder to scan than a bulleted or split structure would, but there is little filler.

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?

With no output schema, the description fully compensates by describing the returned fields and their meaning, the caching behavior, and the verdict aggregation logic. It also covers the awkward case where INAM holds no data on the target, so an agent knows the tool still yields a usable answer. Nothing needed to interpret the result is missing.

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 100%, so both parameters are already documented, including the allowed target forms and the method enum. The description restates the three target types but adds no new semantics for them, and never mentions the method parameter or when to switch to POST. Baseline 3 is appropriate.

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?

The description uses a specific verb ('checks') and enumerates exactly what is inspected: the target's 402 payment requirements (payTo, price, network), ERC-8004 identity ownership and feedback, INAM ID proof and reputation, Web Bot Auth key directory, HTTPS, and domain age. That is far more specific than the name alone. It stops short of 5 because it does not name or distinguish itself from the sibling inam_check_reputation, which overlaps with the reputation portion it folds in.

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 gives an explicit trigger condition: 'Use before paying an x402 endpoint, a paid MCP tool, a wallet or an agent', which tells the agent exactly where in a workflow this belongs. It also clarifies an important boundary case for non-x402 URLs. It does not state when to prefer a sibling such as inam_check_reputation instead, so no exclusions are provided.

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.