Skip to main content
Glama
hvkshetry

inventree-mcp

by hvkshetry

attachment

Destructive

Upload, download, list, and delete file attachments for InvenTree objects such as parts, stock items, orders, and companies.

Instructions

File attachment management for any InvenTree object.

Operations: Read: list, download Write: upload, upload_link Delete: delete

Args: operation: One of the operations listed above. model_type: Object type (part, stockitem, build, purchaseorder, salesorder, company). model_id: Object ID for list/upload/upload_link. attachment_id: Attachment ID for download/delete. file_path: Local file path for upload. link: URL for upload_link. comment: Optional comment for uploads. destination: File path to save downloaded attachment to.

Returns: JSON string with attachment data or {"error": "..."}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
operationYes
model_typeNo
model_idNo
attachment_idNo
file_pathNo
linkNo
commentNo
destinationNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already indicate destructiveHint=true and readOnlyHint=false. The description adds operation breakdown (list, download, upload, delete) and notes return values, but does not detail behavioral aspects like consequences of deletion, authentication requirements, or error handling beyond a simple error string.

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 well-structured with headings and bullet points, but is slightly verbose. It efficiently communicates the tool's purpose and parameters without excessive fluff.

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?

Given the tool's complexity (8 parameters, output schema exists), the description covers operations, parameters, and return values. It lacks detail on delete behavior or file persistence, but overall provides sufficient information for an agent to use the tool.

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

Parameters5/5

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

With 0% schema description coverage, the description fully compensates by explaining each parameter's purpose (e.g., operation, model_type, model_id, attachment_id, file_path, link, comment, destination), adding significant meaning beyond the schema.

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 'File attachment management for any InvenTree object' and lists specific operations (read, write, delete), distinguishing it from sibling tools that manage other object types like part, stock, etc.

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 lists operations and their purposes but does not explicitly state when to use this tool versus alternatives or provide usage exclusions. It implicitly covers usage context but lacks comparative guidance.

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