Skip to main content
Glama

chain_solana_program

Read-only

Solana program upgrade-risk check — Who can change a Solana program's code: loader type, upgradeable or immutable, upgrade authority and whether it is a single key, a program-derived address or a Squads multisig, last deploy slot and time, program size, and a LOW / MEDIUM / HIGH risk verdict. Pass program= (base58 program id). Token mints and wallets return 422 with a pointer to the right endpoint. Price: $0.004 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>"
    },
    "name": "chain_solana_program"
  }
}

Input Schema

NameRequiredDescriptionDefault
programYesJUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint, openWorldHint and destructiveHint=false, yet the description still adds substantial context: the exact evidence returned, the 422 rejection behavior for wrong input classes, and the payment requirement ($0.004 USDC on Base via x402). The paid/x402 access detail is exactly the kind of operational fact annotations cannot convey.

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 and the central question, then supporting detail. The long mid-sentence enumeration of returned fields is dense but every item is decision-relevant; a bulleted or clause-split form would read slightly better, which is the only deduction.

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?

There is no output schema, so the description carries the return-value burden and does so by enumerating the fields and the LOW/MEDIUM/HIGH verdict. Combined with the input constraint, the 422 behavior and the price, an agent has everything needed to call it and interpret the result.

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% and the single parameter's example value already shows a base58 program id, so the baseline is 3. The description adds meaning beyond the schema by stating the value must be a program id specifically, since mints and wallets are rejected with 422 — a constraint the schema does not encode.

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 ('Solana program upgrade-risk check') and immediately defines the concrete question answered: who can change a program's code. The enumerated evidence fields (loader type, upgradeable/immutable, authority kind, last deploy slot, program size, risk verdict) make it unmistakable versus the balance, tx, or validator siblings.

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?

Gives a positive usage instruction ('Pass program= (base58 program id)') and a clear exclusion: token mints and wallets return 422 with a pointer elsewhere. No sibling is named as an explicit alternative, so it falls short of a full when/when-not/alternative routing statement, but an agent knows the input class this tool accepts and rejects.

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