Skip to main content
Glama

execute_odoo_shell

Run Python code in the Odoo shell to automate tasks, debug modules, or inspect data directly from your Odoo.sh instance.

Instructions

Execute Python code in the Odoo shell environment

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
python_codeYesPython code to execute in Odoo shell

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior1/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses only the bare action and says nothing about side effects, permissions, sandbox boundaries, irreversibility, or whether executed code can mutate Odoo data. For arbitrary code execution this is a critical omission.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single front-loaded sentence with no filler, which is structurally clean. However, for a high-risk code execution tool this conciseness crosses into under-specification rather than optimal brevity.

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

Completeness2/5

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

There is no output schema and no annotations. For an arbitrary Python execution tool in Odoo, the description omits return behavior, mutation potential, environment context, permissions, and safety boundaries. It provides only the bare action, leaving the agent without enough context to invoke it safely or predictably.

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 single parameter 'python_code' is already documented in the schema. The description adds no syntax, formatting, or constraint details beyond what the schema provides, so the baseline of 3 is appropriate.

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: 'Execute Python code in the Odoo shell environment'. The operation is unambiguous and distinguishable from the sibling tools, none of which execute arbitrary Python. It does not explicitly contrast with alternatives, but none exist in the sibling list.

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

Usage Guidelines2/5

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

No when-to-use, when-not-to-use, prerequisites, or alternative guidance is provided. Usage is only implied by the tool name and the phrase 'Odoo shell environment'. An agent receives no routing criteria.

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