Skip to main content
Glama

ai_pipeline_step_execute

Execute a named AI pipeline step in Odoo to process a record, update context with computed fields, and return results.

Instructions

Execute a single ai.pipeline.step by name via Odoo RPC. Looks up the step in Odoo by name, builds a ctx from the supplied parameters, calls env[step.model].step.method(ctx), and returns the updated ctx (with composite_fields populated by the step). Use ai_pipeline_steps_list to discover available step names.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connectionNodefault
step_nameYesThe step 'name' field in Odoo (e.g. 'resolve_partner_bg', 'post_vendor_bill_bg').
source_modelYesOdoo model of the triggering record (e.g. 'account.move').
source_idYesDatabase ID of the source record.
composite_fieldsNoctx['composite_fields'] dict — pass extracted invoice fields: partner_vat, partner_name, partner_eik, invoice_date, ref, amount_total, lines, etc.
extra_ctxNoAdditional top-level ctx keys merged before executing the step.
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It fully discloses the internal mechanism: lookup, context building, method call, and return of updated ctx. It also notes that composite_fields are populated by the step. While it does not detail potential side effects, the explanation is transparent about the 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?

The description is very concise: two sentences with no unnecessary words. The first sentence states the core purpose, the second explains the process and includes a useful hint to a sibling tool. Front-loaded and efficient.

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?

Given 6 parameters (3 required) and no output schema, the description adequately explains the process and return value. It references the sibling tool for step discovery. It does not cover error handling or prerequisites like connection, but overall it is complete for an execution 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 description coverage is 83%, so the baseline is 3. The description does not add significant new information beyond what is in the schema for parameters. It mentions the return value (updated ctx with populated composite_fields) but that relates to output, not parameters.

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?

The description clearly states the action ('Execute a single ai.pipeline.step'), the resource ('by name via Odoo RPC'), and outlines the internal process. It distinguishes itself from sibling tools like ai_pipeline_steps_list by explicitly referencing it for discovering step names.

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?

The description advises using ai_pipeline_steps_list to discover step names before execution, providing clear guidance. However, it does not mention when to use ai_pipeline_run instead (batch vs single step), which is a minor omission.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rosenvladimirov/odoo-claude-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server