Skip to main content
Glama
vuluu2k

WebCake Storefront MCP

by vuluu2k

create_product_category

Create a product category so category pages have content and products can be filed under it. Returns the new category ID for product assignment.

Instructions

Create a product category (so grid-category / a category page has something to show, and products can be filed under it). Returns the new category id — pass it to create_product's category_ids. Image must be a hosted URL. SEO: set it afterwards with update_product_category({ id, seo }).

Input Schema

NameRequiredDescriptionDefault
nameYesCategory name
imageNoHosted image URL for the category card
parent_idNoParent category id for a sub-category
descriptionNoCategory description

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.31.8

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is covered. The description still adds real context beyond that: it discloses that the call returns a new category id and how to consume it, plus the hosted-URL constraint on image. It does not mention auth requirements, uniqueness constraints on name, or failure behavior, keeping it shy of a 5.

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?

Four short sentences, front-loaded with the action and rationale, then the return-value contract and two constraints. The parenthetical explaining why a category is needed is slightly discursive but still earns its place as motivation; nothing is padded or redundant.

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?

There is no output schema, but the description compensates by stating what is returned (the new category id) and how downstream tools consume it. Combined with full schema coverage and non-destructive annotations, an agent has enough to call this correctly; only edge cases like duplicate names or error responses are unaddressed.

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% and each of the 4 parameters is already documented, so the baseline is 3. The description's only parameter-level addition ('Image must be a hosted URL') restates the schema, and parent_id/description are never elaborated on, so it does not meaningfully exceed what the schema provides.

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+resource ('Create a product category') and immediately distinguishes it from sibling operations by naming the follow-up tools (create_product, update_product_category) and the domain it belongs to versus create_blog_category. An agent can identify this as the category-creation entry point 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit workflow routing: the returned id goes to create_product's category_ids, and SEO is set afterwards via update_product_category({ id, seo }). This tells the agent both when to call it and which sibling to use for the adjacent post-creation steps, rather than doing everything in one call.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools