Skip to main content
Glama
Odoo MCP Server

Odoo MCP Server

by ajmalj

List Fields

list_fields

Retrieve all fields for a specified Odoo model, including each field's type and properties, with an optional pattern to filter field names.

Instructions

List all fields of a specific Odoo model with their types and properties.

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

Input Schema

NameRequiredDescriptionDefault
modelYesThe technical name of the model (e.g., 'res.partner', 'sale.order')
field_patternNoOptional pattern to filter field names

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. 'List' implies a read-only operation and the phrase 'with their types and properties' hints at the shape of the result, but nothing is said about permissions, behavior on invalid model names, or the potential size of the response for large models.

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 wasted words. It is lean to the point of being terse, but nothing is redundant or buried.

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?

This is a simple two-parameter read tool with an output schema and full parameter documentation, so the description need not explain return values. What remains missing — mainly when to prefer this over search_models — is minor given the tool's simplicity.

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 the model and field_pattern parameters are already fully documented in the schema, including an example. The description adds nothing beyond that — notably it never mentions the field_pattern filter — 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?

The description gives a specific verb and resource — listing fields of an Odoo model — plus what is returned (types and properties). It does not differentiate from siblings such as search_models, which also concerns model metadata, 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?

Usage is only implied: an agent can infer this is for inspecting a model's schema before querying or writing records. There is no explicit when-to-use statement, no mention of the field_pattern filtering option, and no routing to alternatives like search_models.

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