Skip to main content
Glama

Preview service dates

figa_preview_service_dates
Read-onlyIdempotent

Preview excluding or restoring dates of one service month without saving. dates contains month (YYYY-MM), up to 31 unique changes [{date: YYYY-MM-DD, excluded}], and expectedSettingsRevision/expectedActivityRevision from the current calculation. Returns context and current/proposed plans with counted dates, count and plannedAmount. Does not change prices, weekdays, confirmed 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>",
      "dates": "<dates>"
    },
    "name": "figa_preview_service_dates"
  }
}

Input Schema

NameRequiredDescriptionDefault
datesYesmonth (YYYY-MM); changes: up to 31 unique {date: YYYY-MM-DD in that month, excluded}; expectedSettingsRevision and expectedActivityRevision from the current calculation.
expenseIdYesTemplate ID of the service billed per session. Occurrence IDs and virtual aliases are rejected.
workspaceIdYesID of a workspace selected for this connection. Other workspaces are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / dates / description
      Added value: +"month (YYYY-MM); changes: up to 31 unique {date: YYYY-MM-DD in that month, excluded}; expectedSettingsRevision and expectedActivityRevision from the current calculation."
    • 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 / workspaceId / description
      Added value: +"ID of a workspace selected for this connection. Other workspaces are rejected."
  2. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, so the description has a lower bar. It does add useful scope: it lists what it returns (context plus current/proposed plans with counted dates, count, plannedAmount) and explicitly states what is left untouched (prices, weekdays, confirmed invoices, Paid status). It does not disclose failure behavior, e.g. what happens on a stale expectedSettingsRevision.

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?

Well front-loaded: purpose first, then payload shape, then return values, then side-effect scope. The middle sentence is dense and duplicates schema detail, but every sentence carries information and nothing is padding.

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?

No output schema exists, so the description correctly covers the return shape (context, current/proposed plans, counted dates, count, plannedAmount), which is the main risk for this nested-parameter preview tool. Remaining gaps (revision-mismatch errors, how proposed vs current differ on conflict) are modest for a read-only preview.

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 coverage is 100% and already documents month format, the 31-item cap, the {date, excluded} item shape and both revision fields. The description restates these largely verbatim, adding only the 'unique' constraint emphasis and tying revisions to the current calculation. Baseline 3 is appropriate where the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (Preview) and resource (service dates for one service month) and adds 'without saving', which distinguishes it from the sibling update tool. An agent can tell preview-dates apart from update_service_dates or the other preview_* tools without opening a schema.

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?

The 'without saving' framing plus the note that revision tokens come 'from the current calculation' implies the correct call sequence (fetch calculation, then preview, then commit). It stops short of naming figa_update_service_dates as the committing alternative or stating when a preview is unnecessary, so no explicit when-not guidance.

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