Skip to main content
Glama
AdvaMCP for Odoo

AdvaMCP for Odoo

odoo_create

odoo_create

Create records in Odoo as reviewable drafts by filling form fields, then return an approval link so the user can review and save the change.

Instructions

Create a record, filling the fields the user could fill on its form. Every change is a draft: it is saved when the user opens the returned link in Odoo and approves it. Give them the link.

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>",
      "values": "<values>"
    },
    "name": "odoo_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftNotrue: returns a link where the user reviews and approves the change in Odoo. false: saves now.
modelYesTechnical model name, e.g. "sale.order".
reasonNoWith draft=false: why it is right to save without the user approving it (what they asked and why the values are correct). Kept in the call log.
valuesYesField name -> value, as on the form (odoo_browse describe=true lists them). many2one: an id; many2many: the full list of ids; dates "YYYY-MM-DD", datetimes "YYYY-MM-DD HH:MM:SS" in UTC. Lines (one2many) are records of their own: create each with odoo_create, pointing to its parent. A long text, HTML or file value: give {"upload": true} for that one field and send it to the returned upload_url.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare the generic write profile (readOnly=false, destructive=false, non-idempotent); the description adds the critical behavior that changes are drafts until the user approves via the returned link, and instructs the agent to hand the link over. It doesn't cover failure modes or validation behavior, but the approval-loop disclosure is genuinely valuable.

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?

Three short sentences, front-loaded with the action, then the draft/approval rule, then the imperative 'Give them the link.' No filler.

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 write tool with nested values and no output schema, the description covers the essential return artifact (the approval link) and the draft-vs-save behavior. Rate limits, permission requirements, and error behavior are absent but not critical to calling it correctly.

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 the schema already documents draft, model, reason, and values including the many2one/date/upload conventions. The description adds only the loose framing that values correspond to form fields, which the schema states more precisely.

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 ('Create a record') plus the form-field framing. It doesn't explicitly contrast with the sibling odoo_write, so the agent must infer that distinction from the draft semantics.

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 implied rather than stated: 'filling the fields the user could fill on its form' signals UI-equivalent record creation, and the draft default frames the normal path. There is no explicit when-to-use-this-vs-odoo_write guidance or statement of exclusions.

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