Skip to main content
Glama

create_product_category

Create a product category. Use parentId to create subcategories under an existing category.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesCategory name
parentIdNoParent category ID for subcategories
sortOrderNoDisplay sort order
descriptionNoCategory description
onlineEnabledNoShow in online store (default true)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesTool result payload — shape varies per tool, see the tool description
summaryYesOne-line human-readable summary of the action
renderTypeYesUI rendering hint for the result

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already indicate a write operation (readOnlyHint=false). The description adds useful context about creating subcategories via parentId, which is not in annotations. However, it does not disclose permissions, idempotency, or failure behavior.

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 concise, front-loaded sentences with no superfluous content. The primary action and key subcategory behavior are stated efficiently.

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

Completeness5/5

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

Given the simple create operation, full input schema, and presence of an output schema, the description is sufficient. It covers the purpose and the one non-obvious usage (subcategories), while the schema handles parameter details.

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 100% with all parameters already described. The description only reiterates parentId's role without adding format, constraints, or behavior beyond the schema.

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 clearly identifies the action (create) and resource (product category), and it adds a key distinguishing behavior (using parentId for subcategories). However, it does not explicitly differentiate from sibling tools like create_category or list_product_categories.

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?

It provides a clear usage instruction for parentId to create subcategories, implying the tool's context. But it does not state when to prefer this tool over alternatives or when not to use it, especially given overlapping siblings like create_category.

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.