Skip to main content
Glama

Solana PDA / ATA / on-curve / Anchor discriminator (dev tool)

solana_address
Read-onlyIdempotent

Solana address math: op=pda (program + seeds as hex strings → program-derived address and bump), ata (owner + mint [+ token_program] → associated token account), on_curve (address → is it an ed25519 point), anchor_disc (instruction name, e.g. initialize → 8-byte discriminator). Pure, offline computation (blocktools); nothing is fetched or stored. How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-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": {
      "op": "<op>"
    },
    "name": "solana_address"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
mintNo
nameNo
ownerNo
seedsNo
addressNo
programNo
token_programNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly/openWorld=false/idempotent, and the description reinforces this with 'nothing is fetched or stored', which is meaningful corroboration for an agent deciding whether it can call this without network side effects. It stops short of stating error behavior (e.g. what happens on an invalid seed or non-existent PDA), which would earn 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?

Dense and front-loaded: the op list and input/output mapping come first, then the offline-computation caveat, then the cross-reference. The trailing enumeration of all seven swapchan_playbook workflow names is list-padding that could be trimmed to a single pointer.

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 does the necessary work by stating what each op returns (address+bump, ATA, boolean on-curve, 8-byte discriminator). What's missing is failure modes and the address encoding conventions for an 8-parameter tool where only 'op' is required.

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 0%, so the description must carry the burden — and it largely does, mapping parameters to ops: program+seeds (as hex strings) for pda, owner+mint[+token_program] for ata, address for on_curve, name (e.g. initialize) for anchor_disc. The remaining gap is encoding of address/owner/mint fields (base58 presumably), which is never stated.

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?

Names a specific resource (Solana address math) and enumerates four concrete operations with input→output mappings: pda, ata, on_curve, anchor_disc. The parenthetical input hints (program + seeds, owner + mint, address, instruction name) make it unambiguous what each op does, and 'address math' clearly distinguishes it from sibling tools like resolve_name or token_info.

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

Usage Guidelines3/5

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

States the execution context ('Pure, offline computation (blocktools); nothing is fetched or stored') and points to swapchan_playbook for higher-level workflows, which implies this is a low-level building block. However, it never says when to choose this over address_tool, xpub_addresses, or contract_reader — the sibling most likely to be confused with it is unmentioned.

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.