Skip to main content
Glama
Odoo MCP Server

Odoo MCP Server

by ajmalj

Get Record

get_record

Retrieves a specific Odoo record by model and record ID, optionally returning selected fields or default common fields.

Instructions

Get a specific record by ID from an Odoo model.

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>",
      "record_id": "<record_id>"
    },
    "name": "get_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYesThe technical name of the model (e.g., 'res.partner')
fieldsNoOptional list of field names to retrieve. If not specified, returns common fields (name, display_name, create_date, write_date)
record_idYesThe ID of the record to retrieve

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.1/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 and discloses almost nothing: it does not state that this is a read-only operation, what permissions or model access are required, or what happens when the ID is not found. The only behavioral hint is the default-field fallback, which is already documented in the schema.

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?

A single front-loaded sentence with zero filler; the verb, the resource, and the model scoping come in the first clause. Nothing in it is redundant or padded.

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?

An output schema exists and the input schema is fully documented, so return values and parameters are covered elsewhere. However, with no annotations the description should at least confirm read-only semantics and not-found behavior for a lookup tool, which it omits.

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 three parameters (model, record_id, fields) are already fully documented, establishing a baseline of 3. The description adds no syntax examples, model-name conventions, or field-selection caveats beyond what the schema states.

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 (a specific record by ID) and scopes it to an Odoo model, which distinguishes it from list-oriented siblings like search_records. It does not explicitly name which sibling to use for filtered/bulk retrieval, so it falls 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 Guidelines2/5

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

No when-to-use guidance is given: nothing says when to prefer this over search_records or count_records, nor what conditions (e.g., already knowing the ID) select this tool. The only implied usage is the requirement of a record_id.

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