Skip to main content
Glama

Model Context Protocol Server for Solana Client

by tywenk

get_program_accounts

Query all accounts associated with a specific program Pubkey on the Solana blockchain using this tool. Retrieve account details to manage and analyze program interactions effectively.

Instructions

Returns all accounts owned by the provided program Pubkey.

Args: program_id (str): Pubkey of program to query

Returns: str: Program accounts in the format "Program accounts: {accounts}"

Input Schema

NameRequiredDescriptionDefault
program_idYes

Input Schema (JSON Schema)

{ "properties": { "program_id": { "title": "Program Id", "type": "string" } }, "required": [ "program_id" ], "title": "get_program_accountsArguments", "type": "object" }

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/tywenk/mcp-sol'

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