Skip to main content
Glama
bemade

odoo-mcp

by bemade

get_model_fields

Read-only

Retrieve field definitions for any Odoo model, including metadata like type, string, and required attributes.

Instructions

Get field definitions for an Odoo model.

Returns a dict mapping field names to their metadata (type, string,
required, relation, etc.).

Args:
    model: The Odoo model name (e.g. "res.partner").
    attributes: List of field attributes to return
        (e.g. ["string", "type", "required"]). Defaults to all.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelYes
attributesNo
Behavior4/5

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

Annotations already indicate readOnlyHint=true. The description adds that it returns a dict mapping field names to metadata (type, string, required, relation, etc.), providing useful behavioral context beyond the annotations.

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?

Description is concise: two sentences covering purpose, return format, and parameters, with no wasted words. Structured logically with purpose first, then details.

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

Completeness5/5

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

With only two parameters (one required) and no output schema, the description fully explains input parameters and return format (dict mapping field names to metadata). No gaps remain.

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

Parameters4/5

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

Schema coverage is 0%, so description must carry full burden. It explains each parameter: model as 'The Odoo model name (e.g. res.partner)' and attributes with example list and default behavior. This adds significant meaning beyond bare schema.

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

Purpose5/5

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

The description clearly states the tool gets field definitions for an Odoo model, with a specific verb ('get') and resource ('field definitions'). It distinguishes from siblings like list_models (lists models) and read_record (reads records).

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?

The description gives no guidance on when to use this tool versus alternatives (e.g., get_model_doc might be related). Purpose is clear but no explicit when-to-use or when-not-to-use context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bemade/odoo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server