Skip to main content
Glama

End series

figa_end_series
DestructiveIdempotent

Permanently end a recurring expense series after the inclusive lastDate, expressed as Unix seconds in the series timezone. An ended series cannot be resumed. Existing documents are preserved unless eligible stored plans are explicitly excluded. Requires a reviewed preview with its exact previewToken, revision and parameters. excludePlanIds contains only explicitly selected unprotected stored plans eligible in that preview; [] preserves all documents. 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>",
      "expenseId": "<expenseId>",
      "revision": "<revision>",
      "parameters": "<parameters>",
      "requestId": "<requestId>",
      "previewToken": "<previewToken>",
      "excludePlanIds": "<excludePlanIds>"
    },
    "name": "figa_end_series"
  }
}

Input Schema

NameRequiredDescriptionDefault
revisionYesCurrent lifecycle revision of the series, as returned by the series read.
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.
parametersYeslastDate: last included date of the series, in Unix seconds.
workspaceIdYesID of a workspace selected for this connection. Other workspaces are rejected.
previewTokenYespreviewToken returned by the reviewed preview of this exact change.
excludePlanIdsYesStored plan IDs from that preview to remove (at most 500); [] keeps every stored document.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed7 schema fields changed
    • addedInput schema / properties / excludePlanIds / description
      Added value: +"Stored plan IDs from that preview to remove (at most 500); [] keeps every stored document."
    • 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 / parameters / description
      Added value: +"lastDate: last included date of the series, in Unix seconds."
    • addedInput schema / properties / previewToken / description
      Added value: +"previewToken returned by the reviewed preview of this exact change."
    • 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 / revision / description
      Added value: +"Current lifecycle revision of the series, as returned by the series read."
    • addedInput schema / properties / workspaceId / description
      Added value: +"ID of a workspace selected for this connection. Other workspaces are rejected."
  2. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare destructive and idempotent, but the description adds material context beyond them: permanence and non-resumability, that documents are preserved unless plans are explicitly excluded, and detailed idempotency semantics covering which error codes leave the outcome uncertain rather than failed, how retries and new requestIds behave, and the 24-hour response 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded in the first sentence, but the remainder is a dense single block of run-on sentences. The idempotency discussion in particular repeats itself ('A UUID requestId identifies one intended operation' followed by several sentences expanding the same point) and could be compressed without losing meaning.

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 destructive seven-parameter mutation with no output schema, the description covers everything an agent needs: preview gating and token requirements, UTC-seconds date semantics, document preservation rules, and retry/uncertainty behavior. Nothing essential to calling this correctly is left unstated.

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, and the description earns above that by clarifying lastDate is inclusive and interpreted in the series timezone, and that excludePlanIds accepts only explicitly selected, unprotected plans eligible in that preview with [] preserving all documents. revision and requestId get no additional clarification beyond the already descriptive schema.

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 states a specific verb and resource ('Permanently end a recurring expense series') plus the scope ('after the inclusive lastDate') and notes that an ended series cannot be resumed, which implicitly separates it from the resumable pause/cancel siblings. It never names a sibling tool, so an agent must infer which preview call pairs with it.

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 description gives strong preconditions: a reviewed preview with its exact previewToken, revision and parameters, and 'explicit user intent' being required for this write. It also defines when excludePlanIds should be populated versus left as []. It lacks explicit routing language naming preview_series_end or when to prefer pause/cancel 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