Skip to main content
Glama

Moedux — Brazilian Personal Finance & Salary Calculator

calcular_reserva_emergencia

Quanto preciso ter de reserva de emergência: a meta é 6 meses dos gastos mensais para quem tem carteira assinada e 12 meses para autônomo ou PJ, e o aporte mensal diz em quanto tempo a reserva fica completa. Use quando o usuário perguntar quanto guardar de reserva, quantos meses de reserva precisa ou quanto falta para completar a reserva. Informe os gastos mensais e quanto a pessoa consegue guardar por mês; opcionalmente o que ela já guardou. Devolve a meta, o que falta, o prazo no ritmo informado e o link da calculadora com os números preenchidos.

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": {
      "gasto_mensal": "<gasto_mensal>",
      "aporte_mensal": "<aporte_mensal>"
    },
    "name": "calcular_reserva_emergencia"
  }
}

Input Schema

NameRequiredDescriptionDefault
perfilNoEstabilidade da renda: clt (carteira assinada, 6 meses) ou autonomo (renda variável, 12 meses). Padrão: clt
ja_guardadoNoQuanto a pessoa já guardou para a reserva, em reais. Padrão: 0
gasto_mensalYesGastos mensais em reais (contas fixas, gasto diário médio e parcelas)
aporte_mensalYesQuanto a pessoa consegue guardar por mês, em reais

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

No annotations exist, so the description carries the full burden; it discloses the underlying rule (6 vs 12 months by income stability) and enumerates what the response contains (meta, o que falta, prazo, link). It does not mention the degenerate case of aporte_mensal = 0, which would make the timeline undefined, but otherwise behavior is well disclosed for a pure calculator.

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?

Front-loaded with the core formula, then use cases, then inputs, then return values — a sensible order. It is a dense single block with a run-on middle clause, but no sentence is wasted.

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?

With no output schema, the description usefully enumerates the returned values and pre-filled calculator link, and covers all inputs. The one gap is edge-case behavior when aporte_mensal is zero, leaving an agent unsure what the tool returns in that case.

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 all four parameters including the clt/autonomo enum. The description restates the required inputs and marks ja_guardado as optional, and repeats the 6/12 rule that the enum description already states, adding little beyond the structured data.

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 and resource ('reserva de emergência') and spells out the actual computation rule: 6 months of expenses for clt, 12 for autonomo/PJ. An agent can immediately tell this apart from sibling calculators like calcular_quanto_guardar_por_mes.

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?

Explicit trigger conditions are given ('quanto guardar de reserva', 'quantos meses de reserva precisa', 'quanto falta para completar a reserva'), which covers the realistic phrasings. No when-not guidance or named alternative is offered, but the when-to-use context is clear.

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.