Skip to main content
Glama

spending_report

Aggregate invoice spending by vendor, category, or month to compute counts, subtotals, VAT, and total amounts for reporting.

Instructions

Aggregate spend (count, subtotal, VAT, total) grouped by 'vendor', 'category' or 'month'.

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": "spending_report"
  }
}

Input Schema

NameRequiredDescriptionDefault
date_toNo
group_byNovendor
date_fromNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the computed metrics, which is useful, but says nothing about what happens when dates are omitted (all-time?), whether VAT/total are derived from line items or headers, currency handling, or permission requirements.

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 front-loaded sentence with no filler; the aggregation list and grouping options are packed efficiently. Slightly dense but nothing is wasted.

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?

An output schema exists, so the return shape (count, subtotal, VAT, total) needn't be explained further. However, for a three-parameter reporting tool with zero schema documentation, the missing date-parameter semantics and default-window behavior leave a real gap an agent could stumble on.

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 0%, and the description compensates for only part of it by enumerating valid group_by values ('vendor', 'category', 'month') that the schema leaves as an unconstrained string. The two date parameters remain completely undefined — no format, no filtering semantics, no default-time-window behavior.

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?

States a specific verb ('Aggregate') and resource ('spend'), plus the metrics produced and the grouping options. It is clearly distinct from the invoice-retrieval siblings, though it never names or contrasts them explicitly.

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 listed group_by values imply the intended reporting use case, but there is no explicit when-to-use guidance, no mention of when to prefer raw SQL or list-based siblings, and no statement about prerequisites such as a required date range.

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