Skip to main content
Glama

Stock: get

stock_get_stocks_info
Read-onlyIdempotent

Retrieve current stock quantities for listings. Provides available quantity, unlimited/multiple/out-of-stock flags for each item ID.

Instructions

Reads current stock (available quantity) for a list of listings in the warehouse (get_stocks_info). Read-only, changes nothing. Returns for each item_id: quantity (available = submitted/edited minus reserved), is_unlimited, is_multiple, is_out_of_stock. To change stock, use stock_update_stocks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_idsYesIDs of the listings on the Avito website (item_id) to get stock for; from 1 to 200 per request.
strong_consistencyNoIf true, skip the cache and return data from the database (strong consistency): fresher but slower. By default data may be served from the cache. Optional.
Behavior4/5

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

Annotations already declare readOnlyHint=true, etc. Description adds details about return fields (quantity formula, is_unlimited, etc.) and affirms read-only nature. No contradiction.

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?

Three sentences, front-loaded with purpose, no unnecessary words. Each sentence adds value: purpose, safety, return fields and alternative.

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 a simple read tool with 2 parameters (1 required) and no output schema, the description covers purpose, return fields, and usage context. No gaps.

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 100%, and the description repeats schema text for both parameters without adding new meaning. The description's mention of return fields does not pertain to parameters.

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?

Description clearly states 'Reads current stock' for listings, with a specific verb and resource. It distinguishes from sibling tools by mentioning stock and explicitly referencing stock_update_stocks for changes.

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 says 'Read-only, changes nothing' and provides alternative tool for mutation: 'To change stock, use stock_update_stocks.' Clear when to use this tool vs. alternatives.

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/elchin92/avito-mcp'

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