Skip to main content
Glama

Prepare an NFT buy or mint

polypad_prepare_nft_buy
Read-only

Prepares either a marketplace purchase (listingId) or a public mint from a fixed-price collection (collection + quantity). Checks supply, wallet limits, and price, then simulates. Returns unsigned transactions, a summary, and a signing link. Collections still in their commitment window are sent to the collection page instead.

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>"
    },
    "name": "polypad_prepare_nft_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.
quantityNoHow many to mint, 1 to 50. Default 1.
listingIdNoMarketplace listing id.
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.
collectionNoCollection address for a public mint.
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.
collectionNameNoCollection name, if no address is known.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=true, openWorldHint=true, idempotentHint=false), the description discloses that supply, wallet limits, and price are checked and the transaction is simulated, and that output is unsigned transactions plus a signing link — so the agent knows this does not itself submit anything, which is consistent with readOnlyHint. It doesn't cover failure behavior or the >1 ETH confirmation flow, which is left to the schema.

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?

Four short sentences, front-loaded with the two modes, then behavior, then return values, then the exception case. No filler and nothing repeated from the schema or annotations.

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 9-parameter preparation tool with no output schema, the description covers the important ground: mode selection, what is validated, what is returned (unsigned tx, summary, signing link), and the commitment-window exception. Remaining gaps — error cases and the large-amount confirmation gate — are minor and partly handled by the schema.

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%, so every parameter is already documented, which sets the baseline at 3. The description does add genuine meaning the schema lacks — that listingId and collection + quantity are alternative modes, not combinable inputs — but it gives no detail on confirmLarge, returnUrl, or walletToken behavior beyond what the schema 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 names a specific verb (prepares) and resource (an NFT buy or mint), and splits the tool into two clearly labeled modes: a marketplace purchase keyed on listingId and a public mint keyed on collection + quantity. That framing distinguishes it from the token/fund siblings even though no sibling is named explicitly.

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 tells the agent which inputs select which mode (listingId vs collection + quantity) and adds a real routing rule: collections still in their commitment window are sent to the collection page instead. It stops short of naming an alternative sibling to use for those redirected cases or of stating prerequisite ordering with a signing step.

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.