Skip to main content
Glama

wordpress_wc_update_stock

Update product stock levels in WooCommerce by specifying the product ID to manage inventory directly through WordPress.

Instructions

Update product inventory/stock levels

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productIdYes
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While 'update' implies a mutation, it doesn't specify whether this requires specific WooCommerce permissions, what happens with invalid product IDs, whether changes are immediate or batched, or what the typical response looks like. For a mutation tool with zero annotation coverage, this leaves significant behavioral gaps.

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?

The description is extremely concise at just four words, front-loading the essential action and target without any wasted text. Every word earns its place, making it easy to scan and understand at a glance.

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

Completeness2/5

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

For a mutation tool with no annotations, no output schema, and a parameter with 0% schema coverage, the description is insufficient. It doesn't explain the WooCommerce context, required permissions, error conditions, or what constitutes a successful update. The agent would need to guess about many operational aspects.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage for the single parameter 'productId', and the description provides no additional parameter information. It doesn't explain what format the product ID should be (numeric ID, SKU, etc.), where to find it, or what stock-related fields can be updated. With low schema coverage, the description fails to compensate for the documentation gap.

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 states the action ('update') and target ('product inventory/stock levels'), providing a specific verb+resource combination. It distinguishes itself from general product updates by focusing specifically on stock levels, though it doesn't explicitly differentiate from all sibling tools beyond the WooCommerce context.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance is provided about when to use this tool versus alternatives like 'wordpress_wc_update_product' (which might also handle stock) or other inventory management approaches. The description assumes the user already knows this is for WooCommerce products without stating prerequisites or context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RaheesAhmed/wordpress-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server