Skip to main content
Glama

List Warehouses

list_warehouses
Read-only

List the tenant's warehouses (id, name, code, internal/external type, replenishment mode, and any custom field values set on the warehouse — customFields, keyed by fieldName; see list_custom_fields with entity=warehouse). Use the ids with set_inventory_levels / set_inventory_policy / transfer tools. Each warehouse also lists its stores (storeId, name, code): stores and warehouses are DISTINCT entities with different ids, and a warehouse's companion store shares its name, so when a store id is needed (import_historical_sales_orders, create_import_session, or the REST POST /api/v1/sales-orders/import endpoint) answer with stores[].storeId — the warehouse id is never a valid store id. Tenants get a Main warehouse at signup; create more with create_warehouse. Existing array shape is preserved. Omit limit for a complete list up to 100 warehouses; larger lists require explicit limit/offset. For explicit pages, advance offset by limit until a short page. Nested stores are capped at 1000 per response; use warehouseId with storeLimit/storeOffset to page one warehouse's stores in the same way. Set includeStores=false to discover warehouse ids without loading nested stores. Use includeCustomFields=false or customFieldNames to narrow large payloads.

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_warehouses"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoExplicit page size (1–100). Omit for a complete list up to 100 rows.
offsetNoZero-based warehouse offset; requires limit when nonzero.
storeLimitNoExplicit store page size (1–100); requires warehouseId.
storeOffsetNoZero-based store offset; requires storeLimit.
warehouseIdNoOptional warehouse id to narrow the response or page its stores.
includeStoresNoInclude nested stores (default true). Set false for warehouse-id discovery.
customFieldNamesNoOptional exact custom field names to return, at most 100.
includeCustomFieldsNoInclude custom field values (default true); false avoids loading them.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint=false annotations, the description discloses payload bounds (100 warehouses per unpaged request, 1000 nested stores), the default nesting behavior, and the 'Main warehouse at signup' background fact. It also offers concrete cost-avoidance levers (includeStores=false, includeCustomFields=false, customFieldNames) which the annotations cannot convey.

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-loaded with purpose and returned fields, then ordered from id usage to store-vs-warehouse disambiguation to pagination to payload narrowing. It is dense and long, but nearly every sentence carries operational information; a little tightening of the pagination paragraph would earn a 5.

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

Completeness5/5

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

For an 8-parameter, paginated, read-only listing tool with a large payload, the description covers id semantics, entity disambiguation, pagination strategy, and cost controls — everything an agent needs to call it correctly. The output schema already documents return shape, and the description's field list adds value only as disambiguation context rather than unnecessary repetition.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description goes further by explaining cross-parameter interaction: omitting limit for a complete list up to 100, advancing offset by limit until a short page, and pairing warehouseId with storeLimit/storeOffset to page a single warehouse's stores. That behavioral contract is not derivable from the schema alone.

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?

Opens with a specific verb+resource ('List the tenant's warehouses') and enumerates returned fields, then explicitly separates warehouses from stores as DISTINCT entities with different ids. An agent can distinguish this from create_warehouse or the store-related siblings without opening a schema.

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

Usage Guidelines5/5

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

Gives explicit downstream routing ('Use the ids with set_inventory_levels / set_inventory_policy / transfer tools'), names the correct id source for store-consuming operations (stores[].storeId for import_historical_sales_orders, create_import_session, POST /api/v1/sales-orders/import), and points to create_warehouse for provisioning. It also supplies concrete pagination procedures and an explicit negative rule ('the warehouse id is never a valid store id').

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.

Resources