Skip to main content
Glama
@cryptoapis-io/mcp-blockchain-fees

@cryptoapis-io/mcp-blockchain-fees

Official

Solana fee and compute unit estimates

blockchain_fees_solana
Read-onlyIdempotent

Get Solana priority fee recommendations and estimate compute units for native transfers, SPL token transfers, and program calls to plan transaction costs.

Instructions

Blockchain Fees Solana: fee recommendations and compute-unit estimation. Solana uses compute units (not gas), so this is a distinct cost model from EVM.

Actions: • get-fee-recommendations: Get current priority fee recommendations from the mempool • estimate-native-coin-transfer-compute-units: Estimate compute units for a native SOL transfer • estimate-token-transfer-compute-units: Estimate compute units for an SPL token transfer • estimate-program-invocation-compute-units: Estimate compute units for an arbitrary program instruction call

Credits by action (source: OpenAPI): • estimate-native-coin-transfer-compute-units: 120 • estimate-program-invocation-compute-units: 120 • estimate-token-transfer-compute-units: 120 • get-fee-recommendations: 90

Credits are indicative only and may change at any time. The actual credits spent for each API request are returned in the response headers.

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": {
      "action": "<action>",
      "network": "<network>"
    },
    "name": "blockchain_fees_solana"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesAction to perform
amountNoAmount in lamports (native) or token base units (token) - required for estimate-native-coin-transfer-compute-units, estimate-token-transfer-compute-units
senderNoSender address - required for all estimate actions
contextNoOptional context for the request - echoed back in response
networkYesNetwork name
accountsNoAccounts referenced by the instruction, in the order the program expects them (estimate-program-invocation-compute-units only; may be empty)
programIdNoOn-chain program address to invoke - required for estimate-program-invocation-compute-units
recipientNoRecipient address - required for estimate-native-coin-transfer-compute-units, estimate-token-transfer-compute-units
tokenStandardNoSPL token program standard - required for estimate-token-transfer-compute-units
contractAddressNoSPL token mint address - required for estimate-token-transfer-compute-units
instructionDataNoBase58/base64-encoded instruction data for the program call - required for estimate-program-invocation-compute-units

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.1

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, so the safety profile is covered. The description adds value beyond that with per-action credit costs, the caveat that credits are indicative and may change, and the note that actual credits appear in response headers — practical cost context an agent cannot get from annotations.

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?

Purpose is front-loaded in the first sentence, followed by a scannable action list and a credits block. The credits section repeats all four action names a second time, which is mild redundancy, but each block is short and clearly headed.

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 an 11-parameter, four-action tool with full schema coverage and no output schema, the definition covers operations and cost model adequately. The main residual gap is that it never characterizes what a fee recommendation or compute-unit estimate response contains, which matters somewhat since no output schema exists.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter including per-action requirements is already documented in structured form. The action bullets restate what the enum values mean but add no syntax, format, or unit detail beyond the schema; baseline 3 applies.

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?

The description names the resource (Solana fees and compute units) and enumerates the four concrete operations, so an agent knows exactly what it can do. It also explicitly distinguishes itself from the EVM sibling by noting Solana uses compute units rather than gas, which is a real disambiguation cue.

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?

The 'distinct cost model from EVM' line gives a clear selection signal against blockchain_fees_evm and the other chain-specific fee siblings, and the action list routes within the tool. It stops short of stating exclusions (e.g. when to prefer a generic fee tool or what to do if the chain is unsupported), so it is clear context without 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.