Skip to main content
Glama
Odoo MCP Server

Odoo MCP Server

by FReptar0

get_sales_order_details

Fetch a specific Odoo sales order by ID with optional order line details to review order contents and support sales analysis.

Instructions

Get detailed information for a specific sales order including order lines

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "order_id": "<order_id>"
    },
    "name": "get_sales_order_details"
  }
}

Input Schema

NameRequiredDescriptionDefault
order_idYesThe ID of the sales order to retrieve details for
include_linesNoWhether to include order lines details (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior2/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. 'Get' implies a read-only retrieval, but the definition never confirms non-mutation, says nothing about permissions or access constraints, and gives no indication of result size or pagination for order-line expansion.

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 efficient sentence with the resource and the order-lines scope front-loaded. There is no filler, though the terseness leaves little room for the guidance the tool otherwise lacks.

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 simple two-parameter read tool with full schema coverage and no output schema, the description is adequate but thin. It does not tell an agent what the detail payload contains beyond order lines, and with no annotations it leaves the behavioral profile entirely to inference.

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 both order_id and include_lines are already documented in the input schema. The phrase 'including order lines' loosely echoes include_lines but adds no meaning beyond the schema, so the baseline 3 applies.

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 specific verb (Get) and resource (detailed information for a specific sales order) and adds the scope detail 'including order lines.' The word 'specific' signals single-record retrieval, implicitly distinguishing it from the list-style sibling get_sales_orders, though no sibling is named.

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: 'for a specific sales order' suggests it applies when you already have an order identifier. There is no explicit when-to-use statement, no exclusion of get_sales_orders or get_sales_stats, and no note on when to set include_lines.

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