Skip to main content
Glama

Delete category

figa_delete_category
DestructiveIdempotent

Delete a local category in this workspace. Children, active expense templates, non-deleted expenses or series defaults block deletion while they reference the category. Deletion permanently cleans up soft-deleted expense instances and inactive templates still referencing this category, including their dependent records. Shared organization categories are read-only. 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>",
      "categoryId": "<categoryId>"
    },
    "name": "figa_delete_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.
categoryIdYesID of a local category in this workspace.
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 / categoryId / description
      Added value: +"ID of a local category in this workspace."
    • 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.6/5.0
Behavior5/5

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

Beyond the destructive and idempotent annotations, it discloses concrete cleanup behavior for soft-deleted expenses and inactive templates, including dependent records. It also explains uncertain outcomes, retry semantics, and the 24-hour transport cache, which materially changes how an agent should interpret failures.

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?

The purpose and blocking conditions are front-loaded, and the length is largely justified for a destructive idempotent operation. It could be tightened slightly, especially the final sentence about transport response caching.

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 write with no output schema, the definition covers the key gaps: deletion blockers, permanent cleanup scope, read-only shared categories, user-intent requirement, idempotency behavior, and uncertain-outcome handling. An agent has enough context to call it 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 the schema already documents the three parameters. The description still adds useful meaning, especially for requestId: it identifies one intended operation, retries reuse it, and a new ID can duplicate an uncertain write.

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 description states a specific verb and resource ("Delete a local category") and scopes it to the current workspace. It also distinguishes shared organization categories as read-only, so an agent can tell this tool apart from category creation/update or a general delete.

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 clearly explains when deletion is blocked: children, active expense templates, non-deleted expenses, and series defaults. It also notes that shared organization categories are read-only and that explicit user intent is required, though it does not name sibling alternatives such as delete_tag or delete_expense.

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