Skip to main content
Glama

wariwari

Delete a category

delete_category
Destructive

Use this to delete a category no expense uses. expectedRevision is the category's lockVersion from get_group.

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": {
      "groupToken": "<groupToken>",
      "categoryToken": "<categoryToken>",
      "expectedRevision": "<expectedRevision>"
    },
    "name": "delete_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
groupTokenYesThe group's token, from `listGroups` or `listSearchResults`.
categoryTokenYesThe category's token, from `showGroup`.
expectedRevisionYesThe `lockVersion` the client last saw on the record it is changing. A mismatch is `409 CONFLICT` with the record as the server now has it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / categoryToken / description
      Added value: +"The category's token, from `showGroup`."
    • addedInput schema / properties / expectedRevision / description
      Added value: +"The `lockVersion` the client last saw on the record it is changing. A mismatch is `409 CONFLICT` with the record as the server now has it."
    • addedInput schema / properties / groupToken / description
      Added value: +"The group's token, from `listGroups` or `listSearchResults`."
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the safety profile is covered elsewhere. The description adds a genuinely useful behavioral constraint beyond that — the category must be unreferenced by expenses — plus the optimistic-concurrency handshake via expectedRevision, which tells the agent the delete can be rejected on a stale revision.

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?

Two short sentences with the precondition front-loaded. The second sentence largely restates schema content for expectedRevision, which is mild waste but not enough to hurt readability.

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 three-parameter destructive tool with no output schema, an agent gets the eligibility rule, the concurrency token's origin, and the conflict behavior (via schema). The main gap is the failure mode when the category is still referenced by expenses.

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 all three parameters are already documented, including the lockVersion/409 semantics. The description only echoes the expectedRevision meaning and points at get_group where the schema points at showGroup, adding little new meaning.

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?

States a specific verb and resource ('delete a category') and adds the scoping precondition 'no expense uses'. This distinguishes it from update_category and the group-level deleters, though it never names an alternative explicitly.

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 a clear eligibility condition for use: only categories that no expense references. It stops short of telling the agent what to do when the category is in use (reassign/delete expenses first, or use update_category to rename), so the negative branch is implied rather than stated.

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