Skip to main content
Glama

Prepare a Refund Claim

prepare_claim_refund_calldata

Builds an unsigned transaction blueprint for reclaiming funds held by the protocol after a losing bid.

When you are outbid, your funds stay claimable rather than being pushed back automatically. This encodes the claim for a given token.

Returns an unsigned transaction blueprint for the requested intent. The user is responsible for reviewing, signing, and broadcasting via their own wallet. Aletheia does not hold keys or dispatch transactions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
networkNoNetwork. Default 'arbitrum-one' (mainnet, real funds).arbitrum-one
token_addressYesThe token to reclaim, e.g. the USDC address you bid with.
claimant_addressYesYour address — used to check there is a pending refund.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so thoroughly. It discloses that the output is unsigned, that funds are not automatically returned, that the user must review/sign/broadcast, and that Aletheia does not hold keys or dispatch transactions. These are meaningful behavioral boundaries.

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 front-loaded with the core action, followed by workflow context and user responsibility. Every sentence earns its place, and there is no repeated schema content or 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 3-parameter calldata-preparation tool, the description covers the claim scenario, the unsigned nature of the output, and the user's signing/broadcasting responsibility. It could slightly expand on what the returned 'blueprint' contains, but the essential context is present.

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%, with each parameter already documented clearly. The description's 'given token' and 'your address' wording loosely mirrors token_address and claimant_address but adds no substantive semantic detail beyond the schema, so baseline 3 is appropriate.

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 verb ('Builds'), a resource ('unsigned transaction blueprint'), and the exact purpose ('reclaiming funds held by the protocol after a losing bid'). The 'when you are outbid' scenario clearly distinguishes this refund-claim tool from sibling tools like prepare_claim_collateral_calldata.

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?

It gives clear usage context: use this when the user was outbid and their funds remain claimable. It also explains that the tool only encodes the claim and the user must sign/broadcast. However, it does not explicitly name alternative sibling tools or state when not to use it.

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.