Skip to main content
Glama

Update category

figa_update_category
DestructiveIdempotent

Update a local category's name, description, color or parent in this workspace. Omitted fields stay unchanged; parentId=null makes it a root, otherwise use a local root ID in the same workspace. Only two levels are supported and categories with children cannot become children. Existing expenses keep their category assignment. 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>",
      "category": "<category>"
    },
    "name": "figa_update_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryYesFields to change: name, description (null clears it), color or parentId (null makes it a root).
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. Changed4 schema fields changed
    • addedInput schema / properties / category / description
      Added value: +"Fields to change: name, description (null clears it), color or parentId (null makes it a root)."
    • 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.5/5.0
Behavior5/5

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

Annotations only cover safety/idempotency flags; the description goes well beyond them with partial-update semantics (omitted fields unchanged), root vs child reparenting rules, hierarchy depth limits, and the reassuring note that existing expenses keep their assignment. It also spells out the idempotency contract in unusual detail: reuse of requestId and payload on retries, uncertain outcomes (IDEMPOTENCY_OUTCOME_UNKNOWN, IDEMPOTENT_REQUEST_IN_PROGRESS, INTERNAL_SERVER_ERROR) versus confirmed failures, and when a new ID is warranted.

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?

Purpose and partial-update rule are front-loaded in the first two sentences, and most of the remaining sentences carry non-obvious constraints. The idempotency block runs long, and the closing line about a 24-hour transport cache with "longer replay guarantees are stated above" is the weakest, referring vaguely to prior text.

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 destructive, idempotent mutation with a nested object parameter and no output schema, the definition covers the important decision points: reparenting rules, read-only scope, expense reassignment, and retry/failure ambiguity. It does not describe what the successful response contains or how to confirm the applied state, which an agent might want given the emphasized uncertainty cases.

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 baseline is 3, but the description adds meaning the schema does not: parentId=null makes a root, otherwise the ID must be a local root in the same workspace, and the two-level hierarchy constrains which parent values are legal. requestId semantics are also explained behaviorally rather than just as a UUID.

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?

Names a specific verb and resource ("Update a local category's") plus the exact mutable fields (name, description, color, parent) and scopes it to "this workspace". The explicit contrast with shared organization categories makes it easy to separate from figa_create_category and figa_delete_category without opening schemas.

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 real when/when-not conditions: shared organization categories are read-only, only two levels are supported, and categories with children cannot become children. It also states the write requires explicit user intent. It stops short of naming a sibling alternative (e.g. list/create category) for the read-only or creation cases.

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