Skip to main content
Glama
codename-generator

codename-generator

by funky-ai

update_category

Modify a category's name, sort order, parent, or archive status. Use an empty parent ID to move it to top level; invalid depth or cycles are rejected.

Instructions

Update fields of a category (rename, re-sort, re-parent, archive). Pass an empty string for parent_category_id to move to top-level. Depth > 3 and cycles are rejected.

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": "update_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugNo
name_enNo
name_zhNo
operatorNosystem
sort_orderNo
category_idYes
is_archivedNo
parent_category_idNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose real behavior: depth > 3 and cycles are rejected, and an empty-string sentinel moves a category to top-level. However, it never explains the semantics of the default-null fields (does null mean 'leave unchanged' or 'clear the value'?), nor permissions, idempotency, or side effects on descendants.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the operation set, then the non-obvious sentinel rule, then the validation constraints. No filler and nothing buried.

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 mutation tool with no annotations, the description covers the operation set and the key rejection rules, and an output schema exists so return values need no explanation. The remaining omission, partial-update/null semantics, is the one thing an agent could still get wrong.

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 0% across 8 parameters, so the description must compensate, and it does for the main ones by mapping slug/name to rename, sort_order to re-sort, parent_category_id to re-parent with the empty-string sentinel, and is_archived to archive. The 'operator' parameter is never mentioned and the null-versus-omit distinction across all optional fields remains undefined, leaving real gaps.

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?

The definition pairs the specific verb 'Update' with the resource 'category' and enumerates the field families affected (rename, re-sort, re-parent, archive), so an agent knows exactly what the call mutates. It does not explicitly name a sibling it replaces (e.g. delete_category for removal versus is_archived here), which keeps it from a 5.

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?

Usage is implied by the enumerated operations rather than stated: an agent can infer 'use this to rename or move a category' but is never told when to prefer archive over delete_category, or which sibling to call for creating or listing. No when-not-to-use guidance is given.

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