Skip to main content
Glama
jonathanARMS23

cosmo-mcp

get_item_stock

Retrieve the current stock level of a specific product using its item code or name. Query for remaining quantities like 'how many left?' or 'is this in stock?'

Instructions

Obtenir le niveau de stock actuel d'un produit spécifique. Utiliser quand l'utilisateur demande 'combien il reste de X', 'quel est le stock de Y', 'est-ce qu'on a encore du Z', 'il reste combien de [produit]'. Préférer ce tool à get_all_stock quand le produit est identifié.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
item_codeNoCode ERPNext du produit (prioritaire si connu)
item_nameNoNom du produit (si item_code non disponible)
Behavior3/5

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

No annotations are provided, so the description is the sole source of behavioral info. It says 'obtenir' (get), implying read-only, but does not state side effects, return format, or prerequisites. However, as a simple lookup, the basic behavior is clear.

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 sentences with a list of example phrasings. The examples are somewhat repetitive but serve as intent-matching patterns. No redundant content about unrelated features.

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?

The description covers what, when, and preferred alternative. Missing return value format and note about at least one parameter being required, but given the tool's simplicity and schema coverage, it is reasonably complete.

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?

The schema fully describes item_code and item_name with priorities, and the description adds no additional parameter semantics beyond that. Descriptions of example queries imply mapping but not explicitly.

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 'Obtenir le niveau de stock actuel d'un produit spécifique' (get current stock level for a specific product), which is a specific verb+resource+scope. It also distinguishes from the alternative get_all_stock by noting preference when the product is identified.

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

Usage Guidelines4/5

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

Gives explicit example queries ('combien il reste de X', 'quel est le stock de Y') and explicitly states to prefer this tool over get_all_stock when the product is known. Lacks an explicit when-not, but provides sufficient context.

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/jonathanARMS23/cosmo-mcp'

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