Skip to main content
Glama
Odoo MCP Server

Odoo MCP Server

by ajmalj

Search Records

search_records

Search Odoo records by model and domain filters, then retrieve selected fields with sorting, limits, and pagination for targeted ERP data queries.

Instructions

Search records in an Odoo model using domain filters.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of records to return (default: 50)
modelYesThe technical name of the model (e.g., 'res.partner')
orderNoSort order (e.g., 'name asc, id desc')
domainNoOdoo domain filter (e.g., [['is_company', '=', True]]) If not specified, returns all records up to limit.
fieldsNoList of field names to retrieve.
offsetNoNumber of records to skip (for pagination)

Output Schema

NameRequiredDescriptionDefault

No arguments

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 provided, so the description carries the full behavioral burden and it does not say this is a read-only operation, mention result caps or pagination behavior, or describe what the response contains. The limit/offset defaults are described in the schema, but no meaning is given to the flagging of truncation.

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 sentence with no wasted words, front-loaded with the verb and resource. It is efficient but borders on under-specification for a tool with 6 parameters and no annotations.

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?

The output schema and 100% parameter coverage carry most of the load, so the definition handles the mechanics. However, for a read tool with no annotations, the description should also state that it does not mutate data and should note the result cap behavior.

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 every parameter (model, domain, fields, order, limit, offset) is already documented, including examples and the default that returns all records. The description adds nothing beyond 'domain filters', which is the baseline 3 for a fully documented 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?

The description gives a specific verb and resource ('Search records in an Odoo model') plus the mechanism ('domain filters'), which is clear enough to act on. It does not distinguish this tool from siblings such as get_record or count_records, so an agent must infer the split from the names alone.

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: the mention of domain filters hints that this is the query tool, and the schema notes that omitting the domain returns all records up to the limit. There is no explicit guidance on when to prefer this over count_records for totals or get_record for a single record.

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