Skip to main content
Glama

Preview bill forecast

figa_preview_bill_forecast
Read-onlyIdempotent

Preview a variable bill forecast before and after proposed settings, without saving, confirming or paying it. settings contains expectedRevision matching the current bill settingsRevision and proposed strategy/startAmount. Returns currency, forecastPeriod, confirmed and before/after valuations with applied basis and reliability. Confirmed amounts remain unchanged.

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": {
      "workspaceId": "<workspaceId>",
      "expenseId": "<expenseId>",
      "settings": "<settings>"
    },
    "name": "figa_preview_bill_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
settingsYesProposed forecast: optional strategy (last_confirmed, recent_average, seasonal or manual), startAmount in minor units or null, and expectedRevision equal to the current bill settingsRevision.
expenseIdYesExpense ID as returned by expense reads: a stored expense UUID or the ID of a generated occurrence of a recurring series.
workspaceIdYesID of a workspace selected for this connection. Other workspaces are rejected.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
messageYes
successYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / expenseId / description
      Added value: +"Expense ID as returned by expense reads: a stored expense UUID or the ID of a generated occurrence of a recurring series."
    • addedInput schema / properties / settings / description
      Added value: +"Proposed forecast: optional strategy (last_confirmed, recent_average, seasonal or manual), startAmount in minor units or null, and expectedRevision equal to the current bill settingsRevision."
    • addedInput schema / properties / workspaceId / description
      Added value: +"ID of a workspace selected for this connection. Other workspaces are rejected."
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description still adds real value: the expectedRevision/settingsRevision concurrency check, the fact that confirmed amounts are untouched, and that the response carries applied basis and reliability. It stops short of describing failure behavior when the revision mismatches.

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?

Three dense sentences with the non-mutating constraint front-loaded, followed by input contract and output shape. Nearly every clause earns its place, though the trailing "Confirmed amounts remain unchanged" is terse enough to need a second read.

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?

The tool has a nested input object and an output schema, and the description covers the input contract, the no-side-effect guarantee, and the shape of the returned forecast. Since an output schema exists, the return-value summary is bonus rather than a requirement, leaving little an agent still needs.

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 both the nested settings object and its fields are already documented. The description restates that settings carries expectedRevision matching the current settingsRevision plus proposed strategy/startAmount, which reinforces but does not meaningfully extend the schema.

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?

The description opens with a specific verb+resource ("Preview a variable bill forecast") and scopes it precisely as a non-committing before/after comparison. The phrases "without saving, confirming or paying" implicitly separate it from the mutating siblings figa_update_bill_forecast and figa_confirm_bill, though no sibling is named outright.

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?

Usage is only implied: an agent can infer this is the safe dry-run to perform before applying settings. There is no explicit statement of when to choose this over figa_update_bill_forecast or figa_get_bill, and no stated prerequisites beyond the expectedRevision matching rule.

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.

Resources