Skip to main content
Glama
Odoo MCP Server

Odoo MCP Server

by FReptar0

get_sales_orders

Retrieve sales orders from an Odoo database with optional domain filters, field selection, and pagination; returns confirmed orders by default.

Instructions

Extract sales orders from Odoo database with optional domain filtering. By default, returns confirmed sales orders only.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of records to return (default: 100)
domainNoOptional Odoo domain filter as JSON string. Example: "[[\"state\", \"=\", \"sale\"], [\"date_order\", \">=\", \"2024-01-01\"]]". If not provided, defaults to confirmed sales orders only.[["state", "=", "sale"]]
fieldsNoComma-separated list of fields to include. If not provided, returns all standard fields.id,name,partner_id,date_order,state,amount_untaxed,amount_tax,amount_total,currency_id,user_id,team_id,invoice_status,delivery_status
offsetNoNumber of records to skip (default: 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It usefully discloses a default behavior ('By default, returns confirmed sales orders only'), which is the key surprise an agent needs to know, but it omits anything about read-only nature being guaranteed, permissions/auth, rate limits, and what the response looks like.

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 short sentences, front-loaded with the core action and immediately followed by the non-obvious default scope. Every sentence earns its place with no redundancy.

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?

For a four-parameter read tool with no output schema and no annotations, the description covers purpose and default scope but says nothing about return shape, pagination behavior, or how results differ from the sibling detail/stats tools. Adequate but with clear gaps an agent would notice.

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 description coverage is 100%, so all four parameters (limit, offset, domain, fields) are already documented in the schema, setting the baseline at 3. The description reinforces the default confirmed-only scope that corresponds to the default domain value, but adds no new syntax or format detail beyond the schema.

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?

States a concrete verb and resource ('Extract sales orders from Odoo database') plus the filtering mechanism, which clearly separates it from a details-style sibling. It does not explicitly name or contrast against get_sales_order_details or get_sales_stats, so it stops short of full sibling differentiation.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is for bulk/listing retrieval because of the limit/offset parameters and the 'extract' framing, and the default scope ('confirmed sales orders only') gives useful context. There is no explicit statement of when to prefer this over get_sales_order_details or get_sales_stats, and no prerequisites are mentioned.

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