Skip to main content
Glama

Comparativo do orçamento

budget_comparison
Read-only

Compara orçado (Budget.amount) vs gasto real de UM orçamento específico no seu período (mês, se MONTHLY; ano inteiro, se YEARLY), somando as transações do mesmo type/category no intervalo. Inclui daily: série diária acumulada do mês com projeção linear até o fim do mês (só para orçamentos MONTHLY do mês vigente — demais casos devolvem lista vazia). id é o id do Budget, não de uma categoria.

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": {
      "id": "<id>"
    },
    "name": "budget_comparison"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId do orçamento (Budget)

Output Schema

NameRequiredDescriptionDefault
dailyNo
spentNo
budgetNo
budgetedNo
remainingNo
percentageNo
transactionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / id / description
      Added value: +"Id do orçamento (Budget)"
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds valuable behavioral details beyond annotations: the empty-list behavior for `daily`, the projection only for current-month MONTHLY budgets, and the transaction aggregation logic.

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 focused sentences cover the core comparison, period logic, aggregation rule, the `daily` field behavior, and the `id` disambiguation. No wasted words, and the most important semantic caveat is included up front.

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 a single parameter, a read-only annotation set, and an existing output schema, the description sufficiently explains the tool's behavior and edge cases. An agent has enough information to invoke it correctly without additional context.

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

Parameters4/5

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

Schema coverage is 100% with one parameter already described. The description adds meaningful semantic clarity by explicitly warning that `id` is the Budget id, not a category id, and by explaining how the budget period affects the aggregation.

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's function: comparing budgeted amount versus actual spending for one specific budget over its period. It also explicitly distinguishes the `id` as a Budget id, not a category id, which helps disambiguate this comparison tool from category-level analytics.

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?

The description provides clear context on when to use the tool: for a specific budget and its configured period, with special handling for `daily` only in current-month MONTHLY budgets. It does not explicitly name alternative tools, but the scope is unambiguous enough for an agent to select it correctly.

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.