get_wallet
Retrieve wallet details including address, label, chain, spending limits, and pause status by providing a wallet ID.
Instructions
Get details for a specific wallet by ID. Returns address, label, chain, spending limits, and pause status.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | Yes | Wallet ID |
Implementation Reference
- src/index.ts:393-404 (registration)The 'get_wallet' tool is registered with the MCP server. It includes the tool name, description, input schema (zod validation for wallet_id as required integer), and the async handler function that calls the API endpoint /wallets/${wallet_id} to fetch wallet details.
server.tool( 'get_wallet', 'Get details for a specific wallet by ID. ' + 'Returns address, label, chain, spending limits, and pause status.', { wallet_id: z.number().int().describe('Wallet ID'), }, async ({ wallet_id }) => { const data = await api(`/wallets/${wallet_id}`); return jsonResponse(data); }, ); - src/index.ts:400-403 (handler)The handler function for 'get_wallet' tool. It receives wallet_id from the validated input, makes an API call to /wallets/${wallet_id}, and returns the response as JSON.
async ({ wallet_id }) => { const data = await api(`/wallets/${wallet_id}`); return jsonResponse(data); }, - src/index.ts:397-399 (schema)The input schema for 'get_wallet' tool using Zod. Defines wallet_id as a required integer with a descriptive comment.
{ wallet_id: z.number().int().describe('Wallet ID'), },