Skip to main content
Glama
odoo-safe-mcp
by makelele29

odoo_describe_model

Read-onlyIdempotent

Describe an Odoo model's fields—label, type, relation, required, readonly—before writing data. Filter fields by search term or exclude readonly fields to find writable ones.

Instructions

Describe a model's fields (label, type, relation, required, readonly). Use before writing.

Pass search (e.g. 'x_' or 'iban') to filter matching technical names or labels, or include_readonly=False to show only writable fields.

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

Input Schema

NameRequiredDescriptionDefault
modelYes
searchNo
include_readonlyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.1.0
    • addedInput schema / properties / include_readonly
      Added value: +{
      +  "default": true,
      +  "title": "Include Readonly",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / search
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Search"
      +}
  2. Addedv3.0.0

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is fully covered. The description adds the workflow context that this read should precede a write, but says nothing about permissions, scope limits, or cost of a broad call. With annotations carrying the behavioral load, a 3 is appropriate.

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?

Two short sentences, front-loaded with purpose and output contents, followed by filter guidance. Every clause carries information and nothing is padded.

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?

With an output schema present, the description need not document return values, and annotations cover the safety profile, so the remaining burden is usage and parameters. It handles those well except for leaving the `model` argument's expected format undefined.

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 description coverage is 0%, so the description must carry parameter meaning, and it does for two of three: `search` is clarified as matching technical names or labels with concrete examples ('x_', 'iban'), and `include_readonly=False` is explained as restricting to writable fields. The required `model` parameter is left unexplained (technical name vs. display label), which is the remaining gap.

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?

States a specific verb and resource ('Describe a model's fields') and enumerates exactly what comes back (label, type, relation, required, readonly). This clearly separates it from siblings like odoo_list_models (enumerating models) and odoo_read (fetching records).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

'Use before writing' gives an explicit triggering condition, which is real when-to-use guidance rather than implication. It does not name an alternative tool or say when not to use it, which keeps it below a 5.

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