Skip to main content
Glama
@three-ws/metaplex-agent-mcp

@three-ws/metaplex-agent-mcp

by nirholas

Prepare an agent mint for a Phantom/Solflare wallet to sign

prepare_agent_mint
Read-only

Build unsigned Solana transactions to mint and register a Metaplex Core agent for an external wallet, letting users sign and broadcast without sharing a secret key.

Instructions

Build the exact Genesis-style mint+register flow (Metaplex Core asset + Agent Identity) for an EXTERNAL Solana wallet: Phantom, Solflare, Backpack, Ledger, anything. Needs no secret key. Returns unsigned transactions base64 in txs_base64 (already co-signed by the new asset keypair) with wallet as the fee payer: one atomic tx when it fits Solana's size limit, else create + register to sign together via signAllTransactions. The wallet signs and broadcasts, or hands the signed array to send_signed_transaction. Includes the same mainnet deploy fee as mint_onchain_agent, priced against the wallet's live $THREE balance and returned as deploy_fee_sol/deploy_fee_to before anything is signed. Broadcasts nothing itself. The blockhash expires after roughly a minute, so sign promptly and re-prepare if a wallet reports an expired transaction. Use this instead of mint_onchain_agent when the person pays from their own browser or hardware wallet.

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": {
      "name": "<name>",
      "wallet": "<wallet>"
    },
    "name": "prepare_agent_mint"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesAgent name. Becomes the Core asset name and the registration name.
imageNoThumbnail/avatar image URL (PNG or similar). Shown on metaplex.com/agents, wallets, and explorers.
ownerNoMint the asset to this owner instead of the signing wallet.
activeNoRegistration active flag. Default true.
walletYesThe base58 address of the wallet that will sign, pay, and own the agent.
networkNoSolana cluster. Defaults to the configured network (mainnet unless overridden).
servicesNoServices the agent offers, listed on its Metaplex agent page ({name, endpoint}).
model_urlNo3D model URL (GLB). Written as the asset metadata animation_url and as model.uri in the registration, Genesis style.
attributesNoOn-chain Attributes plugin entries (real bytes in the asset account).
collectionNoMint into this Metaplex Core collection. The signer must be the collection authority.
add_blockerNoAttach AddBlocker so no further plugins can be added. Default false.
descriptionNoWhat this agent is or does. Stored in the EIP-8004 registration document.
external_urlNoOptional external_url in the asset metadata (e.g. the agent home page).
metadata_uriNoFull override for the asset metadata URI (https or data:). Skips the built-in metadata builder.
x402_supportNoAdvertise x402 payment support in the registration document. Default false.
registrationsNoExternal registry registrations. Defaults to the chain registry entry, or the three.ws entry when threews_agent_id is set.
permanent_burnNoAttach PermanentBurnDelegate. Default false.
supported_trustNoTrust models the agent supports. Default ['reputation'] (Genesis style).
permanent_freezeNoAttach PermanentFreezeDelegate (unfrozen). Default false.
registration_uriNoFull override for the Agent Identity registration URI (https or data:). Skips the built-in registration builder.
royalty_creatorsNoRoyalty split. Percentages must sum to 100. Defaults to the signing wallet at 100%.
threews_agent_idNothree.ws agent UUID. Adds the Genesis-exact registration entry {agentId, agentRegistry: "https://three.ws"}.
verified_creatorNoAttach the VerifiedCreators plugin with the signing wallet verified. Default true (Genesis style).
immutable_metadataNoAttach the ImmutableMetadata plugin so the metadata can never change. Default true (Genesis style).
permanent_transferNoAttach PermanentTransferDelegate. Default false.
metadata_attributesNoOff-chain attributes array inside the asset metadata JSON (trait_type/value pairs).
royalty_basis_pointsNoRoyalty in basis points. Default 500 (5%), the Genesis value. 0 removes the Royalties plugin.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv0.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / attributes / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / collection / $ref
      Removed value: -"#/properties/owner"
    • addedInput schema / properties / collection / maxLength
      Added value: +44
    • addedInput schema / properties / collection / minLength
      Added value: +32
    • addedInput schema / properties / collection / type
      Added value: +"string"
    • removedInput schema / properties / metadata_attributes / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / registrations / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / royalty_creators / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / royalty_creators / items / properties / address / $ref
      Removed value: -"#/properties/owner"
    • addedInput schema / properties / royalty_creators / items / properties / address / maxLength
      Added value: +44
    • addedInput schema / properties / royalty_creators / items / properties / address / minLength
      Added value: +32
    • addedInput schema / properties / royalty_creators / items / properties / address / type
      Added value: +"string"
    • removedInput schema / properties / services / items / additionalProperties
      Removed value: -false
    • addedInput schema / properties / threews_agent_id / pattern
      Added value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
  2. First observedv0.2.0

TDQS

A4.4/5.0
Behavior3/5

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

Excellent disclosure beyond annotations: unsigned output, fee-payer designation, atomic-vs-split transaction shape, deploy fee previewed before signing, blockhash expiry of roughly a minute, and "broadcasts nothing itself." However, readOnlyHint=true sits awkwardly against a tool whose purpose is to construct a mint transaction sequence — not a strict contradiction since nothing is broadcast or persisted, but the description never reconciles the construction of write-intent payloads with the read-only annotation.

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?

Dense but front-loaded: capability, then return contract, then signing flow, then fee, then failure mode, then alternative-selection rule. Every sentence carries operational information; nothing is repeated from the title or schema.

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 correctly compensates by naming txs_base64, deploy_fee_sol and deploy_fee_to and describing the atomic-vs-signAllTransactions branching. It stops short of stating what happens on partial failure or whether a prepare can be reused, which matters for a 27-parameter builder.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% across 27 parameters, so the baseline is 3; the description adds real meaning on top by explaining `wallet` as the fee payer/signer/owner, `txs_base64` return shape, and that `name` feeds both the Core asset and the registration. It also contextualizes the fee against live $THREE balance, which the schema cannot express.

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?

"Build the exact Genesis-style mint+register flow (Metaplex Core asset + Agent Identity) for an EXTERNAL Solana wallet" names a specific verb, the two on-chain artifacts produced, and the exact audience. It is immediately distinguishable from mint_onchain_agent, which it names explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing rule at the end: "Use this instead of mint_onchain_agent when the person pays from their own browser or hardware wallet." It also covers the follow-on path (wallet signs and broadcasts, or hands the array to send_signed_transaction) and the recovery case (re-prepare if a wallet reports an expired transaction).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.