Skip to main content
Glama

Xero MCP Server

BalanceSheet.ts909 B
import { XeroClientSession } from "../../XeroApiClient.js"; import { IMcpServerTool } from "../IMcpServerTool.js"; import { z } from "zod"; export const GetBalanceSheetTool: IMcpServerTool = { requestSchema: { name: "get_balance_sheet", description: "Returns a balance sheet for the end of the month of the specified date. It also returns the value at the end of the same month for the previous year.", inputSchema: { type: "object", properties: {} }, output: { content: [{ type: "text", text: z.string() }] }, }, requestHandler: async () => { const response = await XeroClientSession.xeroClient.accountingApi.getReportBalanceSheet( XeroClientSession.activeTenantId()!! ); const reports = response.body.reports || []; return { content: [ { type: "text", text: JSON.stringify(reports), }, ], }; }, };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/john-zhang-dev/xero-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server