Skip to main content
Glama

Moedux — Finanças Brasileiras

calcular_reserva_emergencia

Read-onlyIdempotent

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. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds value beyond that by disclosing the underlying rule (CLT vs autônomo thresholds) and the returned contents (meta, o que falta, prazo, link pré-preenchido). It does not address edge behavior such as aporte_mensal = 0, which is allowed by the schema and would make the deadline undefined.

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-loads the calculation rule in the first clause, then usage triggers, then inputs, then outputs – a sensible order. The 'Informe os gastos mensais...' sentence largely duplicates what the required/optional schema fields already convey, which is the only wasted material.

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 what comes back (meta, gap, prazo, calculator link), and it explains the perfil logic, so an agent can call it correctly. The remaining gap is edge-case handling when aporte_mensal is zero, which the definition never addresses.

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 100%, so the schema already defines every parameter including the perfil enum and defaults. The description restates the same meanings (monthly expenses, monthly contribution, optional amount already saved) without adding format or interpretation detail beyond the schema, so the 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 concrete resource (reserva de emergência) and the exact rule it applies: 6 months of expenses for CLT, 12 months for autônomo/PJ, plus time-to-goal from the monthly contribution. That rule set makes it unmistakable against generic savings calculators in the sibling list such as 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?

Gives explicit user-question triggers ('quanto guardar de reserva', 'quantos meses de reserva precisa', 'quanto falta para completar a reserva') and specifies which inputs to collect. It stops short of naming when NOT to use it or pointing to an overlapping sibling, so it is clear context rather than full when/when-not routing.

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.