Skip to main content
Glama

confirm_donation

Step 2 of the MCP donation flow. Required inputs: campaign_id, amount, reasoning, and tx_hash. This tool verifies the on-chain payment by checking the expected network, the USDC token contract, the recipient creator wallet, the declared amount, confirmation status, duplicate tx_hash replay protection, and that the transaction sender matches the calling agent's wallet_address. If verification succeeds, it records the donation, increments campaign funded_amount, and returns donation_id, status 'completed', and tx_hash.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
amountYes
tx_hashYes
reasoningYes
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 / 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."
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations provided, the description carries full behavioral disclosure and does so richly. It enumerates the exact verification checks (network, USDC contract, recipient wallet, amount, confirmation status, tx_hash replay protection, sender match) and explicitly discloses the side effects on success: recording the donation, incrementing campaign funded_amount, and returning donation_id, status 'completed', and 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact: two sentences, front-loaded with the flow step and required inputs, then a dense list of verification checks and effects. Every sentence contributes operational value with no filler or redundancy.

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?

Given no annotations and no output schema, the description is substantial but still incomplete for correct invocation. It thoroughly covers success behavior and side effects, but omits failure behavior and leaves amount, reasoning, and tx_hash semantics underspecified, which an agent needs to call the tool correctly.

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 only 25%, so the description must compensate, but it merely lists the required parameter names without explaining semantics. It does not define amount units, tx_hash format, or what content reasoning should contain. Only campaign_id receives meaningful guidance, and that comes from the schema rather than the tool description.

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 clearly identifies confirm_donation as 'Step 2 of the MCP donation flow' and states its core action: verifying an on-chain payment and recording the donation. It specifies the verification targets and the success return values, which distinguishes it from siblings like donate and get_campaign_donations.

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?

The description gives clear context by framing the tool as 'Step 2' and requiring campaign_id, amount, reasoning, and tx_hash, implying use after an on-chain payment is made. The campaign_id schema note adds a specific when-not guidance about not sending a second donation after a transfer, but there is no explicit comparison to the donate sibling or fuller exclusions for failure cases.

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