Skip to main content
Glama

Remove Category

remove_category
DestructiveIdempotent

Archive a financial category to hide it from active views or permanently delete it, with safeguards that prevent deleting categories linked to active transactions.

Instructions

Remove a financial category by archiving (hides from active views, recoverable) or permanently deleting. On first call, returns a conflict with ARCHIVE / DELETE / CANCEL. Categories with active (non-deleted) transactions cannot be deleted.

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": {
      "category_id": "<category_id>"
    },
    "name": "remove_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoDeprecated: use `resolution`. 'archive' / 'delete' / 'cancel'.
resolutionNoResolution after the removal conflict: 'confirm' deletes (recoverable for 30 days), 'archive' hides it (recoverable), 'cancel' aborts.
category_idYesCategory UUID to remove.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, so the description's added value is the recoverability model and the conflict/confirmation protocol, which it does provide. One flaw: it calls deletion 'permanent' while the schema's own resolution field says confirm deletes are 'recoverable for 30 days' — an internal inconsistency that could mislead an agent about irreversibility.

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?

Three short sentences, front-loaded with the archive-vs-delete distinction, followed by the interaction protocol and the blocking constraint. No filler, though the 'permanently deleting' phrasing wastes credibility given the 30-day recovery window stated elsewhere.

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?

With no output schema, the description correctly compensates by describing the conflict return payload and its resolution options. Combined with the deletion precondition, an agent has enough to drive both calls, though the recoverability contradiction and the unmentioned deprecated `mode` leave small gaps.

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 coverage is 100% and both enums are documented in-schema, so the schema already carries the parameter burden. The description reinforces the conflict options but does not explain the required first-call-without-resolution vs second-call-with-resolution sequence, nor does it mention that `mode` is deprecated — details that would materially help parameter choice.

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 (remove) and resource (financial category) and immediately disambiguates the two removal semantics: archiving (hides, recoverable) vs permanent deletion. An agent can distinguish this from siblings like remove_transaction or remove_account without opening 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?

Explains the two-phase interaction ('on first call, returns a conflict with ARCHIVE / DELETE / CANCEL') and a hard precondition ('categories with active (non-deleted) transactions cannot be deleted'). It stops short of naming when to prefer archiving over deleting, leaving that judgement to the caller.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools