Skip to main content
Glama
AdvaMCP for Odoo

AdvaMCP for Odoo

odoo_write

odoo_write

Update fields on an Odoo record as a draft change and return a link for the user to review and approve in Odoo.

Instructions

Change fields of a record, as the user could 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>",
      "id": "<id>",
      "values": "<values>"
    },
    "name": "odoo_write"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe record's id.
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. active=false archives the record and active=true restores it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: nothing is persisted until the user opens the returned link and approves, draft=false bypasses that and requires a logged reason, and active=false archives instead of deleting. It also discloses the deferred upload_url path for long text/HTML/file values, which an agent could not infer from the schema alone.

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?

Four short sentences, front-loaded with the core action and ending on the actionable directive "Give them the link." The clause "as the user could on its form" is slightly awkward but useful framing; 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?

For a mutation tool with no output schema, it covers the key unknowns: the approval gate, how the link is returned and consumed, the upload indirection, and the archive sentinel. It does not address failure modes or permission requirements, 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 description coverage is 100% and the detailed value-type semantics (many2one ids, full many2many lists, date formats, upload sentinel) live in the schema itself. The prose contributes mainly the draft default and the "give them the link" obligation, so it sits at the baseline for a fully documented schema.

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: "Change fields of a record, as the user could on its form." Combined with the draft/approval workflow it is clearly an in-place update tool, distinguishable from odoo_create and odoo_browse, though no sibling is named explicitly.

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?

Gives clear operative guidance: changes are drafts by default, the link must be handed to the user, and draft=false saves immediately. The values description also routes agents to odoo_create for one2many lines. It stops short of an explicit when-not-to-use statement versus odoo_create for top-level records.

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