Skip to main content
Glama

Move manual series expense

figa_move_manual_series_expense
DestructiveIdempotent

Move an expense from its expense group (seriesId) to another active group (targetSeriesId), or detach it with targetSeriesId null. Preserves the expense ID, amount, dates, currency, FX, Paid status, category, recipient, tags, description and attachments. Target defaults are not applied; workspace totals do not change, while group statistics follow membership. Detachment deletes neither the expense nor the group. expectedEditContext identifies the expense version; changes or intervening moves return EXPENSE_WRITE_CONFLICT without saving. MANUAL_SERIES_EXPENSE_NOT_FOUND means the source membership does not match. MANUAL_SERIES_ARCHIVED excludes archived targets but permits departure from archived sources. An identical source and target is a no-op. Returns current source and target; target is null after detachment. 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>",
      "requestId": "<requestId>",
      "seriesId": "<seriesId>",
      "expenseId": "<expenseId>",
      "targetSeriesId": "<targetSeriesId>",
      "expectedEditContext": "<expectedEditContext>"
    },
    "name": "figa_move_manual_series_expense"
  }
}

Input Schema

NameRequiredDescriptionDefault
seriesIdYesID of the group the expense belongs to now.
expenseIdYesID of the member expense.
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.
workspaceIdYesID of a workspace selected for this connection. Other workspaces are rejected.
targetSeriesIdYesID of the active group to move to, or null to detach.
expectedEditContextYeseditContext from the read of that expense, unchanged.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / expectedEditContext / description
      Added value: +"editContext from the read of that expense, unchanged."
    • addedInput schema / properties / expenseId / description
      Added value: +"ID of the member expense."
    • 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 / seriesId / description
      Added value: +"ID of the group the expense belongs to now."
    • addedInput schema / properties / targetSeriesId / description
      Added value: +"ID of the active group to move to, or null to detach."
    • addedInput schema / properties / workspaceId / description
      Added value: +"ID of a workspace selected for this connection. Other workspaces are rejected."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations by enumerating exactly what is preserved (ID, amount, dates, currency, FX, Paid status, category, recipient, tags, description, attachments) and what side effects do and do not occur (target defaults not applied, workspace totals unchanged, group statistics follow membership, detachment deletes neither expense nor group). It discloses the concurrency guard contract (expectedEditContext, EXPENSE_WRITE_CONFLICT without saving), the business error codes, and detailed idempotency/uncertain-outcome semantics including the 24-hour transport cache. The only mild tension is with destructiveHint=true, which the "deletes neither" wording softens, but that reads as a conservative annotation rather than a contradiction.

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 core action in the first clause, and each following sentence carries operational value (preservation set, side effects, errors, idempotency). It is dense and somewhat long, and the retry/id payload sentence partially restates the requestId schema description, but there is no padding or marketing language.

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?

With no output schema, the description compensates by stating the return shape (current source and target, target null after detachment). It also covers conflict, not-found, and archived failure modes plus uncertain-outcome idempotency guidance, leaving nothing an agent needs in order to call this write safely.

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 baseline would be 3; the description earns above it by explaining that expectedEditContext is a version guard whose staleness or intervening moves yield EXPENSE_WRITE_CONFLICT, that targetSeriesId null means detach, and that a no-op results from identical source/target. It also clarifies requestId retry vs. new-operation semantics beyond the schema's wording.

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 and resource (move an expense between expense groups) plus the alternative behavior (detach with targetSeriesId null), and names the identifiers used (seriesId/targetSeriesId). An agent can distinguish this from siblings such as figa_add_expense_to_manual_series or figa_create_manual_series_from_expense without inspecting the 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?

Gives clear preconditions: target must be an active group, archived targets are excluded, departure from archived sources is permitted, and identical source/target is a no-op. It also flags that explicit user intent is required. It stops short of naming a sibling to use instead for adjacent operations (e.g., adding an already-existing expense to a series), so it is strong context but not full alternative 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