Skip to main content
Glama
odoo-mcp-guard

odoo-mcp-guard

by sanjithrana

check_stock

Read-onlyIdempotent

Retrieve on-hand and forecast stock levels for products by name, code, or Odoo product ID to verify availability before purchasing or selling.

Instructions

Check on-hand and forecast stock for products.

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": "check_stock"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNoProduct name or code.
product_idNoOdoo product id.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds that the result covers both on-hand and forecast stock, which is real value beyond the annotations. It says nothing about result limits, pagination, or what an empty or ambiguous product lookup returns.

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?

A single front-loaded sentence with no filler, so the scope statement appears immediately. It is arguably over-terse given three parameters, but nothing in it is wasted.

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

Completeness3/5

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

An output schema exists, so return values need no explanation, and the annotations cover safety. However, for a tool with three optional parameters and no required ones, the definition leaves the query-versus-product_id decision and the limit behavior unaddressed.

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 coverage is only 67%: query and product_id are documented in the schema, but limit is not, and the description adds no parameter semantics at all. It does not clarify the precedence between query (name or code) and product_id, which is the most consequential ambiguity for a caller.

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

Purpose4/5

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

The description states a specific verb and resource: 'Check on-hand and forecast stock for products.' That is clearly distinct from the sibling tools get_rfq and search_partners, though it does not explicitly name a differentiating boundary.

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?

There is no guidance on when to use this tool versus alternatives, no mention of prerequisites, and no hint about whether query and product_id are alternatives or can be combined. The agent must infer usage from the schema alone.

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

Deploy Server

Other Tools