Skip to main content
Glama

exportAccountingItems

Export charges, payments, and other accounting items within a specified period and format using Mews MCP. Customize exports by currency, time zone, or specific item IDs for precise financial reporting.

Instructions

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

Input Schema

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

Implementation Reference

  • The execute function that handles the tool logic by making a request to '/api/connector/v1/exports/accountingItems' with the provided arguments.
    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 defining parameters for the export such as StartUtc, EndUtc, Format, AccountingItemIds, 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 },
  • Registration of the exportAccountingItemsTool in the central allTools array used for tool registry and lookup.
    exportAccountingItemsTool,

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