Skip to main content
Glama

ASPERN: counterparty checks for agents

Four questions before the first payment to an agent

agent_hire_check
Read-onlyIdempotent

Before the first payment to an agent over x402: does its endpoint answer, does it charge what it lists, who pays it, does it deliver. Each answer is ok, caution or not_established, with what would settle it. x402 records a payment and nothing about delivery, so delivery stays not established there. no_warning_found is not a statement that the agent is safe to hire.

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": {
      "address": "<address>"
    },
    "name": "agent_hire_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressYesThe address you are about to pay.

Output Schema

NameRequiredDescriptionDefault
metaNoHow current this answer is and what it was read from: `freshness` and the ages behind it. Present on every answer from this server, whatever the tool.
saysNo
itemsNo
statusNo
addressNo
warningsNoAnything the server wants a caller to know about THIS answer before acting on it. Empty is the normal case and is not a guarantee.
cannotSeeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/idempotent annotations, the description discloses the answer vocabulary (ok, caution, not_established), that each answer comes with what would settle it, and the important limitation that x402 records payment but not delivery, so delivery remains not_established. It also warns that no_warning_found is not a safety endorsement, which is exactly the kind of interpretive caveat 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?

The four questions are front-loaded and the caveats follow in short, purposeful sentences with no filler. The telegraphic phrasing ('does its endpoint answer, does it charge what it lists') is dense but readable, and every sentence carries information.

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?

An output schema exists, so return structure need not be explained, yet the description still tells the agent what the answer categories mean and how to interpret a clean result. For a single-parameter read-only check, nothing needed to call or interpret it 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% and the single parameter is already documented as 'The address you are about to pay.' The description reinforces that this is the agent's address being paid over x402 but adds no format, validation, or resolution detail beyond the schema, so the baseline 3 applies.

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 names a concrete check performed before a first x402 payment and enumerates the four questions it answers (endpoint responds, price matches listing, who is paid, delivery). That is far more specific than the title alone. It stops short of naming a sibling such as preflight_payment or inspect_payment, so the agent must infer the boundary from context.

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?

The trigger is explicit: 'Before the first payment to an agent over x402.' That gives a clear when-to-use condition. There is no when-not guidance and no named alternative for later payments or for payment-record inspection, which keeps it below a 5.

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.