Skip to main content
Glama
dougdaley

Accounting Ledger MCP Server

by dougdaley

generate_profit_loss_report

Generate a Profit & Loss (income statement) report in JSON format for a specified entity and optional date range.

Instructions

Generates a Profit & Loss (Income Statement) report in JSON format.

Args:
    entity_name: Entity name to generate report for
    start_date: Start date for the report (YYYY-MM-DD format, optional)
    end_date: End date for the report (YYYY-MM-DD format, optional)

Returns:
    JSON string containing the P&L report

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateNo
start_dateNo
entity_nameNoExample Company
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It mentions that the report is returned as a JSON string but does not disclose whether the operation is read-only, whether existing ledger data is required, or any constraints or side effects. For a tool that may depend on prior recorded entries, this is a notable gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured with a one-line summary followed by a clear Args/Returns layout. Every sentence adds value and there is no redundancy or irrelevant information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the core purpose and parameters but leaves gaps: it does not mention default behavior when dates are omitted, that entity_name defaults to 'Example Company', or what happens if no financial records exist. It also lacks an output schema, so the return structure is only vaguely described as a 'P&L report.'

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the description compensates well by explaining all three parameters: entity_name (entity to generate report for) and start_date/end_date (with YYYY-MM-DD format and optionality). This goes beyond the schema, which only provides defaults and no descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'Generates' and the specific resource 'Profit & Loss (Income Statement) report in JSON format,' making the tool's purpose unambiguous. It also contrasts with sibling tools like record_cash_sale and create_ledger, which are recording operations, so there is no confusion with other tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not explicitly state when to use this tool versus alternatives, but the sibling context implies it is the reporting tool among recording tools. No when-not conditions or alternative recommendations are provided, so usage guidance is only implied, not spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/dougdaley/mcpAccountingDemo'

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