Skip to main content
Glama

Preview expense range

figa_preview_expense_range
Read-onlyIdempotent

Preview changing a recurring series' start or end without saving. Requires a workspace writer role and the current expense seriesContext. preview contains the proposed range; optional forecastSettings and ALL_INSTANCES editScope describe the combined change. Returns rangePreview with impact, preserved records, eligible plan exclusions and seriesContext. This is a read-only projection; it neither issues a lifecycle activity previewToken nor authorizes deletion of history.

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>",
      "preview": "<preview>"
    },
    "name": "figa_preview_expense_range"
  }
}

Input Schema

NameRequiredDescriptionDefault
previewYesrange: the proposed start and end; seriesContext: as returned by the expense read; optional forecastSettings and editScope ALL_INSTANCES for a combined change.
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 / preview / description
      Added value: +"range: the proposed start and end; seriesContext: as returned by the expense read; optional forecastSettings and editScope ALL_INSTANCES for a combined change."
    • addedInput schema / properties / workspaceId / description
      Added value: +"ID of a workspace selected for this connection. Other workspaces are rejected."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and idempotent, and the description adds value beyond them: writer-role auth requirement, the fact that it is a pure projection that issues no previewToken, and an explicit warning that it does not authorize deletion of history. That is exactly the safety context an agent needs before proposing a range change.

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 sentences, front-loaded with the operation and its no-save nature, followed by prerequisites and then the return contract. Dense but every clause carries information; only the final sentence is slightly ornate in its double negative framing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter preview tool with nested objects and an output schema, the description covers scope, auth, safety boundaries, and what the returned rangePreview contains. Nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: preview carries the proposed range, forecastSettings and the ALL_INSTANCES editScope form a combined change, and seriesContext comes from the expense read. The nested shape of rangePreview's inputs is thus interpretable without unpacking the oneOf branches.

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+resource+scope: previewing a change to a recurring series' start or end without saving. That is clearly distinguishable from the get/update/delete expense siblings and from the other preview tools. It stops short of naming the nearest alternatives (e.g. preview_series_end, preview_series_cancel_pause), so its differentiation relies on inference from the range framing.

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 real preconditions: workspace writer role and the current expense seriesContext, plus the note that optional forecastSettings and ALL_INSTANCES editScope describe a combined change. It also bounds the tool by saying it issues no lifecycle previewToken and does not authorize deleting history. It does not explicitly say when to prefer a sibling preview tool instead.

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