Skip to main content
Glama
ledgerlens

ledgerlens

by vovaddk

monthly_summary

Read-only

Summarizes a selected month’s income, expenses, net savings, savings rate, category spending, and top merchants across all accounts, including changes from the previous month.

Instructions

Income, expenses, net, savings rate, category split and top merchants for a month, across all accounts, with the change versus the previous month.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "month": "<month>"
    },
    "name": "monthly_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthYesCalendar month, YYYY-MM.
currencyNoReporting currency for converted totals.UAH

Output Schema

NameRequiredDescriptionDefault
netYes
monthYes
notesYes
incomeYes
accountsYes
currencyYes
expensesYes
savings_rateYesnet / income, None when there is no income.
fx_rates_usedYes
top_merchantsYes
largest_expenseYes
transaction_countYes
expenses_change_pctYes
expenses_by_categoryYes
previous_month_expensesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description usefully adds that results span all accounts and include a previous-month comparison. It says nothing about behavior in edge cases that matter here, such as a month with no prior data for the delta, or how totals behave when FX rates are missing for the requested currency. That is meaningful but partial added context, so a 3.

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

Conciseness4/5

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

A single sentence that front-loads the metric list and closes with the comparison and scope qualifiers. It is dense and waste-free, though the run-on metric enumeration reads as a fragment rather than a stated purpose an agent can anchor on.

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?

With an output schema present, the description needn't explain return fields, and annotations cover the read-only profile. However, for a tool that overlaps spending_breakdown and budget_status on the same month-scoped data, the definition never clarifies the boundary, which is the one piece of context an agent still needs.

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

Parameters3/5

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

Schema description coverage is 100%: both parameters carry descriptions, the month pattern YYYY-MM is spelled out, and currency has an enum plus default UAH. The description only reinforces the month framing and the all-accounts scope, adding no new syntax or semantics beyond the schema. Baseline 3 is correct when the schema does the heavy lifting.

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

Purpose4/5

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

The description enumerates exactly what is produced: income, expenses, net, savings rate, category split, top merchants, plus a month-over-month delta, scoped to all accounts. That is a concrete resource definition an agent can match against a 'summarize my month' request. It stops short of a 5 because it is a bare noun phrase with no verb and never distinguishes itself from the overlapping sibling spending_breakdown.

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

Usage Guidelines2/5

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

There is no when-to-use framing, no prerequisites, and no mention of alternatives such as spending_breakdown or budget_status, which produce adjacent numbers. The only implied guidance is that it is month-scoped and cross-account, leaving the agent to infer selection criteria from the sibling names alone.

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