Skip to main content
Glama
odoo-safe-mcp
by makelele29

odoo_search

Read-onlyIdempotent

Search Odoo records by model and domain, returning selected fields with limit, offset, and sort controls. Read-only, useful for querying and paginating ERP data.

Instructions

Search Odoo records and return their fields (search_read). Read-only.

Args: model: Technical model, e.g. 'res.partner', 'sale.order', 'account.move'. domain: Odoo domain, e.g. [["state", "=", "sale"], ["amount_total", ">", 1000]]. fields: Fields to return. Use odoo_describe_model to discover them; defaults to a lightweight profile on common models. limit: Max records (default 20, max 200). offset: Records to skip, for pagination. order: Sort, e.g. 'date_order desc'. all_fields: Set True only when you explicitly need all fields outside the lightweight default profile.

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": {
      "model": "<model>"
    },
    "name": "odoo_search"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
modelYes
orderNo
domainNo
fieldsNo
offsetNo
all_fieldsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.1.0
    • addedInput schema / properties / all_fields
      Added value: +{
      +  "default": false,
      +  "title": "All Fields",
      +  "type": "boolean"
      +}
  2. Addedv3.0.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the safety profile is covered. The description adds behavior the annotations cannot express: a default limit of 20 with a hard cap of 200, offset-based pagination, and the existence of a lightweight default field profile on common models. It stops short of describing error behavior on invalid domains or what happens when the cap is exceeded.

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?

The core statement is front-loaded and the args list is compact, with each line doing work the schema does not. "Read-only." duplicates what readOnlyHint already conveys, a minor redundancy, but nothing else is padded.

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?

With seven parameters, an output schema already covering return values, and full annotation coverage, the description supplies what is missing: domain syntax, field discovery path, and pagination bounds. The absence of any note on invalid-domain or model-not-found behavior is the only real gap for a query tool of this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden, and it documents all seven parameters with concrete semantics: a model example ('res.partner'), a literal domain expression, a pointer to odoo_describe_model for fields, limit bounds (default 20, max 200), offset's purpose, and an order format example. This adds real meaning beyond the bare schema titles.

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 and resource ("Search Odoo records and return their fields") and even names the underlying operation ("search_read"), so the agent knows this is a filtered list-and-read. It does not explicitly contrast itself with the sibling odoo_read, which is the closest confusion risk, so it falls short of a 5.

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?

It gives one explicit conditional ("Set all_fields True only when you explicitly need all fields outside the lightweight default profile") and routes field discovery to odoo_describe_model, which is genuinely useful. However, it never says when to pick this over odoo_read, odoo_count, or odoo_aggregate, so sibling selection is left to inference.

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