Skip to main content
Glama

List inventory

list_inventory
Read-onlyIdempotent

Inventory items, optionally filtered by a search term.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_inventory"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoSearch term (name, SKU, category).
limitNoMax results (default 100).
fieldsNoFields to return. Default: sku, name, quantity, unit, price, category, low_stock_threshold, stock_by_location.
project_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "sku",
      -  "name",
      -  "description",
      -  "quantity",
      -  "unit",
      -  "price",
      -  "cost",
      -  "category",
      -  "low_stock_threshold",
      -  "location",
      -  "images",
      -  "created_at",
      -  "updated_at",
      -  "stock_by_location",
      -  "unplaced_quantity",
      -  "lead_time_days",
      -  "safety_days",
      -  "supplier_name",
      -  "supplier_email"
      -]New value: +[
      +  "sku",
      +  "name",
      +  "description",
      +  "quantity",
      +  "unit",
      +  "price",
      +  "cost",
      +  "category",
      +  "low_stock_threshold",
      +  "location",
      +  "images",
      +  "created_at",
      +  "updated_at",
      +  "stock_by_location",
      +  "unplaced_quantity",
      +  "lead_time_days",
      +  "safety_days",
      +  "supplier_name",
      +  "supplier_email",
      +  "labels_url"
      +]
  2. Changed4 schema fields changed
    • changedInput schema / properties / fields / description
      Previous value: -"Which fields to return. Leave out for the usual ones: sku, name, quantity, unit, price, category, low_stock_threshold, stock_by_location."New value: +"Fields to return. Default: sku, name, quantity, unit, price, category, low_stock_threshold, stock_by_location."
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "sku",
      -  "name",
      -  "description",
      -  "quantity",
      -  "unit",
      -  "price",
      -  "cost",
      -  "category",
      -  "low_stock_threshold",
      -  "location",
      -  "images",
      -  "created_at",
      -  "updated_at",
      -  "stock_by_location",
      -  "unplaced_quantity"
      -]New value: +[
      +  "sku",
      +  "name",
      +  "description",
      +  "quantity",
      +  "unit",
      +  "price",
      +  "cost",
      +  "category",
      +  "low_stock_threshold",
      +  "location",
      +  "images",
      +  "created_at",
      +  "updated_at",
      +  "stock_by_location",
      +  "unplaced_quantity",
      +  "lead_time_days",
      +  "safety_days",
      +  "supplier_name",
      +  "supplier_email"
      +]
    • changedInput schema / properties / limit / description
      Previous value: -"How many to return, newest first where there's an order (default 100)."New value: +"Max results (default 100)."
    • removedInput schema / properties / project_id / description
      Removed value: -"Workspace to work in (from list_projects). Leave out for the default one."
  3. Changed2 schema fields changed
    • changedInput schema / properties / fields / description
      Previous value: -"Which fields to return. Leave out for the usual ones: sku, name, quantity, unit, price, category, low_stock_threshold."New value: +"Which fields to return. Leave out for the usual ones: sku, name, quantity, unit, price, category, low_stock_threshold, stock_by_location."
    • changedInput schema / properties / fields / items / enum
      Previous value: -[
      -  "sku",
      -  "name",
      -  "description",
      -  "quantity",
      -  "unit",
      -  "price",
      -  "cost",
      -  "category",
      -  "low_stock_threshold",
      -  "location",
      -  "images",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "sku",
      +  "name",
      +  "description",
      +  "quantity",
      +  "unit",
      +  "price",
      +  "cost",
      +  "category",
      +  "low_stock_threshold",
      +  "location",
      +  "images",
      +  "created_at",
      +  "updated_at",
      +  "stock_by_location",
      +  "unplaced_quantity"
      +]
  4. First observed

TDQS

C2.4/5.0
Behavior2/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered elsewhere. The description adds nothing beyond the annotations: it does not mention the default page size of 100, the 500 cap, or that results are scoped by project, all of which affect an agent's calling behavior.

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

Conciseness3/5

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

It is a single short clause with no wasted words, but the terseness comes at the cost of clarity: without a leading verb the sentence reads as a label rather than an instruction, and there is no front-loaded statement of what the tool actually does.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter list tool with no output schema, the description leaves out result ordering, pagination behavior, and project scoping. The schema carries most of the load, but the description does not round it out.

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

Parameters2/5

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

Schema description coverage is 75% and the schema already documents q, limit, and fields in detail. The description only restates the q filter and says nothing about project_id, which has no schema description at all, so it fails to compensate for that gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource (inventory items) and an optional filter, so an agent can infer a listing operation, but it is a noun phrase fragment with no verb and no explicit differentiation from siblings such as get_inventory_item or audit_stock.

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

Usage Guidelines2/5

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

Only "optionally filtered by a search term" is offered; there is no statement of when to call this versus get_inventory_item (single item) or audit_stock, and no note that all parameters are optional so a bare call returns everything.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.