Skip to main content
Glama
Actual MCP

Actual MCP

Gastos por categoria

spending_by_category
Read-only

Summarizes income and expenses by category for a date range, counting only budget accounts and ignoring transfers; defaults to the current month.

Instructions

Soma receitas e despesas por categoria num período, considerando só contas do orçamento e ignorando transferências entre elas. Padrão: mês atual.

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_by_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoData final YYYY-MM-DD (padrão: hoje)
fromNoData inicial YYYY-MM-DD (padrão: dia 1 do mês atual)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already establish read-only and closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: aggregation is by category, only budget accounts are counted, inter-account transfers are excluded, and the period defaults to the current month — all of which materially affect the numbers returned.

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?

Two short sentences, front-loaded with the aggregation rule and followed by the default period. Nothing is redundant or padded.

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?

For a simple read-only aggregate with two optional parameters and no output schema, the description covers what is computed, what is excluded, and the default range. It could say a bit more about the shape of the result (per-category totals with revenue and expense split), but the essentials are present.

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% with pattern and per-field default descriptions, so both parameters are already documented. The description's 'Padrão: mês atual' largely restates the schema defaults, adding little new syntax or interpretation beyond it. Baseline 3 is appropriate.

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 and resource: summing revenues and expenses by category over a period, with scope qualifiers (only budget accounts, transfers between them ignored). This distinguishes it from a raw transaction lister, though no sibling is named 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 scope constraints (budget accounts only, transfers excluded) imply when the aggregate is appropriate, and the 'Padrão: mês atual' line sets a default period. However, it never states when to prefer get_transactions instead of this aggregate, nor any prerequisite about which accounts qualify as budget accounts.

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