Skip to main content
Glama

Preview recurring amount

figa_preview_recurring_amount
Read-onlyIdempotent

Preview changing recurring billing from fixed to variable or back, without saving. settings includes canonical from, current settings expectedRevision and amountMode; fixed requires amount, variable accepts strategy/startAmount. The selected occurrence must match from. Returns current method and fixed amount plus proposed variable forecast; fixed proposals have forecast null and the supplied draft amount. Services are excluded. The preview changes no history, invoices or Paid status.

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_recurring_amount"
  }
}

Input Schema

NameRequiredDescriptionDefault
settingsYesfrom: canonical scheduled timestamp (Unix seconds) of the selected occurrence; expectedRevision: current settings revision; amountMode fixed with amount in minor units, or variable with strategy and startAmount (minor units or null; manual requires an amount).
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: +"from: canonical scheduled timestamp (Unix seconds) of the selected occurrence; expectedRevision: current settings revision; amountMode fixed with amount in minor units, or variable with strategy and startAmount (minor units or null; manual requires an amount)."
    • 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?

With readOnlyHint and idempotentHint already declared, the description still earns credit by confirming the preview 'changes no history, invoices or Paid status' and by disclosing the return contract (current method, fixed amount, proposed forecast, forecast null for fixed proposals). It also flags the services exclusion, a behavioral boundary not present in annotations. It stops short of noting revision-conflict behavior, which is why it is a 4 rather than a 5.

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?

Four front-loaded sentences: purpose first, then settings shape, then return contract, then exclusions and safety. Every sentence carries information and there is no filler. Density makes it slightly harder to scan, but nothing 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?

An output schema exists, so the return-value sentence is arguably redundant, but it does correctly warn that fixed proposals carry a null forecast. Together with the no-side-effects statement and the services exclusion, an agent has enough to invoke it correctly on a 3-parameter mutation-shaped preview. Minor gap: no mention of behavior when expectedRevision is stale.

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 oneOf branches and field meanings are already documented in the schema. The description restates the branch requirements (fixed needs amount, variable accepts strategy/startAmount) and adds the constraint that the occurrence must match 'from', which is modest added value. It does not clarify semantics of strategy enum values or startAmount null handling beyond the schema, so 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?

States a specific verb and resource: preview a recurring billing mode change from fixed to variable or back, without saving. That is unambiguous. It does not name any sibling preview tool (e.g. figa_preview_bill_forecast or figa_preview_variable_bills), so sibling differentiation is left to the agent, which keeps it below a 5.

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?

Supplies real preconditions: the selected occurrence must match 'from', services are excluded, and nothing is persisted. Those constraints imply when the tool is applicable. However, it never says when to choose this preview over the other preview siblings, nor what to do if the mode is already the target mode, so guidance is implied rather than explicit.

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