Skip to main content
Glama
odoo19-mcp-server

odoo19-mcp-server

by twtrubiks

Execute Method

execute_method
Destructive

Execute any method on an Odoo model to handle custom operations or business logic not covered by standard CRUD tools; verify state-changing calls first.

Instructions

Execute any method on an Odoo model (general-purpose escape hatch).

WARNING: Business methods (e.g. action_confirm, action_post, button_validate, toggle_active) can modify or irreversibly change data in Odoo and are NOT guarded by this server. Before calling any method that changes state, make sure the user explicitly asked for it.

Input Schema

NameRequiredDescriptionDefault
argsNoPositional arguments for the method
modelYesModel name (e.g., 'res.partner')
kwargsNoKeyword arguments for the method
methodYesMethod name to execute

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / args / description
      Added value: +"Positional arguments for the method"
    • addedInput schema / properties / kwargs / description
      Added value: +"Keyword arguments for the method"
    • addedInput schema / properties / method / description
      Added value: +"Method name to execute"
    • addedInput schema / properties / model / description
      Added value: +"Model name (e.g., 'res.partner')"
  2. First observedv1.0.0

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the destructiveHint=true annotation by naming concrete dangerous methods (action_confirm, action_post, button_validate, toggle_active), disclosing that state changes can be irreversible, and warning explicitly that the server does NOT guard these calls. That is exactly the context an agent needs beyond structured fields.

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?

Purpose is front-loaded in the first sentence, followed immediately by the safety warning. No filler; every sentence carries weight for a dangerous tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and destructiveHint covers the safety profile. Combined with the explicit warning about unguarded business methods, an agent has everything needed to decide whether and how to call this.

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%, so model, method, args, and kwargs are already documented in the schema. The description adds no format, ordering, or shape guidance for args/kwargs, so the baseline 3 applies.

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 (execute) and resource (method on an Odoo model) and self-classifies as a 'general-purpose escape hatch,' which cleanly distinguishes it from the CRUD-specific siblings like create_record, update_record, and delete_record.

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?

Provides a clear precondition: 'Before calling any method that changes state, make sure the user explicitly asked for it.' This gives real when-to-use guidance, but it never routes the agent to the dedicated siblings (e.g. use update_record for standard writes) or states when this escape hatch is appropriate for reads.

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