Skip to main content
Glama

Update service dates

figa_update_service_dates
DestructiveIdempotent

Atomically save a reviewed service-month dates draft; all date changes commit or none do. dates includes its own UUID requestId, which may equal the outer requestId. BILL_WRITE_CONFLICT means settings or activity changed after the draft was read; fresh revisions on an old draft would bypass its stale-write protection. Identical retries return the original stored result without repeating the write; that result need not reflect current state. A no-op reports changed: false. 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>",
      "expenseId": "<expenseId>",
      "dates": "<dates>"
    },
    "name": "figa_update_service_dates"
  }
}

Input Schema

NameRequiredDescriptionDefault
datesYesThe reviewed draft: month (YYYY-MM); changes: up to 31 unique {date: YYYY-MM-DD in that month, excluded}; expectedSettingsRevision and expectedActivityRevision from the current calculation; requestId: UUID of this draft commit.
expenseIdYesTemplate ID of the service billed per session. 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.
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 / dates / description
      Added value: +"The reviewed draft: month (YYYY-MM); changes: up to 31 unique {date: YYYY-MM-DD in that month, excluded}; expectedSettingsRevision and expectedActivityRevision from the current calculation; requestId: UUID of this draft commit."
    • 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 / 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 / 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 destructiveHint=true and idempotentHint=true, and the description goes well past them: identical retries replay the stored result without repeating the write, the result need not reflect current state, BILL_WRITE_CONFLICT signals a stale revision, and the transport cache lasts 24 hours. It also spells out which error codes (IDEMPOTENCY_OUTCOME_UNKNOWN, IDEMPOTENT_REQUEST_IN_PROGRESS, INTERNAL_SERVER_ERROR) mean uncertain rather than failed, which is exactly the disclosure a destructive idempotent write needs.

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 commitment is correctly front-loaded, but the body is a dense block of idempotency boilerplate with overlapping sentences ('A UUID requestId identifies one intended operation; identical retries retain the same ID and payload' sits awkwardly after the retry-replay sentence). Content is valuable but not tightly organized, and there are no line breaks or grouping to separate commit semantics from retry semantics from error taxonomy.

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, idempotent, nested-payload write with no output schema, the description covers atomicity, retry and idempotency behavior, uncertain-outcome handling, conflict signaling, cache lifetime, and partial return information ('changed: false'). Nothing an agent needs in order to call this safely 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; the description earns an extra point by clarifying a genuinely ambiguous point the schema does not: the nested dates object carries its own requestId, which may or may not equal the outer requestId. It also implies the revision fields gate stale-write protection, though it does not restate their derivation.

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 description has a specific verb and resource: 'Atomically save a reviewed service-month dates draft,' plus the all-or-nothing commit rule. An agent can tell this is the commit counterpart to a preview/draft read. It does not name a sibling (e.g. figa_preview_service_dates) explicitly, so the differentiation is implied ('reviewed draft', 'draft was read') rather than stated.

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?

It states a clear precondition ('This write requires explicit user intent') and gives retry guidance, plus the rule that corrected inputs after a definite validation or business refusal are a new operation. What it lacks is any explicit pointer to the tool that produces the draft or to how this differs from figa_update_service_calculation; alternatives are left implicit.

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