Skip to main content
Glama

AgentResolver — Agent Commerce Health Monitoring

AgentResolver Guard — verify before every x402 payment — $0.001

payment_guard
Read-onlyIdempotent

Paid $0.001 USDC fail-closed payment authorization preflight. Use immediately before an autonomous agent signs a target x402 payment. Returns eligible/blocked, exact observed payment terms, reason codes, evidence receipt and stable fingerprints. The caller retains sole spending authority.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
bodyNo
methodNo
maxPriceUsdNo
expectedPayToNo
expectedNetworkNo
allowUnpaidPostProbeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
urlYes
guardYes
statusYes
latencyMsYes
evidenceReceiptYes
prepaymentDecisionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": {},
      +  "properties": {
      +    "evidenceReceipt": {
      +      "additionalProperties": {},
      +      "properties": {},
      +      "type": "object"
      +    },
      +    "guard": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "decision": {
      +          "enum": [
      +            "eligible",
      +            "blocked"
      +          ],
      +          "type": "string"
      +        },
      +        "eligibleForCallerAuthorization": {
      +          "type": "boolean"
      +        },
      +        "evidenceDigestSha256": {
      +          "type": "string"
      +        },
      +        "paymentIdentityFingerprint": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "paymentTermsFingerprint": {
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "product": {
      +          "const": "AgentResolver Guard",
      +          "type": "string"
      +        },
      +        "reasonCodes": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "product",
      +        "decision",
      +        "eligibleForCallerAuthorization",
      +        "reasonCodes",
      +        "evidenceDigestSha256",
      +        "paymentIdentityFingerprint",
      +        "paymentTermsFingerprint"
      +      ],
      +      "type": "object"
      +    },
      +    "latencyMs": {
      +      "minimum": 0,
      +      "type": "number"
      +    },
      +    "ok": {
      +      "type": "boolean"
      +    },
      +    "prepaymentDecision": {
      +      "additionalProperties": {},
      +      "properties": {
      +        "decision": {
      +          "enum": [
      +            "eligible",
      +            "blocked"
      +          ],
      +          "type": "string"
      +        },
      +        "eligibleForCallerAuthorization": {
      +          "type": "boolean"
      +        },
      +        "reasons": {
      +          "items": {
      +            "type": "string"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "decision",
      +        "eligibleForCallerAuthorization",
      +        "reasons"
      +      ],
      +      "type": "object"
      +    },
      +    "status": {
      +      "maximum": 9007199254740991,
      +      "minimum": -9007199254740991,
      +      "type": "integer"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "url",
      +    "status",
      +    "ok",
      +    "latencyMs",
      +    "guard",
      +    "prepaymentDecision",
      +    "evidenceReceipt"
      +  ],
      +  "type": "object"
      +}
  4. Added

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses a paid fee ($0.001 USDC), fail-closed semantics, return of evidence receipt and stable fingerprints, and the critical detail that 'the caller retains sole spending authority.' These behavioral traits are not derivable from annotations alone and significantly aid agent decision-making.

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?

The description is four sentences with no filler: core identity, usage timing, return payload, and caller authority. The most important facts ($0.001 fee, fail-closed, usage timing) are front-loaded. Every sentence adds distinct value.

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 moderation-complex tool with 7 parameters, the description covers cost, failure behavior, output contents, and authority model, while an output schema exists to detail return values. The main completeness gap is parameter semantics, but the invocation context is well specified enough for an agent to proceed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate for parameter explanations. It does not explain how to set maxPriceUsd, expectedPayTo, expectedNetwork, allowUnpaidPostProbe, or the body/method relationship, even though some names are somewhat self-explanatory. The only useful tie-in is 'exact observed payment terms,' but this leaves allowUnpaidPostProbe and other fields ambiguous.

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 states a clear purpose: 'Paid $0.001 USDC fail-closed payment authorization preflight' with the explicit usage of verifying before signing an x402 payment. It also specifies return categories (eligible/blocked, terms, reason codes, evidence receipt). It does not explicitly differentiate itself from sibling x402_payment_preflight, which is the only reason it is not a 5.

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 description gives an explicit when-to-use directive: 'Use immediately before an autonomous agent signs a target x402 payment.' It provides clear context for the tool's invocation but does not mention alternatives, exclusions, or conditions when it should not be used.

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.