Skip to main content
Glama

Projeção de fluxo de caixa

cashflow_forecast
Read-only

Projeção mês a mês (até 12 meses) de entradas, saídas e saldo projetado, incluindo receita/despesa recorrente, categorias, centros de custo e meses no vermelho. Quando pending=true (default) e não há simulação, serve a leitura já materializada (cache); caso contrário recalcula ao vivo no motor Python. Suporta simular liquidação de um ativo (liquidationParams) ou amortização extra de uma dívida (simulationParams) e ver o impacto no saldo projetado — não grava nada, é só simulação. Diferença dos outros: é o único que traz saldo/caixa completo por mês; para só gastos por categoria use spending_projection, para só patrimônio líquido use networth_projection, para o mês corrente (sem projeção futura) use current_month_spending, e para série histórica real (passado) use analytics_history.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
monthsNoQuantidade de meses a projetar, 1-12 (default 12)
userIdNoId do cliente a consultar (uso de planejador financeiro); omitido usa o próprio usuário autenticado
topCategoriesNoQuantas categorias de topo trazer por mês em topExpenses, 1-20 (default 5)
includePendingNoSe true (default), considera transações pendentes na projeção; false usa só o histórico realizado e força recálculo ao vivo (não usa cache)
simulationParamsNoJSON stringificado simulando amortização extra de uma dívida: {"debtId": "<id>", "amount": number, "frequency"?: "MONTHLY"|..., "installments"?: number}. Só tem efeito se debtId e amount forem válidos.
liquidationParamsNoJSON stringificado simulando a liquidação de um ativo: {"assetId": "<id do Equity>", "amount": number, "liquidationLevel"?: "LL1"|..., "months"?: number}. Só tem efeito se assetId e amount forem válidos.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
monthsNo
cacheHitNo
chartDataNo
generatedAtNo
balanceTrendNo
categoryKeysNo
costCenterKeysNo
negativeMonthsNo
startingBalanceNo
variableSummaryNo
currentMonthForecastNo
finalProjectedBalanceNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed7 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / includePending
      Added value: +{
      +  "description": "Se true (default), considera transações pendentes na projeção; false usa só o histórico realizado e força recálculo ao vivo (não usa cache)",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / liquidationParams
      Added value: +{
      +  "description": "JSON stringificado simulando a liquidação de um ativo: {\"assetId\": \"<id do Equity>\", \"amount\": number, \"liquidationLevel\"?: \"LL1\"|..., \"months\"?: number}. Só tem efeito se assetId e amount forem válidos.",
      +  "type": "string"
      +}
    • addedInput schema / properties / months
      Added value: +{
      +  "description": "Quantidade de meses a projetar, 1-12 (default 12)",
      +  "type": "number"
      +}
    • addedInput schema / properties / simulationParams
      Added value: +{
      +  "description": "JSON stringificado simulando amortização extra de uma dívida: {\"debtId\": \"<id>\", \"amount\": number, \"frequency\"?: \"MONTHLY\"|..., \"installments\"?: number}. Só tem efeito se debtId e amount forem válidos.",
      +  "type": "string"
      +}
    • addedInput schema / properties / topCategories
      Added value: +{
      +  "description": "Quantas categorias de topo trazer por mês em topExpenses, 1-20 (default 5)",
      +  "type": "number"
      +}
    • addedInput schema / properties / userId
      Added value: +{
      +  "description": "Id do cliente a consultar (uso de planejador financeiro); omitido usa o próprio usuário autenticado",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint=true annotation, the description discloses meaningful dynamic behavior: it serves a cached/materialized read when includePending=true and no simulation is requested, otherwise recalculates live in the Python engine. It also explicitly states the simulation modes write nothing ('não grava nada, é só simulação'), which is consistent with — and adds depth to — the annotations. No contradiction with annotations.

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?

The description is long but every sentence earns its place: core function, cache-vs-live behavior, simulation semantics, and sibling differentiation are each handled in one sentence. It is front-loaded with the primary purpose. Minor blemish: it refers to 'pending=true' where the actual parameter is 'includePending', which could cause a slight mismatch when an agent maps the description to the schema.

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?

Given an output schema exists (so return values need not be explained), annotations cover the read-only safety profile, and the schema covers 100% of parameters, the description is very complete. It covers cache/live modes, both simulation types with non-persistence, and sibling differentiation. Only minor gaps remain, such as the parameter-name shorthand and no explicit mention of the 1-12 month constraint (left to the schema).

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 documents all six parameters in detail (defaults, ranges, JSON shapes, validity conditions). The description adds the framing that simulation parameters impact the projected balance without persisting, and references the months cap, but most parameter semantics are already carried by the schema, so the baseline of 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?

The description states a specific verb and resource: month-by-month projection of inflows, outflows, and projected balance ('Projeção mês a mês... de entradas, saídas e saldo projetado'). It also explicitly distinguishes itself from siblings, claiming to be the only tool that returns complete monthly cash/balance and naming spending_projection, networth_projection, current_month_spending, and analytics_history as alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The final sentence gives explicit routing rules: use spending_projection for expenses-only by category, networth_projection for net worth only, current_month_spending for the current month without future projection, and analytics_history for real historical series. This is direct when-to-use-vs-alternatives guidance tied to concrete sibling names.

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.

TDQS

A3.7/5.0
Disambiguation3/5

The tools are individually well-described and many cross-reference their closest neighbors, but the set contains several easily confused clusters: create_transaction/confirm_new_transaction, update_equity/add_equity_valuation, the invoice tools (current_invoice, next_invoice, list_pending_invoices, get_invoice), and the many analytics/projection tools. The descriptions help a careful reader, but with 81 tools an agent is likely to misselect among these overlapping surfaces.

Naming Consistency3/5

CRUD operations consistently use create_/list_/update_/delete_ plus a resource noun, and all names are snake_case. However, there is a large second group of noun-phrase analytics tools (cashflow_forecast, spending_projection, categories_insights, transport_routine) plus one-off verbs such as can_afford, pay_invoice, and validate_current_invoices, so the naming convention is mixed even though it remains readable.

Tool Count1/5

81 tools is far beyond the practical MCP tool surface and exceeds the rubric's 50+ extreme-mismatch threshold. Even if each tool maps to a real finance endpoint, the volume overwhelms an agent's context window and makes selection much harder.

Completeness4/5

The server covers the finance lifecycle extensively: accounts, cards, invoices, transactions, recurring rules, budgets, goals, debts, equities, categories, tags, cost centers, profile, projections, and insights all have working read/write paths. Minor gaps remain, such as no update/delete for tags and no direct update/delete for system-generated invoices, but agents can usually work around these.