get_all_manual_accounts
Retrieve a list of all manually-managed accounts, including assets, to track non-synced financial data and balances.
Instructions
Get a list of all manually-managed accounts associated with the user. (Formerly known as assets in the v1 API.)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/manual-accounts.ts:34-49 (handler)The async handler function for get_all_manual_accounts. It calls GET /manual_accounts via the api helper and returns the JSON response.
async () => { try { const response = await api.get("/manual_accounts"); if (!response.ok) { return handleApiError( response, "Failed to get manual accounts", ); } return dataResponse(await response.json()); } catch (error) { return catchError(error, "Failed to get manual accounts"); } }, - src/tools/manual-accounts.ts:24-50 (registration)The registerManualAccountTools function registers 'get_all_manual_accounts' (and other manual account tools) on the McpServer via server.registerTool().
export function registerManualAccountTools(server: McpServer) { server.registerTool( "get_all_manual_accounts", { description: "Get a list of all manually-managed accounts associated with the user. (Formerly known as `assets` in the v1 API.)", annotations: { readOnlyHint: true, }, }, async () => { try { const response = await api.get("/manual_accounts"); if (!response.ok) { return handleApiError( response, "Failed to get manual accounts", ); } return dataResponse(await response.json()); } catch (error) { return catchError(error, "Failed to get manual accounts"); } }, ); - src/tools/manual-accounts.ts:27-33 (schema)Input schema for get_all_manual_accounts — no input parameters are defined (empty schema), with annotations readOnlyHint: true.
{ description: "Get a list of all manually-managed accounts associated with the user. (Formerly known as `assets` in the v1 API.)", annotations: { readOnlyHint: true, }, }, - src/index.ts:31-33 (registration)The top-level call that registers the manual account tools on the MCP server.
registerManualAccountTools(server); registerPlaidAccountTools(server); registerCryptoTools(server); - src/api.ts:146-153 (helper)The api.get() helper used by the handler to make the HTTP GET request to /manual_accounts.
export const api = { get: (path: string) => apiRequest("GET", path), post: (path: string, body?: unknown) => apiRequest("POST", path, body), put: (path: string, body: unknown) => apiRequest("PUT", path, body), delete: (path: string, body?: unknown) => apiRequest("DELETE", path, body), upload: (path: string, formData: FormData) => apiUpload("POST", path, formData), };