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

@three-ws/metaplex-agent-mcp

by nirholas

Preview an on-chain agent mint (no funds move)

preview_agent_mint
Read-only

Preview an on-chain agent mint before execution: see both JSON documents, paying wallet and live SOL balance, itemized costs with deploy fee recipient, and spend coverage. Broadcasts nothing.

Instructions

Preview mint_onchain_agent before it runs: both JSON documents, the paying wallet and its live SOL balance, every cost line including the deploy fee and its recipient, and whether the balance covers it. Broadcasts nothing. Show it to the user, get a clear yes, then call mint_onchain_agent with the same arguments, the returned preview_id and confirm_spend: true. Use this before mint_onchain_agent every time, so the person sees the full cost before any SOL moves.

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>"
    },
    "name": "preview_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.
secretNoPer-call signing key (base58 secret key or JSON byte array). Only its public key is read.
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. Addedv0.2.1

TDQS

A4.6/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, and the description reinforces this with "Broadcasts nothing" and "no funds move". It adds non-obvious behavior beyond the annotations: the preview returns a preview_id that is required to authorize the subsequent mint, which is a real stateful handoff the agent must not discard. It does not say whether previews expire or what happens if the preview fails validation, keeping it short of a 5.

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?

Front-loaded with the purpose in the first clause, then the return contents, then the workflow, in three tight sentences with no filler. There is minor overlap between the title's "no funds move" and the body's "Broadcasts nothing," but nothing is wasted.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 27 parameters and no output schema, the description carries the return-value burden and does so: it names the documents, wallet, balance, cost lines, fee recipient, and coverage verdict. It also closes the loop with the preview_id/confirm_spend consumer call, so an agent knows both what it will see and what to do next.

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 description coverage is 100% across 27 parameters, so the schema does the field-level work and the baseline is 3. The description adds one useful framing: the arguments are identical to those passed to mint_onchain_agent, so the agent understands these are the same mint inputs being dry-run. It adds no per-field nuance (e.g. how secret or collection are treated in preview mode), so it stops short of 5.

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?

Opens with a specific verb+resource ("Preview mint_onchain_agent before it runs") and enumerates exactly what the preview contains: both JSON documents, the paying wallet and live SOL balance, every cost line, and whether the balance covers it. It explicitly names the sibling it precedes and the sibling it is distinct from (mint_onchain_agent), so an agent can separate them without opening either schema.

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?

Gives an unambiguous when-to-use rule ("Use this before mint_onchain_agent every time"), a workflow (show the user, get a clear yes), and the exact follow-up call including the arguments to reuse plus preview_id and confirm_spend: true. No alternatives are left to inference because the description states this is mandatory before any SOL moves.

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