Skip to main content
Glama

MCP for Claude & ChatGPT

Duplicate records

odoo_copy

Duplicate an existing Odoo record, optionally overriding fields on the new copy. The model must be on the workspace's write whitelist with can_create=true. Returns the ID of the newly created record.

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

Input Schema

NameRequiredDescriptionDefault
idYesID of the record to duplicate.
modelYesOdoo model technical name.
contextNoOptional Odoo context.
defaultsNoOptional field overrides for the new record.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=false, so safety is covered; the description goes beyond them with the write-whitelist/can_create gating requirement and the return value. It stops short of saying what actually gets copied (attachments, messages, relational lines), which matters for a duplicate operation.

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 precondition, then the return value. Nothing redundant and nothing buried.

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 no output schema, stating that it returns the new record ID fills a real gap, and the permission prerequisite is called out. Missing is any note on copy depth or on what happens to fields not overridden, which is the main remaining ambiguity for a duplication tool.

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 all four parameters, making 3 the baseline. The phrase 'optionally overriding fields on the new copy' usefully reinforces what `defaults` does, but adds no format or scoping detail beyond the 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?

A specific verb (duplicate) plus resource (Odoo record) and an explicit statement of the optional field-override behavior. It implicitly separates itself from odoo_create by copying an existing record instead of building a new one, though it never names a sibling.

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 a prerequisite (model must be on the write whitelist with can_create=true) but never says when to prefer this over odoo_create or odoo_write, nor any case where duplication should be avoided. Usage is only implied by the word 'duplicate'.

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.