Skip to main content
Glama

Update bill forecast

figa_update_bill_forecast
DestructiveIdempotent

Set last_confirmed, recent_average, seasonal or manual forecast settings for an ordinary variable series. Forecast valuations expose their source, fallback and reliability; estimates do not confirm invoices or mark them Paid. This write requires explicit user intent. A UUID requestId identifies one intended operation; identical retries retain the same ID and payload. A missing response or IDEMPOTENCY_OUTCOME_UNKNOWN, IDEMPOTENT_REQUEST_IN_PROGRESS or INTERNAL_SERVER_ERROR leaves the outcome uncertain, not a confirmed failure. A new ID can duplicate an uncertain write. Corrected inputs after a definite validation or business refusal constitute a new operation. The transport response cache lasts 24 hours; longer replay guarantees are stated above.

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>",
      "requestId": "<requestId>",
      "expenseId": "<expenseId>",
      "settings": "<settings>"
    },
    "name": "figa_update_bill_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
settingsYesOptional strategy (last_confirmed, recent_average, seasonal or manual; omitted keeps the current method), startAmount in minor units (required for manual, an optional fallback otherwise), and expectedRevision equal to the current bill settingsRevision.
expenseIdYesTemplate ID of the recurring series: a template version ID or its canonical root ID. Occurrence IDs and virtual aliases are rejected.
requestIdYesCaller-generated UUID identifying this one intended write. A retry of the same write reuses the ID and payload; the same ID with different input returns IDEMPOTENCY_KEY_MISMATCH.
workspaceIdYesID of a workspace selected for this connection. Other workspaces are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / expenseId / description
      Added value: +"Template ID of the recurring series: a template version ID or its canonical root ID. Occurrence IDs and virtual aliases are rejected."
    • addedInput schema / properties / requestId / description
      Added value: +"Caller-generated UUID identifying this one intended write. A retry of the same write reuses the ID and payload; the same ID with different input returns IDEMPOTENCY_KEY_MISMATCH."
    • addedInput schema / properties / settings / description
      Added value: +"Optional strategy (last_confirmed, recent_average, seasonal or manual; omitted keeps the current method), startAmount in minor units (required for manual, an optional fallback otherwise), 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.9/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, idempotentHint=true) it clarifies the blast radius -- estimates do not confirm invoices or mark them Paid -- and spells out the full idempotency contract: ID reuse, mismatch behavior, the specific error codes (IDEMPOTENCY_OUTCOME_UNKNOWN, IDEMPOTENT_REQUEST_IN_PROGRESS, INTERNAL_SERVER_ERROR) that mean uncertain rather than failed, and the 24-hour transport cache window.

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?

Purpose is front-loaded in the first sentence and the remaining sentences are tightly packed with distinct, non-redundant contractual facts. The idempotency block reads as a dense run-on and could be bulleted, but each clause carries information an agent needs.

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?

For a destructive, nested-schema write with no output schema, the definition covers intent, side-effect boundaries, idempotency, and failure semantics thoroughly. The one real gap is recovery guidance: it says a missing response leaves the outcome uncertain but never points to figa_get_operation for resolving an in-flight or unknown request.

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 every parameter including the nested settings object is already documented with its constraints. The description's requestId paragraph largely restates what the schema says about reuse and payload matching, adding no format or syntax detail beyond the structured fields; baseline 3 applies.

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 opening sentence names a specific verb (Set) and resource (forecast settings for an ordinary variable series) and enumerates the four strategies, so an agent knows exactly what is being changed. It stops short of naming a sibling such as figa_preview_bill_forecast or figa_update_manual_series as the contrasting case.

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?

The description establishes a real precondition ('This write requires explicit user intent') and clarifies when a new requestId constitutes a new operation versus a retry. It never states when to choose this tool over figa_preview_bill_forecast or figa_update_manual_series, so the routing decision is only implied.

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