Skip to main content
Glama
ChemInventory MCP Server

ChemInventory MCP Server

by niclas-gr

search

Read-only

Find containers by names, CAS numbers, SMILES, barcodes, GHS, or advanced queries in one request; returns per-term container summaries and matching orders.

Instructions

Search containers for one or more terms, e.g. a whole list of names, CAS numbers or SMILES at once. Returns, per term, the container summaries and matching orders, or an error. Results are filtered by the user's 'limit search to' setting.

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": "<inventory>",
      "search_type": "<search_type>",
      "terms": "<terms>"
    },
    "name": "search"
  }
}

Input Schema

NameRequiredDescriptionDefault
termsYesSearch terms, each searched separately. name: matching follows the account's name search preference (user.preferences.ns in get_details) and is often exact; for partial names use advanced with operator 'contains' on the name field. cas: checked for a valid check digit before searching. Structure searches: molfile or SMILES (stereocenters may be ignored); substances without a stored structure are not found. ghs: {searchtype: 'or'|'and', items: ['H225', ...]}. advanced: QueryBuilder rules {condition, rules: [{id, field, type, input, operator, value}]} with fields from advanced_search_options and operators such as 'contains' or 'between'; dates in the user's date format from get_details
inventoryYesInventory ID, or a site, enterprise or recycling scope
search_typeYesOne of name (includes synonyms), cas, barcode, ghs, advanced, exactstructure, substructure, substanceid, containerid, or a custom field as cf-<datatype>-<id> / sf-<datatype>-<id>, e.g. cf-date-363

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the read-only, closed-world safety profile, and the description adds real behavior beyond them: results are returned per term, an error can come back per term, and output is silently filtered by the user's 'limit search to' setting. That last point is a genuine gotcha an agent would otherwise miss; only pagination/result caps are left unstated.

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?

Three tight sentences, front-loaded with the action and example, followed by the return shape and the filtering caveat. Nothing is redundant, though the line-wrapped phrasing of the example is slightly awkward.

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?

An output schema exists, so return values need not be enumerated; the description still summarizes the per-term result shape and the error case. Combined with annotations and a fully documented schema, an agent has what it needs, with only result-limit behavior left unaddressed.

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 description coverage is 100% and each parameter is documented in depth (name matching preferences, CAS check digit, ghs shape, advanced QueryBuilder rules). The description only restates that terms may be a list, so the baseline of 3 is appropriate.

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?

States a specific verb and resource (search containers) plus the distinguishing capability: batching one or more terms such as names, CAS numbers or SMILES in a single call. It is clear what the tool does, though it never names a sibling (e.g. advanced_search_options or get_details) to contrast against.

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?

Usage is only implied by 'e.g. a whole list of names ... at once', which suggests the batch case. There is no explicit when-to-use versus when-not, and the useful routing hint (partial names require advanced with operator 'contains') lives in the parameter schema rather than the description.

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