Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

switch_inventory

Destructive

Changes the active inventory for the token user (site and enterprise licenses only) so subsequent API actions apply to the intended inventory.

Instructions

Switch the token user's active inventory (site and enterprise licenses only). Rarely needed.

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": {
      "inventory_id": "<inventory_id>"
    },
    "name": "switch_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
inventory_idYes

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 safety profile is covered. The description adds that the switch applies to the token user and is limited to certain license types, but it omits the key behavioral consequence — that all subsequent calls are scoped to the new inventory and the prior active inventory is replaced.

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?

Two short sentences with the core action and the scope restriction front-loaded before the cautionary note. Nothing is repeated or padded, and the parenthetical is well placed.

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 tool is structurally simple (one required param, output schema present so return values need no explanation), yet it mutates global session context and the description never says so. For a state-changing switch, that omission leaves an agent without the information needed to anticipate effects on later calls.

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 0% and the lone parameter is a bare 'inventory_id' integer, so the description carries the burden. '(site and enterprise licenses only)' does constrain which IDs are valid, which is real semantic value, but it never says where an inventory_id comes from or what happens if an invalid or ineligible ID is supplied.

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 gives a specific verb ('switch') and resource ('active inventory') and adds a scope constraint ('site and enterprise licenses only') that narrows what this means. No sibling tool in the catalog operates on inventories, so there is no ambiguity to resolve, though the definition itself does not explicitly say which alternative to use.

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?

'Rarely needed' is a weak usage signal that discourages casual invocation but gives no positive condition for when the switch is warranted and names no alternative. An agent still has to infer that this is a one-time context setup step rather than a per-query operation.

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