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

@three-ws/metaplex-agent-mcp

by nirholas

Mint an on-chain agent into the Metaplex Agent Registry

mint_onchain_agent
Destructive

Deploys an AI agent on-chain as a Metaplex Core asset with EIP-8004 Agent Identity, minting and registering it on Solana in one transaction. Returns a full cost preview unless confirm is true.

Instructions

Deploy an AI agent on-chain, Genesis-333 style: mints a Metaplex Core asset (data: URI metadata, verified creator, royalties, immutable metadata) AND registers its EIP-8004 Agent Identity, so it appears on metaplex.com/agents with its own built-in wallet. Runs as ONE atomic transaction when it fits Solana's 1232-byte limit, otherwise as create followed by register (how the Genesis 333 landed). Signs with the configured SOLANA_SECRET_KEY (or a per-call secret) and spends ~0.007 SOL in rent + fees, plus a flat SOL deploy fee on mainnet that funds $THREE buybacks (holding $THREE halves it, then waives it; devnet is free; see three_status). The fee rides in the same transaction as the mint, so a failed mint pays nothing. Without confirm:true it returns a full preview (both JSON documents, the paying wallet, every cost line including the fee and its recipient) and broadcasts NOTHING. Use this when the server holds the paying key and the person approved the preview_agent_mint cost; for Phantom/Solflare users, use prepare_agent_mint 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": {
      "name": "<name>"
    },
    "name": "mint_onchain_agent"
  }
}

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). Overrides SOLANA_SECRET_KEY.
confirmNoMust be true to broadcast. Anything else returns a spend-nothing preview.
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.2/5.0
Behavior3/5

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

Annotations already flag a destructive, non-idempotent, open-world write, and the description adds real operational context on top: atomic-versus-two-transaction behavior under Solana's 1232-byte limit, which key signs, the ~0.007 SOL rent plus flat mainnet deploy fee, the $THREE discount, and that a failed mint pays nothing. It stops short of saying what a successful call returns (signature, asset address) or what happens on partial failure, which matters for a non-idempotent write.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded and unusually information-dense for its length, with no filler sentences. However, it is delivered as one long parenthetical-heavy block with semicolons and nested asides (fee policy, buyback funding, devnet, debug pointer to three_status) that make it hard to scan and bury the confirm:true rule mid-paragraph.

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 28-parameter, no-output-schema mutation tool it covers the decision-critical facts: cost model, atomicity, key custody, preview safety, and the sibling alternative. It is thin on post-success behavior, since nothing tells the agent what it receives on broadcast or how to report the minted asset back.

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%, so the schema carries parameter mechanics, but the description still adds meaning the schema cannot: confirm:true is what gates broadcasting, a preview otherwise returns both JSON documents and every cost line, and secret overrides SOLANA_SECRET_KEY with the same signing authority. The remaining 25 parameters are left entirely to their schema descriptions, which is acceptable given full coverage.

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?

States a specific verb and resource pair (mint a Metaplex Core asset + register an EIP-8004 Agent Identity) plus the resulting visibility on metaplex.com/agents with a built-in wallet. It also distinguishes itself from the sibling it is not (prepare_agent_mint) for users who sign in Phantom/Solflare.

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 explicit when-to-use condition ('when the server holds the paying key and the person approved the preview_agent_mint cost') and an explicit alternative for the other case ('for Phantom/Solflare users, use prepare_agent_mint instead'). It also states the confirm:true precondition, so the agent knows a preview is the default outcome.

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