Skip to main content
Glama
Critical Raw Minerals & ESG Compliance Oracle(x402)

Critical Raw Minerals & ESG Compliance Oracle(x402)

cancel_a2a_trade_deal

Destructive

Revokes a seller agent's pending trade deal proposal before buyer countersignature, returning a structured verdict, audit metadata, and cryptographic reference.

Instructions

Seller AI agent revokes or cancels a pending trade deal proposal before buyer countersignature. Returns structured JSON verdict, audit metadata, and cryptographic reference. Requires x402 USDC payment (Polygon/Base/Arbitrum/Solana) or Pre-Funded Agent Vault key after 1 free One-Shot Proof.

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": {
      "deal_id": "<deal_id>",
      "seller_agent_address": "<seller_agent_address>"
    },
    "name": "cancel_a2a_trade_deal"
  }
}

Input Schema

NameRequiredDescriptionDefault
deal_idYesTrade deal identifier to cancel
seller_signatureNoOptional cryptographic cancellation signature
cancellation_reasonNoReason for proposal revocation
seller_agent_addressYesSeller agent EVM address executing cancellation

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.0.11
    • addedInput schema / additionalProperties
      Added value: +false
  2. Addedv1.0.6

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, openWorldHint=true and idempotentHint=false, so the safety profile is covered; the description adds non-obvious behavioral context: the returned verdict/audit/cryptographic reference and, importantly, the payment gate (x402 USDC on four chains or a Pre-Funded Agent Vault key after one free One-Shot Proof). It still does not say what happens to deal state or escrow after cancellation.

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?

Two tightly packed sentences that lead with the action and its precondition, then the return/payment facts. Dense jargon like 'One-Shot Proof' costs a little readability but no sentence is filler.

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 destructive, non-idempotent, paid mutation with no output schema, the definition covers the action, the timing gate, the payment/authentication requirement, and the shape of the response. It falls short only on post-cancellation state effects and whether the action is reversible.

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 description coverage is 100%, so all four parameters (including the optional seller_signature and cancellation_reason) are already documented; the description adds no field-level meaning beyond the schema, so the baseline of 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?

States a specific verb and resource ('revokes or cancels a pending trade deal proposal') plus a precise lifecycle window ('before buyer countersignature') and actor ('Seller AI agent'), which effectively scopes it apart from propose/dual-sign/reject siblings even though no sibling is named.

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?

The precondition 'before buyer countersignature' plus the seller-only actor gives real when-to-use context, but the description never states what to do instead once the buyer has countersigned (e.g., a rejection or dispute path) or when to prefer reject_a2a_trade_deal.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.