Skip to main content
Glama
report-generator.ts798 B
// Generates the response/report for get-transactions tool export class GetTransactionsReportGenerator { generate( mappedTransactions: Array<{ id: string; date: string; payee: string; category: string; amount: string; notes: string; }>, filterDescription: string, filteredCount: number, totalCount: number ): string { const header = '| ID | Date | Payee | Category | Amount | Notes |\n| ---- | ----- | -------- | ------ | ----- |\n'; const rows = mappedTransactions .map((t) => `| ${t.id} | ${t.date} | ${t.payee} | ${t.category} | ${t.amount} | ${t.notes} |`) .join('\n'); return `# Filtered Transactions\n\n${filterDescription}\nMatching Transactions: ${filteredCount}/${totalCount}\n\n${header}${rows}`; } }

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/s-stefanov/actual-mcp'

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