Skip to main content
Glama

MCPMails — Digital Email & Physical USPS Mail MCP + x402 Payment Router

physical_settle_crypto_payment

Verify and settle a Base Mainnet USDC transfer (txHash) or x402 X-PAYMENT header on-chain with strict anti-replay protection, and immediately trigger physical USPS dispatch end-to-end.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "physical_settle_crypto_payment"
  }
}

Input Schema

NameRequiredDescriptionDefault
txHashNo
campaignIdNo
mailpieceIdNo
x402PaymentHeaderNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / provider
      Removed value: -{
      -  "enum": [
      -    "lob",
      -    "postgrid"
      -  ],
      -  "type": "string"
      -}
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare a non-read-only, non-idempotent, open-world mutation, and the description adds genuinely new behavioral context: on-chain verification, strict anti-replay protection, and an irreversible real-world side effect (USPS dispatch is triggered immediately). It does not explain what happens when verification fails (presumably no dispatch) or any auth/rate constraints, so it stops short of a 5.

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?

A single front-loaded sentence that wastes no words and puts the verification/settlement action before the dispatch side effect. It is dense but slightly run-on, packing inputs, chain, protection, and side effect into one clause chain.

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

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, so the description should carry more of the result story (what a successful settle returns, what a failed verification returns). For a mutation with a physical, irreversible consequence and zero required parameters, the missing guidance on valid parameter combinations and failure behavior is a meaningful gap.

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 4 parameters, and the description only names two of them (txHash, x402PaymentHeader). campaignId and mailpieceId are never explained, and the critical fact that txHash and x402PaymentHeader are mutually exclusive alternatives — and which combination is required given required=0 — is left unstated.

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 specific verbs (verify, settle) against a named resource (Base Mainnet USDC transfer / x402 X-PAYMENT header) and states the downstream effect (trigger USPS dispatch). It clearly distinguishes the settlement step from payment creation, though it never names a sibling to contrast with explicitly.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: an agent can infer this is the post-payment settlement step that follows physical_create_crypto_payment. There is no explicit 'use this when' statement, no exclusion of alternatives, and no mention of prerequisites (e.g., that a payment must exist first).

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