Skip to main content
Glama

helius_get_recent_performance_samples

Retrieve recent performance samples from the Solana blockchain via the Helius API to monitor and analyze system or transaction efficiency.

Instructions

Get recent performance samples

Input Schema

NameRequiredDescriptionDefault
limitNo

Input Schema (JSON Schema)

{ "properties": { "limit": { "type": "number" } }, "required": [], "type": "object" }

Implementation Reference

  • The main handler function that calls the Helius RPC to get recent performance samples and formats the response.
    export const getRecentPerformanceSamplesHandler = async (input: GetRecentPerformanceSamplesInput): Promise<ToolResultSchema> => { try { const samples = await (helius as any as Helius).connection.getRecentPerformanceSamples(input.limit); return createSuccessResponse(`Recent performance samples: ${JSON.stringify(samples, null, 2)}`); } catch (error) { return createErrorResponse(`Error getting performance samples: ${error instanceof Error ? error.message : String(error)}`); } }
  • JSON Schema defining the input for the tool, including optional limit parameter.
    { name: "helius_get_recent_performance_samples", description: "Get recent performance samples", inputSchema: { type: "object", properties: { limit: { type: "number" } }, required: [] } },
  • src/tools.ts:569-569 (registration)
    Maps the tool name to its handler function in the handlers dictionary.
    "helius_get_recent_performance_samples": getRecentPerformanceSamplesHandler,
  • TypeScript type definition for the handler's input parameter.
    export type GetRecentPerformanceSamplesInput = { limit?: number; }

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/dcSpark/mcp-server-helius'

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