Skip to main content
Glama

Inspect model fields

odoo_fields_get
Read-only

Returns the field definitions of an Odoo model: type, label, required, relation and selection values. Returns JSON with model, field_count and fields.

Input Schema

NameRequiredDescriptionDefault
modelYesOdoo model technical name.
attributesNoField metadata attributes to return. Defaults to string, type, required, readonly, relation and selection.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / attributes / description
      Previous value: -"Metadatos a devolver."New value: +"Field metadata attributes to return. Defaults to string, type, required, readonly, relation and selection."
    • changedInput schema / properties / model / description
      Previous value: -"Modelo Odoo."New value: +"Odoo model technical name."
  2. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. The description adds the shape of the payload (model, field_count, fields) beyond what annotations provide, but says nothing about auth requirements, cost on large models, or whether the call is cached.

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?

Two short sentences, front-loaded with what is returned. The second sentence partly restates the first's enumeration but stays within a reasonable length for the tool's complexity.

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?

For a simple read-only two-parameter inspection tool with a full output schema, the description covers what the tool returns and its scope. The missing piece is guidance on when to reach for odoo_list_models first, which would round it out.

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 coverage is 100%, so both parameters are already documented, giving a baseline of 3. The description's field list (type, label, required, relation, selection) does not quite match the schema's documented default attributes, which includes readonly and omits label, so it adds no reliable meaning beyond the schema and slightly muddies it.

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: returns field definitions of an Odoo model, with the metadata it yields enumerated. It is distinguishable from odoo_list_models and odoo_read by being field-level inspection, but the description never names those siblings to make the distinction explicit.

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?

There is no when-to-use or when-not-to-use guidance, and no mention of the obvious alternative (odoo_list_models) for discovering models versus inspecting one model's fields. The agent must infer the selection rule from the names alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources