Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

receive_order

Destructive

Mark an order as arrived and create its container using the order's size, supplier, and substance. Use it to log received deliveries into inventory at a specified location.

Instructions

Mark an order as arrived and create its container; size, supplier and substance come from the order.

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": {
      "order_id": "<order_id>",
      "name": "<name>",
      "location_id": "<location_id>"
    },
    "name": "receive_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName of the new container
commentsNo
order_idYes
location_idYes
custom_fieldsNoContainer custom field values by custom field ID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the write/closed-world nature is covered. The description adds real value by explaining that size, supplier and substance are inherited from the order rather than supplied, but it says nothing about reversibility, required permissions, or the failure mode for an already-received or closed order.

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

Conciseness5/5

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

A single compact sentence that front-loads the two effects and closes with the constraint on derived fields. Every clause carries information; no filler.

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?

An output schema exists, so return values need no explanation. However, for a destructive, irreversible-looking creation step with two undocumented required integer IDs, the description leaves meaningful gaps around preconditions and the meaning of the target location.

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?

Schema coverage is only 40%; name and custom_fields are documented in the schema while comments, order_id and location_id are not. The description partially compensates by implying that only the container's own identity is needed because the rest derives from the order, but it never clarifies what order_id selects or what location_id means for the new container.

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?

Names a specific compound action: marking an order as arrived and creating its container, with the source of the container's attributes stated. It is clearly a state transition on an order rather than a bulk-add (add_containers) or a schedule change (toggle_order_placed), though it never names those siblings explicitly.

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 trigger is implied by the phrase 'mark an order as arrived', so an agent can infer this is the receive-goods step. There is no explicit when-not guidance, no statement about what happens if the order was already received, and no routing to alternatives such as add_containers for containers not tied to an order.

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