Skip to main content
Glama

List stock levels

list_stocks
Read-only

Check stock levels for a specific date, warehouse, or product. Use to verify availability before invoicing or report historical stock data.

Instructions

Read stock levels as of a date, optionally narrowed to one warehouse or one product. Read-only.

Use it to answer 'how many do we have left?', to check availability before invoicing with useStock, or to report stock as it stood on a past date. Omitting warehouseName covers every warehouse; omitting date reports today.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dateNoDate to report stock for (YYYY-MM-DD). Defaults to today.
productCodeNoNarrow to a single product by code.
productNameNoNarrow to a single product by name.
warehouseNameNoWarehouse name. Omit for all warehouses.
companyVatCodeNoCompany CIF. Falls back to SMARTBILL_VAT_CODE.
Behavior4/5

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

Annotations provide readOnlyHint: true, and description adds value by explaining read-only nature, date behavior, and defaults. No contradictions, but the description doesn't disclose pagination or return format, which would have made it a 5.

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 concise sentences with no redundancy. The purpose is front-loaded, and every sentence adds value. No wasted words.

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?

Given no output schema, the description adequately explains return value (stock levels) and covers all usage contexts. The tool has few parameters and no nested objects, so completeness is high.

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

Parameters4/5

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

Schema coverage is 100%, but the description adds meaning by explaining parameter defaults and behavior (e.g., 'Omitting warehouseName covers every warehouse; omitting date reports today'). This goes beyond the schema's descriptions.

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?

The description clearly states 'Read stock levels as of a date' with optional narrowing by warehouse or product. This is a specific verb+resource combination that distinguishes the tool from sibling tools focused on invoices, payments, etc.

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?

Explicitly states when to use: 'to answer how many do we have left?', 'check availability before invoicing with useStock', or 'report stock as it stood on a past date'. Also explains defaults for omitted parameters, providing clear guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bogdanripa/smartbill-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server