Skip to main content
Glama
mayankchugh-learning

expense-mcp

summarize

Aggregate total spend per category for a given date range. Optionally filter by category to see spending breakdown.

Instructions

Aggregate total spend per category over a date range.

Args: start_date: Range start, YYYY-MM-DD recommended. end_date: Range end, YYYY-MM-DD recommended. category: If set, only this category is included in the aggregation.

Returns: List of dicts with keys category and total_amount (sum of amount). Sorted by category ascending.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNo
end_dateYes
start_dateYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/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 discloses the return format (list of dicts with category and total_amount, sorted) and the filtering capability. However, it does not explicitly state that the tool is read-only or non-destructive, which would be helpful.

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, with clear Args and Returns sections. Every sentence serves a purpose, and the most important information is front-loaded.

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

Completeness5/5

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

Given the tool's simplicity and the presence of an output schema (implied by context), the description adequately covers purpose, parameters, and return value. No critical gaps are evident for a basic aggregation tool.

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

Parameters5/5

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

The input schema has 0% description coverage, so the description fully compensates by explaining each parameter: start_date and end_date with recommended format YYYY-MM-DD, and category as an optional filter. This adds significant meaning beyond the schema.

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 tool aggregates total spend per category over a date range, using a specific verb and resource. It differentiates itself from siblings (add_expense, list_expenses) by focusing on aggregation rather than individual entries.

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 explains what the tool does but does not provide explicit guidance on when to use it over alternatives like list_expenses. It implies that it is suitable for summarized data, but lacks when-not or contrast with siblings.

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/mayankchugh-learning/local-expense-mcp'

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