Skip to main content
Glama

Rename category

purch_rename_category
Destructive

Change a category word on every row that carries it, in one act. Categories are the person's words; when the word changes, every row follows in one reasoned act rather than a re-review. Renaming onto an existing word merges the two. Effects: category replaced on every row that carried it.

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": {
      "from": "<from>",
      "to": "<to>"
    },
    "name": "purch_rename_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
toYesThe word it becomes.
fromYesThe word as it is now.
reasonNoWhy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the safety profile is covered. The description adds genuinely new behavior: renaming onto an existing word MERGES the two categories, and the effect statement spells out that the category is replaced on every carrying row. It stops short of noting reversibility (a merge cannot be undone by renaming back) or whether the reason is audited.

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?

Front-loaded with the action and effect, and the 'Effects:' line is a useful scannable trailer. Slightly redundant phrasing ('in one act' / 'one reasoned act') and a rhetorical aside about categories being 'the person's words' cost a bit of density.

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 does the necessary work: what changes, where, and the merge case. The remaining gap is scope precision — 'every row' is never pinned to transactions/receipts/bills, nor does it say whether derived artifacts (rules, subscriptions) are updated too.

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 baseline is 3. The description adds real meaning beyond the schema: 'Renaming onto an existing word merges the two' tells the agent that `to` need not be a novel word and carries merge consequences — a semantic the schema's 'The word it becomes.' does not convey.

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 and resource plus scope: 'Change a category word on every row that carries it, in one act.' An agent can distinguish this bulk relabel operation from row-level tagging (purch_tag_category) 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a rationale for when this operation is appropriate ('when the word changes, every row follows... rather than a re-review'), which implies usage. But it never names an alternative tool or states exclusions — e.g., whether to use purch_tag_category for a single row, or how this interacts with rules/subscriptions. Guidance is implied, not explicit.

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.