Skip to main content
Glama

Prepare a buy

polypad_prepare_buy
Read-only

Prepares a buy of a launch token with ETH. Simulates it on-chain before returning. Returns the unsigned transaction (to, data, value, chainId 4663, gas estimate), a plain summary, and a one-tap signing link. Show the summary before the link. Never signs.

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": {
      "token": "<token>",
      "from": "<from>"
    },
    "name": "polypad_prepare_buy"
  }
}

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.
tokenYesSymbol, name, token address, or launch address.
amountEthNoETH to spend, as a decimal such as 0.01.
amountWeiNoETH to spend in wei. Use instead of amountEth.
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.
slippageBpsNoSlippage limit in basis points. Default 100, maximum 1000.
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.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint=true and destructiveHint=false, consistent with 'Never signs'. Beyond that the description discloses genuinely useful behavior: an on-chain simulation runs before returning, and the response carries the unsigned tx fields, chainId 4663, a summary, and a signing link.

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?

Short, front-loaded sentences with the action first, then simulation, then return shape, then the usage rule. Dense and largely waste-free, though the parenthetical field list is slightly cramped compared with the rest.

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 no output schema, the description carries the return contract and does so concretely (to, data, value, chainId, gas estimate, summary, link). It does not cover failure/simulation-rejection behavior or whether non-launch tokens are accepted, which is the remaining gap for a 9-parameter, open-world tool.

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 coverage is 100% and the schema itself documents every parameter including the ETH/wei alternatives, slippage, walletToken, and confirmLarge's >1 ETH threshold. The description adds no parameter meaning beyond 'with ETH', so the baseline 3 is appropriate.

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 a buy of a launch token with ETH — plus the key behavioral distinction that it simulates rather than signs. The 'launch token' scoping implicitly separates it from the sibling NFT-buy and sell preparers, though no sibling is named outright.

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?

Implied usage context is clear from 'prepares a buy... with ETH', and 'Show the summary before the link' gives presentation guidance. There is no explicit routing advice such as when to call polypad_quote_trade first or what to do if the simulation fails, so guidance remains implicit.

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.