Skip to main content
Glama
Odoo MCP Server

Odoo MCP Server

by FReptar0

get_sales_stats

Retrieve sales statistics from Odoo by date range and group results by user, team, state, or partner to summarize performance and analyze trends.

Instructions

Get sales statistics and summaries from Odoo database

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_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
date_toNoEnd date for statistics (YYYY-MM-DD format)
group_byNoField to group statistics by (e.g., "user_id", "team_id", "state")
date_fromNoStart date for statistics (YYYY-MM-DD format)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full burden and provides little: it does not confirm this is a read-only aggregation, does not say whether all three optional parameters defaulting to empty means an unbounded/all-time query, and does not describe permission requirements or response shape. The agent is left to infer scope and safety entirely on its own.

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 padding or repetition, though "from Odoo database" carries almost no information for an agent that already knows the server context. Short and clean, but terse to the point of under-specification.

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

Completeness2/5

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

For an aggregation tool with no annotations and no output schema, the definition should at least say what a "summary" contains and what an empty-parameter call returns. Neither is covered, and the aggregation semantics — the very thing that distinguishes this tool — remain undefined.

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%, with each of date_from, date_to, and group_by documented including format patterns and an enum, so the baseline is 3. The description adds no meaning beyond the schema — no note on default date behavior, timezone, or how grouping affects aggregation granularity.

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

Purpose3/5

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

"Get sales statistics and summaries" gives a verb and a resource, and the word "statistics/summaries" weakly implies aggregation rather than raw records, which hints at a difference from get_sales_orders. But it never says which metrics (revenue, counts, totals) are computed or how those summaries differ from the sibling order-listing tools, so the agent must guess.

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 when-to-use guidance at all: nothing about when to prefer this over get_sales_orders or get_sales_order_details, and no mention of what happens when the (all-optional) date or group_by parameters are omitted. The only contextual phrase, "from Odoo database," is a source label rather than usage guidance.

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