Skip to main content
Glama
hvkshetry

inventree-mcp

by hvkshetry

label

Print labels and manage templates for parts, stock, and locations in InvenTree. List, print, or download label templates.

Instructions

Label printing and template management in InvenTree.

Operations: list_templates, print_part, print_stock, print_location, download_template

Args: operation: One of the operations listed above. label_type: Filter for list_templates (part, stock, location). template_id: Label template ID for print/download operations. item_ids: List of item IDs to print labels for. destination: File path to save downloaded template to.

Returns: JSON string with label templates or print result.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYes
label_typeNopart
template_idNo
item_idsNo
destinationNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/5.0
Behavior2/5

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

Annotations indicate readOnlyHint=false, openWorldHint=true, destructiveHint=false, but the description does not elaborate on side effects, idempotency, or retry safety. It only mentions 'printing' without clarifying if it triggers external actions (e.g., printer).

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 concise and front-loaded with purpose. The bullet-style Args and Returns sections are well-structured, though it could be slightly more compact without losing clarity.

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

Completeness3/5

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

The description covers operations and parameters adequately given the presence of an output schema and no nested objects. However, it lacks details on the behavior of each operation (e.g., what happens on failure) and prerequisites.

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?

The 'Args' section adds meaningful explanations for all five parameters beyond the schema titles and types, such as 'label_type: Filter for list_templates (part, stock, location).' This compensates for the 0% schema description coverage.

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?

The description clearly states the tool's purpose: 'Label printing and template management in InvenTree.' It lists specific operations (list_templates, print_part, print_stock, print_location, download_template), which distinguishes it from sibling tools like report or barcode.

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?

The description implies usage through listed operations but does not explicitly state when to use this tool versus alternatives (e.g., report tool for reporting) or provide exclusions. No guidance on when not to use it.

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