get_coin_info
Retrieve detailed coin information by providing its mint ID, enabling users to access essential data for analysis and decision-making.
Instructions
Get information about a coin
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mintId | Yes | The mint id of the coin(coin address) |
Implementation Reference
- index.ts:102-110 (handler)The switch case within handleToolCall that executes the get_coin_info tool. It constructs the API URL using the mintId from arguments and fetches the coin information from the pump.fun API, returning the JSON data.case "get_coin_info": url = PUMP_FUN_API_URL+'/coins/'+args.mintId; return { content: [{ type: "text", text: JSON.stringify((await fetchPumpFunData(url, {}))) }], isError: false, };
- index.ts:46-52 (schema)The input schema definition for the get_coin_info tool, specifying the required 'mintId' parameter.inputSchema: { type: "object", properties: { mintId: { type: "string", description: "The mint id of the coin(coin address)" }, }, required: ["mintId"], },
- index.ts:43-53 (registration)The tool registration in the TOOLS array, defining name, description, and input schema for get_coin_info.{ name: "get_coin_info", description: "Get information about a coin", inputSchema: { type: "object", properties: { mintId: { type: "string", description: "The mint id of the coin(coin address)" }, }, required: ["mintId"], }, }
- index.ts:148-150 (registration)Registers the ListToolsRequestHandler which returns the TOOLS list including get_coin_info.server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: TOOLS, }));
- index.ts:152-154 (registration)Registers the CallToolRequestHandler which dispatches to handleToolCall based on tool name.server.setRequestHandler(CallToolRequestSchema, async (request) => handleToolCall(request.params.name, request.params.arguments ?? {}) );