Skip to main content
Glama

set_helius_api_key

Idempotent

Sets a Helius API key for Solana RPC reads at runtime, overriding the environment variable to fix rate limits without restarting the server.

Instructions

Set a Helius API key for Solana RPC reads at runtime — no restart required. The server constructs the canonical Helius mainnet URL (https://mainnet.helius-rpc.com/?api-key=<KEY>) internally and uses it for every subsequent Solana call until the process restarts. Takes precedence over SOLANA_RPC_URL env var and userConfig. Designed for the demo-mode flow where users want to fix Solana rate-limits without restarting their MCP client, but works in any mode. INPUT: bare API key only (UUID format, 8-4-4-4-12 hex). Pasting a URL is rejected to prevent prompt-injection redirects to malicious endpoints. WHERE TO GET ONE: https://dashboard.helius.dev/ — sign in (GitHub or email), copy the default API key auto-created on first login. Free tier covers personal-volume Solana reads + writes. PERSISTENCE: process memory only. To save across restarts, run vaultpilot-mcp-setup (after exiting demo mode if applicable) and pick "Solana RPC URL" — paste the same key there. AGENT BEHAVIOR: when the user pastes a key in chat ('here's my Helius key: '), call this tool immediately. NEVER echo the key back in any subsequent response — treat it as secret-shaped even though Helius keys can be regenerated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiKeyYesHelius API key (UUID format: 8-4-4-4-12 hex chars). Get one for free at https://dashboard.helius.dev/. Pass the bare key — the server constructs the canonical Helius mainnet URL internally. Stored in process memory only — survives until the MCP server restarts.
Behavior5/5

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

Annotations declare idempotentHint=true, readOnlyHint=false, destructiveHint=false. The description adds context: runtime-only memory, takes precedence over env var, rejects URLs to prevent prompt injection, and clarifies persistence. No contradictions.

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?

The description is front-loaded with the main action and well-organized, though somewhat lengthy. Every sentence adds value, but slight trimming could improve conciseness. Still very good.

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?

Despite no output schema, the description explains the effect (used for subsequent Solana calls until restart), security considerations, persistence, and agent behavior. Complete for a simple setter tool.

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?

The single parameter 'apiKey' is fully described in both schema (coverage 100%) and in the description, which adds detail about UUID format, bare key requirement, and where to obtain it. The description enhances understanding beyond the schema.

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 clearly states the tool sets a Helius API key for Solana RPC reads at runtime without restart, constructs the canonical URL, and explains its precedence. This is a specific verb+resource that distinguishes it from sibling tools like set_demo_wallet or set_etherscan_api_key.

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?

The description provides explicit when-to-use guidance: 'when the user pastes a key in chat...call this tool immediately.' It also tells where to get the key (Helius dashboard), what not to do (never echo the key), and offers an alternative for persistence across restarts (vaultpilot-mcp-setup).

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/szhygulin/recon-crypto-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server