Skip to main content
Glama

payment_preflight

Fast pre-payment consistency guard for AI agents. Checks HTTPS destination, EVM payTo format, Base network, amount validity, and detects recipient/network/price changes against caller expectations. Returns allow/review/block. Use vendor_preflight for deep KYB.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pay_toYesObserved payment recipient wallet
networkYesObserved CAIP-2 network, e.g. eip155:8453
endpointYesHTTPS service or payment endpoint
amount_usdYesObserved payment amount in USD/USDC terms
expected_pay_toNoPreviously trusted or expected recipient wallet
expected_networkNoPreviously expected CAIP-2 network
expected_amount_usdNoPreviously quoted or expected amount

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral burden and does a good job: it lists the checks performed and the allow/review/block verdicts. It does not explicitly state that no payment is executed, but 'pre-payment guard' strongly implies a non-executing safety check.

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?

Three tight sentences with no filler. The core function is front-loaded, the checks are summarized, the output verdict is stated, and the sibling tool reference is placed at the end.

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?

Given 7 parameters and no output schema, the description covers the main behavior and the verdict type. It could be more explicit about the return shape or the exact conditions for block, but the essential decision-making context is present and the sibling routing is included.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3. The description adds semantic grouping: 'EVM payTo format' maps to pay_to, 'Base network' to network, 'amount validity' to amount_usd, and 'recipient/network/price changes' to the expected_* parameters. This clarifies how the optional expected parameters relate to the tool's purpose.

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?

The description states a specific purpose: a pre-payment consistency guard that checks HTTPS destination, EVM payTo format, Base network, amount validity, and changes against caller expectations. It clearly distinguishes itself from vendor_preflight by naming what it does and what it does not cover.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly routes agents to vendor_preflight for deep KYB, giving a clear alternative and the condition for choosing it. The 'pre-payment' and 'consistency guard' wording makes the intended use case evident.

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