Skip to main content
Glama

crypto_solana_pda

Read-only

Solana program-derived address (PDA) calculator — Compute a Solana program-derived address offline, exactly like findProgramAddress: program= (base58 program id) and seeds= comma list where each seed is str:text, hex:0a0b, pubkey:, or u8:/u16:/u32:/u64: (little-endian); a bare 32-byte base58 value is treated as a pubkey and anything else as UTF-8 text. Returns the address, canonical bump and each seed's bytes. Optional bump= runs createProgramAddress with that bump instead. Works for Metaplex metadata accounts, associated token accounts, program vaults, Anchor seeds and more. Enforces Solana's limits (32 bytes per seed, 16 seeds). Offline; no network calls. Price: $0.002 USDC (Base, via x402).

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": {
      "program": "<program>",
      "seeds": "<seeds>"
    },
    "name": "crypto_solana_pda"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedsYesstr:metadata,metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s,EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
programYesmetaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Beyond readOnlyHint/destructiveHint the description discloses limits it enforces (32 bytes per seed, 16 seeds), the exact difference between the default findProgramAddress path and the bump= createProgramAddress path, that it is offline, and even the price ($0.002 USDC via x402) — the payment requirement is exactly the kind of operational fact an agent must know. The 'Offline; no network calls' claim sits in mild tension with openWorldHint=true (the x402 payment layer is external), which keeps this from 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 core definition and RPC analogue, then seed grammar, then return values, then limits and pricing — a sensible ordering. It is a dense run-on paragraph with heavy parenthetical/semicolon nesting, but essentially every clause carries information an agent needs.

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 no output schema, the description correctly takes on the burden of describing the return value (address, canonical bump, per-seed bytes), and it covers the two behavioral modes, hard limits, and cost. Nothing an agent needs to call this correctly is missing.

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

Parameters5/5

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

Schema coverage is 100%, but the schema descriptions are bare examples; the description supplies the real semantics — str:/hex:/pubkey:/u8:/u16:/u32:/u64: prefixes, little-endian encoding, the rule that a bare 32-byte base58 value is a pubkey and anything else is UTF-8 text, and the conditional meaning of bump=. This materially exceeds what the schema conveys.

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 — 'Compute a Solana program-derived address offline, exactly like findProgramAddress' — and grounds it in a canonical RPC analogue, so an agent instantly knows what it produces. It is clearly distinct from sibling crypto_solana_address (plain address handling) and crypto_solana_tx_decode, without needing to open any schema.

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?

Concrete use cases are enumerated ('Metaplex metadata accounts, associated token accounts, program vaults, Anchor seeds'), which tells the agent when this tool is the right one, and 'Offline; no network calls' plus the optional bump= path clarifies the two operating modes. It stops short of explicitly excluding or redirecting to a specific sibling (e.g. crypto_solana_address), so it is clear context rather than full when/when-not guidance.

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.

Resources