Skip to main content
Glama

Set service exception

figa_set_service_exception
DestructiveIdempotent

Exclude a scheduled service date from its monthly calculation (excluded=true), or remove that explicit exclusion (excluded=false). date is YYYY-MM-DD; expectedRevision identifies the calculation settingsRevision. Restored dates remain subject to schedule, pauses and end date. Rates and recorded payments are unchanged. 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>",
      "exception": "<exception>"
    },
    "name": "figa_set_service_exception"
  }
}

Input Schema

NameRequiredDescriptionDefault
exceptionYesdate: scheduled service date as YYYY-MM-DD; excluded: true excludes it, false removes the exclusion; expectedRevision: current settingsRevision.
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 / exception / description
      Added value: +"date: scheduled service date as YYYY-MM-DD; excluded: true excludes it, false removes the exclusion; expectedRevision: current settingsRevision."
    • 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

A3.9/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered. The description adds genuine context beyond that: rates and recorded payments are unchanged, and it details uncertain outcomes (IDEMPOTENCY_OUTCOME_UNKNOWN, IDEMPOTENT_REQUEST_IN_PROGRESS, INTERNAL_SERVER_ERROR) plus the 24-hour transport cache. It still does not say what a successful response returns or whether permissions beyond workspace selection are required.

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?

Purpose and boolean semantics are front-loaded, and the subsequent sentences on immutability and idempotency carry real decision value. The idempotency block is dense and the closing cache sentence is somewhat boilerplate, but nothing is redundant with the annotations.

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 destructive, idempotent write on a nested exception object with no output schema, the definition covers what changes, what is preserved, and how to handle ambiguous failures. The remaining gap is the success response shape and any permission prerequisites, which are not derivable from the supplied fields.

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 description coverage is 100%, so date, excluded, expectedRevision, expenseId and workspaceId are already documented, including format and replace semantics. The description's only substantive addition is the requestId retry contract (same ID plus same payload on retry, new ID risks duplicating an uncertain write), which is useful but largely restates what the schema says about mismatched IDs.

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?

The first sentence gives a specific verb and resource and disambiguates the boolean: 'Exclude a scheduled service date from its monthly calculation (excluded=true), or remove that explicit exclusion (excluded=false).' It also implicitly separates this narrow exception write from broader schedule edits by stating that restored dates remain subject to schedule, pauses and end date.

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 real precondition ('This write requires explicit user intent') and clarifies scope against schedule/pause/end-date effects, which tells the agent when this tool is the right one rather than a general date update. It never names a concrete alternative sibling or an explicit when-not condition, so routing still requires some inference.

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