Skip to main content
Glama

exportAccountingItems

Export accounting items like charges and payments from Mews in CSV, JSON, or Excel format for a specified date range to support financial reporting and analysis.

Instructions

Exports accounting items (charges, payments, etc.) in the specified format and period

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
StartUtcYesStart date for export (ISO 8601)
EndUtcYesEnd date for export (ISO 8601)
FormatYesExport format (CSV, JSON, etc.)
AccountingItemIdsNoSpecific accounting item IDs to export
CurrencyNoCurrency code for export amounts
TimeZoneNoTime zone for date formatting

Implementation Reference

  • The execute function implementing the core logic of the exportAccountingItems tool by forwarding input arguments to the Mews API endpoint '/api/connector/v1/exports/accountingItems' and returning the JSON-formatted result.
    async execute(config: MewsAuthConfig, args: unknown): Promise<ToolResult> { const inputArgs = args as Record<string, unknown>; const requestData = { ...inputArgs }; const result = await mewsRequest(config, '/api/connector/v1/exports/accountingItems', requestData); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
  • Input schema for the exportAccountingItems tool, specifying required date range and format, with optional filters for accounting items, currency, and timezone.
    inputSchema: { type: 'object', properties: { StartUtc: { type: 'string', description: 'Start date for export (ISO 8601)' }, EndUtc: { type: 'string', description: 'End date for export (ISO 8601)' }, Format: { type: 'string', description: 'Export format (CSV, JSON, etc.)', enum: ['Csv', 'Json', 'Excel'] }, AccountingItemIds: { type: 'array', items: { type: 'string' }, description: 'Specific accounting item IDs to export', maxItems: 1000 }, Currency: { type: 'string', description: 'Currency code for export amounts' }, TimeZone: { type: 'string', description: 'Time zone for date formatting' } }, required: ['StartUtc', 'EndUtc', 'Format'], additionalProperties: false },
  • Registers the exportAccountingItemsTool in the central allTools array used for MCP server tool definitions and execution lookup.
    // Export tools exportAccountingItemsTool, exportReservationsTool,

Latest Blog Posts

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/code-rabi/mews-mcp'

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