Skip to main content
Glama

402Shield Preflight Payment

preflight_payment

Prepare the exact paid 402Shield request that must be completed before an autonomous payment executes. Submit the returned POST request with an x402-capable client. The paid response is ALLOW, REVIEW, or BLOCK. Execute the intended payment only after ALLOW; REVIEW and BLOCK should stop execution by default. Price: $0.005 USDC.

Input Schema

NameRequiredDescriptionDefault
policyNo
expectedNo
requestIdNo
requestedYes
transactionNo
transactionPolicyNo
expectedTransactionNo
simulateTransactionNo

Output Schema

NameRequiredDescriptionDefault
urlYes
bodyYes
priceYes
actionYes
methodYes
networkYes
serviceYes
advisoryYes
contentTypeYes
executionRuleYes
paymentRequiredYes
expectedDecisionValuesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "action": {
      +      "const": "execute_x402_request",
      +      "type": "string"
      +    },
      +    "advisory": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "body": {
      +      "additionalProperties": {},
      +      "propertyNames": {
      +        "type": "string"
      +      },
      +      "type": "object"
      +    },
      +    "contentType": {
      +      "const": "application/json",
      +      "type": "string"
      +    },
      +    "executionRule": {
      +      "type": "string"
      +    },
      +    "expectedDecisionValues": {
      +      "items": {
      +        "enum": [
      +          "ALLOW",
      +          "REVIEW",
      +          "BLOCK"
      +        ],
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "method": {
      +      "const": "POST",
      +      "type": "string"
      +    },
      +    "network": {
      +      "type": "string"
      +    },
      +    "paymentRequired": {
      +      "const": true,
      +      "type": "boolean"
      +    },
      +    "price": {
      +      "const": "$0.005",
      +      "type": "string"
      +    },
      +    "service": {
      +      "const": "402Shield",
      +      "type": "string"
      +    },
      +    "url": {
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "service",
      +    "action",
      +    "method",
      +    "url",
      +    "price",
      +    "network",
      +    "contentType",
      +    "body",
      +    "paymentRequired",
      +    "expectedDecisionValues",
      +    "executionRule",
      +    "advisory"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses a per-call cost ($0.005 USDC), that the call is paid and requires an x402-capable client, the three possible verdicts, and fail-closed default behavior. It omits error/timeout handling, whether the fee is charged on REVIEW/BLOCK, and whether retries are safe.

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?

Five short sentences, front-loaded with the core purpose and ending with the price. Little waste, though the opening 'Prepare the exact paid 402Shield request' is less direct than simply stating this is a pre-execution policy check.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/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 values need not be re-explained, and the description does state the verdict vocabulary. But for an 8-parameter tool with nested objects and zero schema descriptions, none of the input structure is clarified, and the unusual two-step 'prepare then submit' workflow is not spelled out.

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% across 8 parameters, and the description explains none of them. It never mentions the required `requested` object (amountUsd, recipient, network, asset) nor the optional policy/expected/transaction/simulateTransaction fields, leaving an agent to infer the entire input contract from undescorted types.

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 specific resource and role: a 402Shield preflight gate that must run before an autonomous payment executes, with a defined outcome (ALLOW/REVIEW/BLOCK). The verb 'Prepare' is slightly ambiguous about whether the tool itself renders the verdict or merely builds the request, but the resource and use case are unmistakable.

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 decision rule: execute only on ALLOW, and stop on REVIEW/BLOCK by default. It also states the sequencing constraint (must be completed before the payment executes, submitted via an x402-capable client). No alternatives exist to disambiguate against since there are no sibling tools.

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