Skip to main content
Glama

Create category

figa_create_category
Idempotent

Create a local category in this workspace without creating an expense. Omit parentId or use null for a root; a child requires an existing local root in the same workspace. Names must be unique among siblings. Color is optional and defaults to slate. Shared organization categories cannot be created through this connection. 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>",
      "category": "<category>"
    },
    "name": "figa_create_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
categoryYesNew category: name (1-100 characters), optional description (up to 500), color from the palette and parentId of a local root, or null for 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.
workspaceIdYesID of a workspace selected for this connection. Other workspaces are rejected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / category / description
      Added value: +"New category: name (1-100 characters), optional description (up to 500), color from the palette and parentId of a local root, or null for a root."
    • 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?

Goes well beyond the annotations (non-readOnly, idempotent, non-destructive) by explaining the requestId idempotency contract, enumerating the uncertain-outcome states (missing response, IDEMPOTENCY_OUTCOME_UNKNOWN, IDEMPOTENT_REQUEST_IN_PROGRESS, INTERNAL_SERVER_ERROR), warning that a new ID can duplicate an uncertain write, and stating the 24-hour transport cache window. It also discloses business constraints (sibling name uniqueness, no shared org categories) that an agent cannot derive from structured fields.

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-loads the core action and scoping constraint, then moves to idempotency semantics; every sentence carries operational information. The idempotency paragraph is dense and slightly repetitive in restating the same idea (uncertain outcome vs. new ID duplicating), costing a bit of tightness.

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 write tool with nested params, no output schema and full schema coverage, the description supplies the constraints, failure modes and idempotency contract an agent needs. The only gap is that it never says what a successful call returns (presumably the created category), which is not covered by an output schema.

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, but the description adds real semantics: parentId null/omitted means root, a child requires an existing local root in the same workspace, names must be unique among siblings, and color defaults to slate. It does not restate the string length limits or the description field's purpose, which is fine given the schema documents them.

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 ('Create a local category in this workspace') and immediately scopes it against the adjacent expense tools ('without creating an expense'). An agent can distinguish it from figa_create_expense, figa_update_category and figa_delete_category without opening any 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?

Gives clear preconditions for use: explicit user intent is required, shared organization categories cannot be created through this connection, and a child requires an existing local root in the same workspace. It does not explicitly name a sibling alternative (e.g., list_categories to discover an existing parent), so it stops short of a full routing statement.

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