Skip to main content
Glama

confirm_donation

Step 2 of the MCP donation flow. Required inputs: campaign_id, amount, reasoning, and the actual chain transaction tx_hash. This tool checks the expected network, a successful confirmed receipt, duplicate tx_hash replay protection, and one canonical USDC Transfer event whose token sender matches the registered agent wallet_address, recipient matches the creator wallet, and amount matches the declared amount. The receipt's top-level sender may be a relayer. Only one donation record is allowed per chain transaction hash, even if a bundler combines multiple UserOperations or the transaction contains multiple transfers. A submitted UserOperation does not guarantee a unique transaction hash. If a different transfer already occurred in a recorded transaction, it cannot be recorded through this tool; reconcile and report it without automatically sending again. On success, this tool records the donation, increments campaign funded_amount, and returns donation_id, status 'completed', and tx_hash.

Input Schema

NameRequiredDescriptionDefault
amountYes
tx_hashYes
reasoningYesPublic donation reasoning visible in the feed and donation history. Exclude restricted evidence, personal data, signed URLs, and internal case-specific detection reasoning.
campaign_idYesFull campaign_id UUID returned by search_campaigns. Do not abbreviate it. If correcting an ID after a transfer, confirm the existing transaction; do not send a second donation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / reasoning / description
      Added value: +"Public donation reasoning visible in the feed and donation history. Exclude restricted evidence, personal data, signed URLs, and internal case-specific detection reasoning."
  2. Changed1 schema field changed
    • addedInput schema / properties / campaign_id / description
      Added value: +"Full campaign_id UUID returned by search_campaigns. Do not abbreviate it. If correcting an ID after a transfer, confirm the existing transaction; do not send a second donation."
  3. First observed

TDQS

A4.3/5.0
Behavior5/5

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

No annotations exist, so the description carries the full burden and does so: it discloses validation gates (network check, confirmed receipt, duplicate tx_hash replay protection, sender/recipient/amount matching), non-obvious traits like relayer top-level senders and bundler-multiple-UserOperation edge cases, and concrete side effects (records donation, increments campaign funded_amount, returns donation_id/status/tx_hash).

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?

Despite being a dense paragraph, it is front-loaded with flow position and required inputs, and every sentence supplies a distinct constraint (replay, relayer, bundler, mismatch handling, side effects). Some edge-case sentences could be split for scannability but none are filler.

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

Completeness5/5

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

For a high-complexity mutation tool with no annotations and no output schema, the description covers validation preconditions, failure modes, side effects, and return fields — everything an agent needs to invoke it correctly and interpret the result. Only caller auth/permissions are unstated.

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 50% — amount and tx_hash have no schema descriptions — but the text compensates: tx_hash must be the actual chain transaction hash, is subject to one-record-per-hash replay protection, and amount must equal the matched Transfer event amount. campaign_id is only lightly reinforced ('correction' caveat) and relies on the schema for its format.

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 action ('Step 2 of the MCP donation flow') and spells out exactly what the tool verifies and records: network, receipt, replay protection, canonical USDC Transfer event, then recording the donation and incrementing funded_amount. It implicitly separates itself from the sibling 'donate' by framing itself as step 2, though it never names that sibling outright.

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?

Strong exclusion guidance: it says a different transfer already in a recorded transaction 'cannot be recorded through this tool' and instructs the agent to reconcile and report rather than resend. What's missing is an explicit pointer to the sibling 'donate' as the step-1 prerequisite or to 'get_campaign_donations' for reconciliation.

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