Skip to main content
Glama
hvkshetry

inventree-mcp

by hvkshetry

stock

Manage inventory stock items and locations in InvenTree: list, create, update, transfer, count, add, remove stock, and upload test results. Filter by part or location, search, and paginate results.

Instructions

Stock item & location management in InvenTree.

Operations: Read: list, get, get_by_location, get_by_part, list_locations, get_location, get_tracking, get_test_results Write: create, update, transfer, count, add, remove, create_location, upload_test_result

Args: operation: One of the operations listed above. pk: Stock item or location ID. data: Dict of fields for create/update. part_id: Filter stock by part (for list, get_by_part). location_id: Filter stock by location or transfer destination. quantity: Quantity for transfer/count/add/remove operations. test_name: Name for upload_test_result. test_result: Boolean pass/fail for upload_test_result. search: Text search filter for list/list_locations. limit: Max results (default 25). offset: Pagination offset.

Returns: JSON string with stock/location data or {"error": "..."}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYes
pkNo
dataNo
part_idNo
location_idNo
quantityNo
test_nameNo
test_resultNo
searchNo
limitNo
offsetNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

Annotations provide readOnlyHint=false and destructiveHint=false. The description adds details about write operations (create, update, transfer, etc.) and return format. However, it does not disclose authorization needs, rate limits, or side effects of destructive operations like 'remove'. The description adds moderate value beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is organized with an intro, operation lists, and parameter details. It is front-loaded but somewhat lengthy given the number of operations. Could be more concise by grouping similar operations or using bullet points, but it is not overly verbose.

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?

For a tool with 11 parameters, multiple operations, and no schema descriptions, the description covers operation types and parameter meanings. The output format is mentioned ('JSON string with stock/location data'), and the presence of an output schema (context signal) reduces the need for detailed return info. Missing details on error handling and nested object structures, but adequate overall.

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

Parameters4/5

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

With 0% schema description coverage, the description compensates by explaining each parameter's purpose and usage (e.g., 'part_id: Filter stock by part'). Some explanations remain vague (e.g., 'data: Dict of fields'), but overall it adds significant meaning beyond the raw 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 states 'Stock item & location management in InvenTree' and enumerates specific read/write operations. While the term 'management' is broad, the operation list provides sufficient specificity. It is distinct from sibling tools like 'part' or 'purchase_order' but does not explicitly differentiate.

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 on when to use this tool versus siblings or when not to use it. The description lists operations but does not provide context for choosing between this and other tools, nor does it mention prerequisites or exclusions.

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/hvkshetry/inventree-mcp'

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