Skip to main content
Glama
woraphol-j

LINE Shopping API MCP

by woraphol-j

Decrease_inventory

Reduce inventory by a specified amount using the inventory ID. Updates stock levels by subtracting the given number from current on-hand quantity.

Instructions

API for updating inventory by decreasing the inventory amount from the current inventory on hand.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesInventory ID
amountYesAmount must greater than 0 and less than 100,000 (0 < amount <= availableNumber < 100,000)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
availableNumberNoQuantity that is available and display on the storefront (Exclude ‘Reserved’ and ‘Ready to ship’ status)
onHandAmountNoQuantity in stock (Include ‘Reserved’ and ‘Ready to ship’ status)
readyToShipAmountNoQuantity that customers complete payment and wait to ship
reservedAmountNoQuantity that customers do not complete payment
Behavior3/5

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

Without annotations, the description carries the burden of disclosure. It implies a mutation operation but does not detail idempotency, error handling, or checks like insufficient inventory. The parameter constraint '0 < amount <= availableNumber' is embedded in schema description, adding some transparency.

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?

The description is a single sentence, efficient but slightly wordy (e.g., 'API for updating inventory'). It could be more direct. No structural issues.

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?

Given the tool has an output schema (not provided) and many similar sibling tools, the description lacks context for return values and does not help the agent distinguish when to use this tool over others like 'Adjust_inventory' or 'Increase_inventory'.

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?

The input schema has 100% coverage with clear descriptions for both parameters. The overall description adds minimal value beyond that, only noting the operation decreases from current inventory. Baseline 3 is appropriate.

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 tool decreases inventory amount, specifying the verb and resource. However, it could better distinguish from siblings like 'Increase_inventory' or 'Adjust_inventory' by explicitly saying it reduces stock.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention the context for decreasing inventory, such as handling returns or manual adjustments, nor does it exclude scenarios better suited for other tools.

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/woraphol-j/lineshopping-api-mcp'

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