Skip to main content
Glama

inv_receive

Books delivered parts into InvenTree by creating missing part, supplier and manufacturer records, then adding stock items. Run as a dry run first to review the plan before confirming.

Instructions

Book delivered parts into InvenTree. Run with confirm=false first (dry run), show the plan to the user, and only call with confirm=true after they agree.

items: [{"tme_symbol", "mpn", "manufacturer", "name"?, "description", "qty", "location_id"?, "category_id"?, "unit_price"?, "currency"?, "batch"? (e.g. TME order number), "keywords"? , "value"?, "package"?, "kind"?}] Creates the part, the TME supplier part and the manufacturer part when missing (matched by TME symbol, then MPN), then adds a stock item. Needs INVENTREE_ALLOW_WRITE=1. With qty 0 (or no qty) only the part cards are created and no stock is booked. New parts and supplier parts get the TME data attribution in their notes (TME API terms 8.7, 8.8).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "items": "<items>"
    },
    "name": "inv_receive"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
confirmNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, idempotentHint=false, destructiveHint=false; the description adds substantial context beyond that: the dry-run/confirm gate, the write-enable env var, the cascading creation of part/supplier/manufacturer/stock records, matching order (TME symbol then MPN), the qty-0 no-stock branch, and note attribution. It stops short of saying what happens on partial failure or how existing matched parts are reused, which keeps it at 4 rather than 5.

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?

Front-loads the action and the confirm protocol, then the payload shape, then side effects and edge cases — a sensible order with little filler. The inline JSON-ish field list is dense but each entry earns its place given the empty schema.

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 non-idempotent mutation with cascading side effects and no output schema, the definition covers prerequisites, the dry-run plan step, and the qty-0 branch. It does not describe the dry-run plan's contents or error/rollback behavior, which an agent calling a multi-record write would benefit from.

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?

Schema coverage is 0%, so the description carries the full burden and largely does: it lists every item field, marks optional ones with "?", explains confirm's role and the qty=0 special case, and gives an example for batch. Several fields (keywords, value, package, kind) are named without explaining what they map to on the created part, leaving residual ambiguity.

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?

States a specific verb and resource ("Book delivered parts into InvenTree") and then enumerates exactly what gets created: the part, the TME supplier part, the manufacturer part, and a stock item. That is far more specific than the sibling names (inv_find, inv_structure, tme_*) and lets an agent tell this is the write-side receiving tool.

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

Usage Guidelines4/5

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

Gives an explicit, ordered protocol: call with confirm=false first, show the plan to the user, then call with confirm=true only after agreement, plus the INVENTREE_ALLOW_WRITE=1 prerequisite. It does not name any sibling alternative or exclusion, but the when-to-use condition and safety workflow are unambiguous.

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