Skip to main content
Glama

Prepare a fund exit or refund

polypad_prepare_fund_redeem
Read-only

Prepares exiting a fund after its raise closes (pro-rata share of the vault) or a refund if the raise failed. Finds the wallet's shares on-chain, or takes a quantity or specific ids.

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": {
      "from": "<from>",
      "fund": "<fund>"
    },
    "name": "polypad_prepare_fund_redeem"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsNoSpecific share ids.
refNoAttribution tag for traffic measurement. Default "grok".
fromYesThe wallet address that will sign (0x...). Never a private key. Omit it when a walletToken is passed — the wallet is resolved from the token instead.
fundYesFund address.
quantityNoHow many shares, starting from the lowest ids. Default all.
returnUrlNoOptional https:// link back to your agent flow. The signing page shows it as a button after the transaction confirms, with ?tx=<hash>&status=confirmed added. Anything that is not an https:// URL is ignored.
walletTokenNoA wallet token from /sign?connect=1: connect once, store the token, and pass it instead of from on every prepare call. The wallet is resolved from the token (signature-checked, 90-day expiry). When both are passed they must name the same wallet.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and idempotentHint=false, so the safety profile is covered. The description adds that shares are resolved on-chain when not specified, which is useful behavior. It never says what the tool actually produces (presumably an unsigned transaction or signing link surfaced via returnUrl), nor why the call is non-idempotent — e.g. that an unexecuted prepared exit may need re-preparing.

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?

Two sentences, zero padding, with the exit-or-refund fork front-loaded before the share-resolution detail. Every clause carries information an agent needs to pick the right branch.

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?

For a seven-parameter, no-output-schema tool, the description covers the branch logic and share source but says nothing about the return value (the prepared transaction or signing link), which the agent needs since there is no output schema. Parameters themselves are fully documented in the schema, so the main remaining gap is the output and the signing handoff.

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 the schema carries all seven parameters, including the 'Default all' behavior of quantity and the walletToken fallback rules. The description's only added meaning is that omitted ids/quantity cause on-chain share discovery, which is a small increment over what the schema already states.

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 states a specific verb and resource ('Prepares exiting a fund... or a refund') and distinguishes the two branches by raise outcome (closed vs. failed). It does not name the adjacent siblings (polypad_prepare_fund_mint, polypad_prepare_sell), so differentiation is by scenario rather than by explicit comparison.

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 the selecting condition clearly: use this after the raise closes to exit pro-rata, or if the raise failed to get a refund. That is real when-to-use context. There is no explicit when-not guidance or pointer to which sibling to use if the raise is still open, which keeps it below a 5.

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.