Skip to main content
Glama

Preview service calculation

figa_preview_service_calculation
Read-onlyIdempotent

Preview service price/weekday settings and calculated amounts without saving. fromMonth must be later than both the current month in the service timezone and the service start month. expectedRevision identifies the current settings version. comparison: true returns before/after calculations for the effective and following month; otherwise only the proposed effective-month calculation is returned.

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

Input Schema

NameRequiredDescriptionDefault
settingsYesunitPrice: price per session in minor units; weekdays: unique days counted, 0 (Sunday) to 6 (Saturday); fromMonth: first month (YYYY-MM) using these settings; expectedRevision: current settingsRevision.
expenseIdYesTemplate ID of the service billed per session. Occurrence IDs and virtual aliases are rejected.
comparisonNotrue returns before/after calculations for the effective and following month.
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 / comparison / description
      Added value: +"true returns before/after calculations for the effective and following month."
    • addedInput schema / properties / expenseId / description
      Added value: +"Template ID of the service billed per session. Occurrence IDs and virtual aliases are rejected."
    • addedInput schema / properties / settings / description
      Added value: +"unitPrice: price per session in minor units; weekdays: unique days counted, 0 (Sunday) to 6 (Saturday); fromMonth: first month (YYYY-MM) using these settings; expectedRevision: current 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.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and non-destructive, so the safety profile is covered; the description adds real behavioral context on top — the fromMonth validity constraint against the service timezone and start month, and the optimistic-concurrency role of expectedRevision. It also discloses conditional return shape via the comparison flag, which matters since no output schema exists. It stops short of describing the failure mode on a revision mismatch.

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?

Front-loaded with the purpose and the 'without saving' qualifier, followed by constraints and the return-shape switch — a sensible information order with no filler. The middle sentence about fromMonth is densely packed and reads slightly awkwardly, but every sentence carries information.

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 preview tool with a nested settings object and no output schema, the description covers the constraints, the concurrency token, and what is returned under each comparison mode — enough to call it correctly. It omits error behavior for a stale expectedRevision or an out-of-range fromMonth, which would be the natural remaining gap.

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 genuinely adds meaning beyond the schema: the ordering/validity rule for fromMonth and the concurrency semantics of expectedRevision are not in the schema (which only says 'current settingsRevision'). The comparison flag's two return modes are also explained rather than merely restated.

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 service price/weekday settings and calculated amounts — and adds the crucial scope qualifier 'without saving', which implicitly separates it from the update sibling. It does not explicitly name a sibling alternative, but the read-only-preview intent is unambiguous.

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 implied rather than stated: the description makes clear this is a dry run before persisting, and it supplies a hard gating rule for fromMonth. It never says explicitly when to choose this over figa_update_service_calculation or figa_get_service_calculation, leaving the agent to infer the routing.

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