Skip to main content
Glama

Expense summary

expense_summary
Read-onlyIdempotent

What this account spent, from its Expense Center: the total for a window (default the last 90 days), split by category, property and vendor, with the latest expenses. Void, refunded and draft expenses are left out. total_spent is null — not zero — when it could not be read, and degraded names any part that failed. Rent and repairs have their own tools.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "expense_summary"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoISO date — window end (default today).
daysNoWindow in days ending today (1-730, default 90). Ignored when `from` is given.
fromNoISO date — window start.

Output Schema

NameRequiredDescriptionDefault
toNo
fromNo
noteNo
recentNo
degradedNo
by_vendorNo
truncatedNoPresent and true when the result was too large to return in full. Treat it as a partial answer.
by_categoryNo
by_propertyNo
total_spentNo
generated_atNo
expense_countNo
total_availableNoHow many rows existed before truncation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, non-destructive read, so the bar is lower. The description then adds valuable context beyond the annotations – excluded statuses (void, refunded, draft) and null-vs-zero semantics for `total_spent` – but leaves rate/latency/volume behavior unspoken, so a 4.

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?

Front-loaded with the core purpose, then the default window, exclusions, null/degraded caveats, and sibling routing – each clause is load-bearing. No padding or repetition.

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

Completeness4/5

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

A complete, well-scoped definition for a read-only aggregate tool. Output schema coverage means return values needn't be explained, though it helpfully clarifies `total_spent`/`degraded`, leaving little substantive gap.

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 coverage is 100%, so the schema already documents `to`, `days` and `from`. The description only reinforces the window default, without adding format or interplay detail (e.g., precedence of `from` over `days`) beyond what the schema states, so baseline 3 applies.

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?

States a specific verb+resource: what the account spent, from the Expense Center, broken down by category, property and vendor with latest expenses. The final sentence ("Rent and repairs have their own tools") routes the agent away from scope-adjacent tasks, so it is distinguishable without opening the schema.

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

Usage Guidelines4/5

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

Gives the default window (last 90 days) and names sibling tools that cover rent and repairs, providing a clear routing rule. It stops short of explicitly contrasting with financial_summary or stating when-not to call it, so it falls just under the top score.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources