Skip to main content
Glama

Prepare a fund investment

polypad_prepare_fund_mint
Read-only

Prepares minting shares of an open fund. Checks the raise is open, that public minting is open (the manager has to mint the required shares before anyone else), supply, and balance. Simulates, then returns unsigned transactions, a summary, and a signing link.

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_mint"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
quantityNoNumber of shares. Default 1.
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.
confirmLargeNoSet true only after the user confirmed an amount above 1 ETH.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, consistent with a tool that only prepares unsigned transactions. The description adds real context beyond them: it names the precondition checks performed, notes a simulation step, and enumerates the return payload (unsigned transactions, summary, signing link), so the agent knows nothing is broadcast on call.

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?

Three short, front-loaded sentences: action first, then checks, then outputs. The parenthetical about the manager minting first earns its place by explaining a non-obvious ordering constraint, and there is no redundant 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?

With seven parameters, no output schema, and read-only annotations, the description covers both the precondition behavior and the shape of the return value, which is what an agent needs before calling. It stops short of explaining failure modes or how the returned signing link is used, but nothing essential is missing.

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 seven parameters are already documented in the schema, including walletToken/from interaction and confirmLarge preconditions. The description adds no parameter-level detail, so the baseline 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: 'Prepares minting shares of an open fund.' The word 'minting' implicitly separates it from polypad_prepare_fund_redeem and polypad_prepare_fund_create, but no sibling is named, so the agent must infer the distinction from the verb choice alone.

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 description supplies preconditions checked (raise open, public minting open, manager mints first) which tells the agent when the call can succeed, but it never states when to prefer this over the redeem or create siblings, nor what to do when a precondition fails.

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.