Skip to main content
Glama

Create or update a category

loyverse_upsert_category
Destructive

Create an item category, or rename/recolor one by passing its id. Loyverse: POST /categories.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoExisting category id to update. Omit to create.
nameYesThe category name (required).
colorNoDisplay color on the POS.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations supply only destructiveHint=true, so the description must carry most of the burden. It clarifies that the operation is an upsert and that id triggers an in-place rename/recolor, but never says whether unspecified fields are preserved or cleared, what permissions are needed, or what the response contains.

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?

Two short sentences, front-loading the create/update distinction before the endpoint reference. Nothing is padded, and the API route hint is short enough to be useful without bloat.

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 3-param upsert with full schema coverage and no output schema, the description covers the key ambiguity (create vs update). It falls just short on mutation behavior details such as field retention and error cases, which the single destructiveHint annotation does not resolve.

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 (id, name, color with enum) are already documented in the schema, including the 'omit to create' semantics. The description merely restates that id drives update mode; baseline 3 applies.

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 an item category') plus the exact update semantics ('rename/recolor one by passing its id'). An agent can immediately distinguish the create path from the update path, including which fields are mutable.

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?

The description gives the explicit condition that selects each mode — omit id to create, pass id to update — which is real routing guidance within the tool. It does not, however, position itself against siblings like loyverse_list_categories (read path) or explain any prerequisites.

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.