Skip to main content
Glama

Loyverse MCP by usefulapi

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. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, and 'rename/recolor' is consistent with mutation. The description adds little beyond that: it does not say whether an update overwrites unspecified fields (e.g., does omitting `color` clear it), what permissions/API key are needed, or whether renaming affects items referencing the category. The 'POST /categories' note is implementation detail rather than agent-relevant behavior.

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?

One tight sentence front-loads the primary action and the branch condition, with no filler. The trailing 'Loyverse: POST /categories.' fragment is redundant for an agent choosing a tool, which keeps it just under the top mark.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With only 3 fully documented params, no output schema, and a destructiveHint annotation, the essentials are covered. However, for a destructive mutation the description omits what an update does to fields not supplied and whether existing item associations are affected, leaving a meaningful gap.

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%, including the create-vs-update meaning of `id`, the 64-char name bound and the color enum, so the baseline is 3. The description's mention of `id` restates what the schema already documents and adds no format or edge-case detail.

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 description gives a specific verb and resource ('Create an item category') and unpacks the dual create/update behavior by explaining that passing an `id` switches to rename/recolor. No sibling does the same thing (upsert_customer/upsert_supplier target different resources), so no explicit routing is needed, but the description also doesn't differentiate itself from the read-side sibling loyverse_list_categories.

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?

'Omit to create' / 'passing its `id`' gives a clear condition that selects between the two modes of this tool. It stops short of stating when-not to use it (e.g., to enumerate categories use list_categories) or any prerequisites, so it is clear context without exclusions.

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.