up_get_account
Retrieve account details including current balance and information by providing the account ID through the Up Banking MCP Server integration.
Instructions
Get details for a specific account by ID, including current balance and account information.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| accountId | Yes | The unique identifier for the account |
Implementation Reference
- src/index.ts:413-424 (handler)Tool handler case that parses arguments, calls UpApiClient.getAccount, and returns the JSON-formatted result.case "up_get_account": { const args = request.params.arguments as { accountId: string }; const result = await client.getAccount(args.accountId); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
- src/index.ts:144-146 (handler)Core implementation that makes the API request to retrieve the specific account details from Up API.async getAccount(accountId: string): Promise<{ data: AccountResource }> { return this.makeRequest(`/accounts/${accountId}`); }
- src/index.ts:247-261 (registration)Registers the tool in the TOOLS array with name, description, and input schema.{ name: "up_get_account", description: "Get details for a specific account by ID, including current balance and account information.", inputSchema: { type: "object", properties: { accountId: { type: "string", description: "The unique identifier for the account", }, }, required: ["accountId"], }, },
- src/index.ts:251-260 (schema)Defines the input schema requiring accountId string.inputSchema: { type: "object", properties: { accountId: { type: "string", description: "The unique identifier for the account", }, }, required: ["accountId"], },