get_account
Retrieve your BubblyPhone account details including name, email, company, and balance to verify billing and manage voice agent settings.
Instructions
Get your BubblyPhone account information including name, email, company, and balance.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/account.ts:29-29 (handler)The main handler function for get_account tool - an async arrow function that calls client.get("/auth/me") via the callTool wrapper to fetch account information from the API.
async () => callTool(() => client.get("/auth/me")) - src/tools/account.ts:12-19 (handler)The callTool helper function that wraps the API call with error handling. It executes the provided function and formats the result or catches API errors.
async function callTool<T>(fn: () => Promise<T>) { try { return toolResult(await fn()); } catch (err) { const apiErr = err as ApiError; return toolError(`API error (${apiErr.status}): ${apiErr.message}`); } } - src/tools/account.ts:21-30 (registration)The registerAccountTools function that registers the get_account tool with the MCP server, including its name, schema definition, and handler.
export function registerAccountTools(server: McpServer, client: BubblyPhoneClient) { server.registerTool( "get_account", { description: "Get your BubblyPhone account information including name, email, company, and balance.", inputSchema: {}, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }, }, async () => callTool(() => client.get("/auth/me")) ); - src/tools/account.ts:24-28 (schema)The schema definition for the get_account tool - includes description, empty inputSchema (no parameters required), and behavior annotations indicating it's read-only, non-destructive, idempotent, and closed-world.
{ description: "Get your BubblyPhone account information including name, email, company, and balance.", inputSchema: {}, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false }, }, - src/server.ts:25-25 (registration)The server-level registration where registerAccountTools is called to attach the get_account tool to the MCP server instance.
registerAccountTools(server, client);