Repository navigation
API Reference parrot_tools.odoo.toolkit
OdooToolkit — exposes Odoo ERP operations as agent tools.
Composes an :class:~parrot_tools.odoo.transport.AbstractOdooTransport
(JSON-2 for Odoo 19+, XML-RPC for 14-18, or auto-detected) and turns
each public async method into a tool via :class:AbstractToolkit.
Inspired by:
-
pantalytics/odoo-mcp-pro— for the result-envelope pattern, the bulk CRUD layout and the binary upload helper. -
phenobarbital/flowtaskOdooInjector— for theimport_recordsupsert use case (Odoo'sloadwith external IDs).
Configuration falls back to the ODOO_* keys in :mod:parrot.conf when
constructor arguments are omitted.
Re-exported from parrot.interfaces.odoointerface.OdooAuthenticationError.
Re-exported from parrot.interfaces.odoointerface.OdooConnectionError.
Re-exported from parrot.interfaces.odoointerface.OdooError.
Re-exported from parrot.interfaces.odoointerface.OdooRPCError.
Toolkit exposing Odoo ERP CRUD + business helpers as agent tools.
Construction validates configuration via :class:OdooConfig but defers
all I/O to the first tool call, which authenticates lazily through
:meth:_pre_execute.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
str | None |
None |
Odoo base URL. Falls back to ODOO_URL. |
database |
str | None |
None |
Odoo database. Falls back to ODOO_DATABASE. |
username |
str | None |
None |
Odoo login. Falls back to ODOO_USERNAME. |
password |
str | None |
None |
Odoo password / API key. Falls back to ODOO_PASSWORD. |
timeout |
int | None |
None |
Request timeout (seconds). Falls back to ODOO_TIMEOUT. |
verify_ssl |
bool | None |
None |
Whether to verify SSL certificates. |
protocol |
Protocol |
'auto' |
'auto' (default), 'json2', 'jsonrpc', or 'xmlrpc'. |
transport |
AbstractOdooTransport | None |
None |
Pre-built transport (mainly for tests). When provided, protocol is ignored. |
**kwargs |
Any |
{} |
Forwarded to :class:AbstractToolkit. |
Attributes:
| Attribute | Type | Description |
|---|---|---|
confirming_tools |
frozenset |
|
protocol |
Protocol |
|
ALLOWED_AGGREGATORS |
frozenset[str] |
|
SAFE_DOMAIN_OPERATORS |
frozenset[str] |
Release the transport's session if any.
stop() -> None
cleanup() -> None
Return Odoo server version, transport, and connection status.
server_info() -> ServerInfoResult
Returns: ServerInfoResult
List the Odoo models the toolkit knows about with the user's ACLs.
list_models() -> ModelsResult
Returns: ModelsResult
Return the field definitions for an Odoo model.
fields_get(model: str, attributes: Optional[list[str]] = None) -> dict[str, Any]
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
attributes |
Optional[list[str]] |
None |
Returns: dict[str, Any]
Search records in any Odoo model with domain filters & pagination.
When fields is omitted, smart field selection automatically picks
the top 15 most LLM-useful fields for the model (avoiding binary blobs
and technical audit columns).
search_records(model: str, domain: Optional[list[Any]] = None, fields: Optional[list[str]] = None, limit: int = 100, offset: int = 0, order: Optional[str] = None) -> SearchResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
domain |
Optional[list[Any]] |
None |
|
fields |
Optional[list[str]] |
None |
|
limit |
int |
100 |
|
offset |
int |
0 |
|
order |
Optional[str] |
None |
Returns: SearchResult
Read a single record by id.
When fields is omitted, smart field selection automatically picks
the top 15 most LLM-useful fields for the model.
get_record(model: str, record_id: int, fields: Optional[list[str]] = None) -> RecordResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
record_id |
int |
||
fields |
Optional[list[str]] |
None |
Returns: RecordResult
Create one record and return the new id + a summary of the record.
create_record(model: str, values: dict[str, Any]) -> CreateResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
values |
dict[str, Any] |
Returns: CreateResult
Create multiple records in a single round-trip (max 1000).
create_records(model: str, vals_list: list[dict[str, Any]]) -> BulkCreateResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
vals_list |
list[dict[str, Any]] |
Returns: BulkCreateResult
Update a single record by id.
update_record(model: str, record_id: int, values: dict[str, Any]) -> UpdateResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
record_id |
int |
||
values |
dict[str, Any] |
Returns: UpdateResult
Apply the same patch to many records in one call (max 1000).
update_records(model: str, record_ids: list[int], values: dict[str, Any]) -> BulkUpdateResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
record_ids |
list[int] |
||
values |
dict[str, Any] |
Returns: BulkUpdateResult
Delete a single record by id.
delete_record(model: str, record_id: int) -> DeleteResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
record_id |
int |
Returns: DeleteResult
Delete multiple records in one call (max 1000).
delete_records(model: str, record_ids: list[int]) -> BulkDeleteResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
record_ids |
list[int] |
Returns: BulkDeleteResult
Idempotent upsert via Odoo's load (use 'id' field for external IDs).
This mirrors Odoo's CSV import semantics: rows whose external-id is already present are updated, new rows are created. Same operation Flowtask's OdooInjector relies on for ETL jobs.
import_records(model: str, fields: list[str], data: list[list[Any]], context: Optional[dict[str, Any]] = None) -> ImportResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
fields |
list[str] |
||
data |
list[list[Any]] |
||
context |
Optional[dict[str, Any]] |
None |
Returns: ImportResult
Search res.partner with friendly arguments and typed results.
find_partner(name: Optional[str] = None, email: Optional[str] = None, phone: Optional[str] = None, vat: Optional[str] = None, is_company: Optional[bool] = None, limit: int = 10) -> list[ResPartner]
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
Optional[str] |
None |
|
email |
Optional[str] |
None |
|
phone |
Optional[str] |
None |
|
vat |
Optional[str] |
None |
|
is_company |
Optional[bool] |
None |
|
limit |
int |
10 |
Returns: list[ResPartner]
Create a res.partner and return it as a typed model.
create_partner(name: str, is_company: bool = False, email: Optional[str] = None, phone: Optional[str] = None, mobile: Optional[str] = None, website: Optional[str] = None, street: Optional[str] = None, street2: Optional[str] = None, city: Optional[str] = None, zip: Optional[str] = None, state_id: Optional[int] = None, country_id: Optional[int] = None, parent_id: Optional[int] = None, vat: Optional[str] = None, ref: Optional[str] = None, customer_rank: Optional[int] = None, supplier_rank: Optional[int] = None, extra: Optional[dict[str, Any]] = None) -> ResPartner
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
||
is_company |
bool |
False |
|
email |
Optional[str] |
None |
|
phone |
Optional[str] |
None |
|
mobile |
Optional[str] |
None |
|
website |
Optional[str] |
None |
|
street |
Optional[str] |
None |
|
street2 |
Optional[str] |
None |
|
city |
Optional[str] |
None |
|
zip |
Optional[str] |
None |
|
state_id |
Optional[int] |
None |
|
country_id |
Optional[int] |
None |
|
parent_id |
Optional[int] |
None |
|
vat |
Optional[str] |
None |
|
ref |
Optional[str] |
None |
|
customer_rank |
Optional[int] |
None |
|
supplier_rank |
Optional[int] |
None |
|
extra |
Optional[dict[str, Any]] |
None |
Returns: ResPartner
Update contact / address fields on an existing partner.
update_partner_contact_info(partner_id: int, email: Optional[str] = None, phone: Optional[str] = None, mobile: Optional[str] = None, website: Optional[str] = None, street: Optional[str] = None, street2: Optional[str] = None, city: Optional[str] = None, zip: Optional[str] = None, state_id: Optional[int] = None, country_id: Optional[int] = None) -> ResPartner
| Parameter | Type | Default | Description |
|---|---|---|---|
partner_id |
int |
||
email |
Optional[str] |
None |
|
phone |
Optional[str] |
None |
|
mobile |
Optional[str] |
None |
|
website |
Optional[str] |
None |
|
street |
Optional[str] |
None |
|
street2 |
Optional[str] |
None |
|
city |
Optional[str] |
None |
|
zip |
Optional[str] |
None |
|
state_id |
Optional[int] |
None |
|
country_id |
Optional[int] |
None |
Returns: ResPartner
Create a draft sale.order (quotation) with one or more lines.
create_quotation(partner_id: int, order_lines: list[dict[str, Any]], date_order: Optional[str] = None, validity_date: Optional[str] = None, pricelist_id: Optional[int] = None, payment_term_id: Optional[int] = None, user_id: Optional[int] = None, team_id: Optional[int] = None, company_id: Optional[int] = None, client_order_ref: Optional[str] = None, extra: Optional[dict[str, Any]] = None) -> SaleOrder
| Parameter | Type | Default | Description |
|---|---|---|---|
partner_id |
int |
||
order_lines |
list[dict[str, Any]] |
||
date_order |
Optional[str] |
None |
|
validity_date |
Optional[str] |
None |
|
pricelist_id |
Optional[int] |
None |
|
payment_term_id |
Optional[int] |
None |
|
user_id |
Optional[int] |
None |
|
team_id |
Optional[int] |
None |
|
company_id |
Optional[int] |
None |
|
client_order_ref |
Optional[str] |
None |
|
extra |
Optional[dict[str, Any]] |
None |
Returns: SaleOrder
Confirm a draft quotation, transitioning it to the 'sale' state.
confirm_sale_order(sale_order_id: int) -> SaleOrder
| Parameter | Type | Default | Description |
|---|---|---|---|
sale_order_id |
int |
Returns: SaleOrder
Create a draft invoice / vendor bill on account.move.
create_invoice(partner_id: int, invoice_lines: list[dict[str, Any]], move_type: Literal['out_invoice', 'in_invoice', 'out_refund', 'in_refund'] = 'out_invoice', invoice_date: Optional[str] = None, invoice_date_due: Optional[str] = None, journal_id: Optional[int] = None, currency_id: Optional[int] = None, invoice_origin: Optional[str] = None, ref: Optional[str] = None, extra: Optional[dict[str, Any]] = None) -> AccountMove
| Parameter | Type | Default | Description |
|---|---|---|---|
partner_id |
int |
||
invoice_lines |
list[dict[str, Any]] |
||
move_type |
Literal['out_invoice', 'in_invoice', 'out_refund', 'in_refund'] |
'out_invoice' |
|
invoice_date |
Optional[str] |
None |
|
invoice_date_due |
Optional[str] |
None |
|
journal_id |
Optional[int] |
None |
|
currency_id |
Optional[int] |
None |
|
invoice_origin |
Optional[str] |
None |
|
ref |
Optional[str] |
None |
|
extra |
Optional[dict[str, Any]] |
None |
Returns: AccountMove
Post a draft invoice (Odoo 13+: action_post).
post_invoice(invoice_id: int) -> AccountMove
| Parameter | Type | Default | Description |
|---|---|---|---|
invoice_id |
int |
Returns: AccountMove
Register a payment on a posted invoice via account.payment.register.
Returns the dict of created account.payment records (keyed by id).
register_payment(invoice_id: int, journal_id: int, amount: Optional[float] = None, payment_date: Optional[str] = None, payment_method_line_id: Optional[int] = None, communication: Optional[str] = None) -> dict[str, Any]
| Parameter | Type | Default | Description |
|---|---|---|---|
invoice_id |
int |
||
journal_id |
int |
||
amount |
Optional[float] |
None |
|
payment_date |
Optional[str] |
None |
|
payment_method_line_id |
Optional[int] |
None |
|
communication |
Optional[str] |
None |
Returns: dict[str, Any]
Upload bytes (URL or base64 string) into a Binary/Image field.
set_binary_field(model: str, record_id: int, field_name: str, source: str) -> BinaryFieldResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
||
record_id |
int |
||
field_name |
str |
||
source |
str |
Returns: BinaryFieldResult
Create an ir.attachment linked to res_model/res_id.
attach_document(res_model: str, res_id: int, name: str, source: str, mimetype: Optional[str] = None, description: Optional[str] = None) -> BinaryFieldResult
| Parameter | Type | Default | Description |
|---|---|---|---|
res_model |
str |
||
res_id |
int |
||
name |
str |
||
source |
str |
||
mimetype |
Optional[str] |
None |
|
description |
Optional[str] |
None |
Returns: BinaryFieldResult
Group and aggregate records server-side using read_group (Odoo 16-18) or formatted_read_group (Odoo 19+).
aggregate_records(model: str, group_by: list[str], measures: Optional[list[str]] = None, domain: Optional[list[Any]] = None, lazy: bool = False, limit: Optional[int] = None, offset: int = 0, order: Optional[str] = None, having: Optional[list[Any]] = None) -> AggregateResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
Odoo model technical name (e.g. "sale.order"). |
|
group_by |
list[str] |
Fields to group by (e.g. ["state", "partner_id"]). Pass an empty list for a global aggregation with no grouping (e.g. counting or summing across all matching records). |
|
measures |
Optional[list[str]] |
None |
Aggregation specs as "field:agg" strings (e.g. ["amount_total:sum", "id:count"]). Supported aggregators: sum, avg, min, max, count, count_distinct. |
domain |
Optional[list[Any]] |
None |
Optional domain filter. |
lazy |
bool |
False |
When True, only the first group_by level is resolved. Honoured on Odoo 16-18 (read_group) only; Odoo 19+ formatted_read_group has no lazy mode and the flag is ignored (a debug log line records that). |
limit |
Optional[int] |
None |
Max number of groups to return. |
offset |
int |
0 |
Groups to skip. |
order |
Optional[str] |
None |
Sort order string. |
having |
Optional[list[Any]] |
None |
Optional domain over the aggregates, filtering groups after aggregation (e.g. [["__count", ">", 5]] or [["amount_total:sum", ">", 1000]]). Odoo 19+ only. |
Returns: AggregateResult — AggregateResult with groups list and metadata.
Raises:
-
ValueError— When an unsupported aggregator name is used, or when a non-emptyhavingis given and the server is not Odoo 19+.
Build and validate an Odoo domain array from structured conditions.
build_domain(conditions: list[dict[str, Any]], logical_operator: str = 'and') -> DomainBuildResult
| Parameter | Type | Default | Description |
|---|---|---|---|
conditions |
list[dict[str, Any]] |
List of condition dicts, each with keys field, operator, and value. An empty list returns an empty (match-all) domain. |
|
logical_operator |
str |
'and' |
"and" (default, uses & prefix) or "or" (uses | prefix). |
Returns: DomainBuildResult — DomainBuildResult with the domain array, warnings, and validity flag.
Return a comprehensive Odoo server and environment snapshot.
Includes server version, transport, database, user context, and the
list of installed modules (bounded by module_limit).
get_odoo_profile(include_modules: bool = True, module_limit: int = 100) -> OdooProfileResult
| Parameter | Type | Default | Description |
|---|---|---|---|
include_modules |
bool |
True |
When True (default), queries ir.module.module for the installed module list. |
module_limit |
int |
100 |
Maximum number of installed modules to return (capped at 500). |
Returns: OdooProfileResult — OdooProfileResult with version, transport, user context, and modules.
List Odoo models with optional field metadata.
schema_catalog(query: Optional[str] = None, models: Optional[list[str]] = None, include_fields: bool = False, limit: int = 50) -> SchemaCatalogResult
| Parameter | Type | Default | Description |
|---|---|---|---|
query |
Optional[str] |
None |
Substring to filter model names or display names. |
models |
Optional[list[str]] |
None |
Explicit list of model technical names to include. |
include_fields |
bool |
False |
When True, include fields_get metadata per model. Warning: each model's field metadata can be 50-200 KB; keep limit small (≤ 10) when using this option to avoid flooding the LLM context. |
limit |
int |
50 |
Maximum models to return (capped at 500). |
Returns: SchemaCatalogResult — SchemaCatalogResult with model list and metadata.
Inspect relational fields and produce create/write hints for a model.
inspect_model_relationships(model: str) -> ModelRelationshipsResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
Odoo model technical name (e.g. "sale.order"). |
Returns: ModelRelationshipsResult — ModelRelationshipsResult grouping fields by relation type with hints.
Diagnose ACL and record-rule visibility for a model and operation.
diagnose_access(model: str, operation: str = 'read', domain: Optional[list[Any]] = None, record_ids: Optional[list[int]] = None) -> AccessDiagnosisResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
Odoo model technical name. | |
operation |
str |
'read' |
Operation to check ("read", "write", "create", or "unlink"). |
domain |
Optional[list[Any]] |
None |
Optional domain to check against record rules. |
record_ids |
Optional[list[int]] |
None |
Specific record IDs to check visibility for. |
Returns: AccessDiagnosisResult — AccessDiagnosisResult with ACL status, record rules, groups, and a human-readable diagnosis string.
Return a runtime posture report without making any Odoo network call.
Reports toolkit version, transport type, connection status, and the number of registered tools.
health_check() -> HealthCheckResult
Returns: HealthCheckResult — HealthCheckResult with runtime posture information.
Search hr.employee records by name.
search_employee(name: str, limit: int = 20) -> list[HrEmployee]
| Parameter | Type | Default | Description |
|---|---|---|---|
name |
str |
Employee name (partial match, case-insensitive). | |
limit |
int |
20 |
Maximum employees to return (default 20). |
Returns: list[HrEmployee] — List of typed :class:HrEmployee instances.
Raises:
-
OdooRPCError— When the HR module is not installed on the target instance (caught and re-raised with a clear message).
Search hr.leave (leave requests) within a date range.
search_holidays(start_date: str, end_date: str, employee_id: Optional[int] = None) -> list[HrLeave]
| Parameter | Type | Default | Description |
|---|---|---|---|
start_date |
str |
Start of the date range (YYYY-MM-DD). |
|
end_date |
str |
End of the date range (YYYY-MM-DD). |
|
employee_id |
Optional[int] |
None |
Optional employee ID to filter results. |
Returns: list[HrLeave] — List of typed :class:HrLeave instances.
Raises:
-
OdooRPCError— When the HR module is not installed.
Preview and debug an execute_kw call without executing it.
Validates model name format, classifies method safety, checks transport compatibility, and flags Odoo 20 deprecation warnings.
diagnose_odoo_call(model: str, method: str, args: Optional[list[Any]] = None, kwargs: Optional[dict[str, Any]] = None, transport: str = 'auto', target_version: Optional[str] = None, observed_error: Optional[str] = None) -> OdooCallDiagnosisResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
Odoo model technical name to validate. | |
method |
str |
ORM method name to classify. | |
args |
Optional[list[Any]] |
None |
Positional arguments (for payload shape analysis). |
kwargs |
Optional[dict[str, Any]] |
None |
Keyword arguments (for payload shape analysis). |
transport |
str |
'auto' |
Transport type context for compatibility checks. |
target_version |
Optional[str] |
None |
Target Odoo version (e.g. "20.0"). |
observed_error |
Optional[str] |
None |
Error message from a previous failed call attempt. |
Returns: OdooCallDiagnosisResult — OdooCallDiagnosisResult with method safety, warnings, and next actions.
Translate XML-RPC-style call into a JSON-2 endpoint + named body.
generate_json2_payload(model: str, method: str, args: Optional[list[Any]] = None, kwargs: Optional[dict[str, Any]] = None, base_url: Optional[str] = None, database: Optional[str] = None) -> Json2PayloadResult
| Parameter | Type | Default | Description |
|---|---|---|---|
model |
str |
Odoo model technical name. | |
method |
str |
ORM method name. | |
args |
Optional[list[Any]] |
None |
Positional arguments (XML-RPC style list). |
kwargs |
Optional[dict[str, Any]] |
None |
Keyword arguments. |
base_url |
Optional[str] |
None |
Override base URL (defaults to toolkit config). |
database |
Optional[str] |
None |
Override database name (defaults to toolkit config). |
Returns: Json2PayloadResult — Json2PayloadResult with endpoint, headers, body, and notes.
Scan local Odoo addon directories for manifests and risky patterns.
Uses AST parsing — no addon code is imported or executed. The filesystem walk and AST parsing run in a thread pool to avoid blocking the event loop.
scan_addons_source(addons_paths: Optional[list[str]] = None, max_files: int = 200, max_file_bytes: int = 300000) -> AddonScanResult
| Parameter | Type | Default | Description |
|---|---|---|---|
addons_paths |
Optional[list[str]] |
None |
Directories to scan. Must be under the server's configured allowed roots (path-traversal protection). |
max_files |
int |
200 |
Maximum Python files to parse (default 200). |
max_file_bytes |
int |
300000 |
Maximum bytes per file (default 300 KB). |
Returns: AddonScanResult — AddonScanResult with discovered addons, model classes, risky methods, and any scan warnings.
Classify business requirements into fit/gap buckets.
fit_gap_report(requirements: list[dict[str, Any]], business_context: Optional[dict[str, Any]] = None) -> FitGapResult
| Parameter | Type | Default | Description |
|---|---|---|---|
requirements |
list[dict[str, Any]] |
List of requirement dicts. Each should have at least a "description" key with the requirement text. |
|
business_context |
Optional[dict[str, Any]] |
None |
Optional context metadata (industry, installed modules, etc.) to improve classification accuracy. |
Returns: FitGapResult — FitGapResult with classified requirements, bucket summary, and recommended follow-up Odoo calls. Classification buckets: - "standard" — covered by a built-in Odoo module - "configuration" — achievable via settings/workflow changes - "studio" — no-code customization (Odoo Studio) - "custom_module" — requires a bespoke addon - "avoid" — anti-pattern (raw SQL, ORM bypass, etc.) - "unknown" — cannot be classified with available context
Report expected modules, models, and live availability for a business pack.
business_pack_report(pack: str) -> BusinessPackResult
| Parameter | Type | Default | Description |
|---|---|---|---|
pack |
str |
Business pack name — one of "sales", "crm", "inventory", "accounting", or "hr". |
Returns: BusinessPackResult — BusinessPackResult with expected/installed/missing split.
Raises:
-
ValueError— When an unknown pack name is given.
Install (or upgrade) one or more Odoo modules via odoo-bin.
Uses odoo-bin -d <db> -i <modules> --stop-after-init (or -u
for upgrades). Requires the ODOO_BIN environment variable to
point to the binary. This tool is HITL-gated: confirmation is
required before execution.
odoo_shell_install_module(modules: list[str], database: Optional[str] = None, upgrade: bool = False) -> ShellResult
| Parameter | Type | Default | Description |
|---|---|---|---|
modules |
list[str] |
Technical module names to install, e.g. ['sale', 'stock']. |
|
database |
Optional[str] |
None |
Target database; defaults to ODOO_TEST_DATABASE. |
upgrade |
bool |
False |
When True, upgrade (-u) instead of install (-i). |
Returns: ShellResult — class:ShellResult with exit code, stdout, and stderr.
Upgrade one or more Odoo modules via odoo-bin -u.
Convenience wrapper around :meth:odoo_shell_install_module with
upgrade=True. Requires the ODOO_BIN environment variable.
This tool is HITL-gated: confirmation is required before execution.
Uses a dedicated :class:~parrot_tools.odoo.shell.OdooShellUpgradeInput
schema that omits the upgrade flag — this tool always upgrades,
and the LLM cannot accidentally set upgrade=False.
odoo_shell_upgrade_module(modules: list[str], database: Optional[str] = None) -> ShellResult
| Parameter | Type | Default | Description |
|---|---|---|---|
modules |
list[str] |
Technical module names to upgrade. | |
database |
Optional[str] |
None |
Target database; defaults to ODOO_TEST_DATABASE. |
Returns: ShellResult — class:ShellResult with exit code, stdout, and stderr.
Run a whitelisted odoo-bin subcommand.
Allowed subcommands: scaffold, populate, db, shell,
cloc, start. All other subcommands are rejected.
This tool is HITL-gated: confirmation is required before execution.
odoo_cli_command(subcommand: str, args: Optional[list[str]] = None, database: Optional[str] = None) -> ShellResult
| Parameter | Type | Default | Description |
|---|---|---|---|
subcommand |
str |
A whitelisted subcommand (see above). | |
args |
Optional[list[str]] |
None |
Additional positional arguments forwarded to the subcommand. |
database |
Optional[str] |
None |
Target database; defaults to ODOO_TEST_DATABASE. |
Returns: ShellResult — class:ShellResult with exit code, stdout, and stderr.
- 1. MCP Server — exposing tools as a service
- 2. A2A — exposing agents and orchestrators as services
- 3. Toolkits for third party services and Cloud Security composition
- 4. Interaction surface — WebSockets, audio, integrations
- 5. Hardening — anti prompt injection, PBAC and tool gating
- 6. Cross cutting concerns and reference deployment
- 7. AgentCrew — Sequential, Parallel, Flow and Loop execution
- 8. AgentsFlow — DAG first orchestration with per node FSM
- 9. Ontologic RAG — graph first retrieval, intent routing & multi tenant knowledge
- 10. Observability — OpenLIT + OpenTelemetry
- Class Catalog by Module
- Module level Functions Catalog
- AI Parrot — Exposure, Interoperability & Hardening Architecture
- Agent Mesh
- AgentService — Standalone Runtime for Autonomous Agents
- AbstractClient: The Provider Client Family
- Anthropic client
- Bedrock Mantle Client
- TypeSafe System One Client (
JevClient) - Meta Model API Client (Muse Spark)
- OpenAI Compatible Client Base (
OpenAIBaseClient) - Per Loop LLM Client Cache
- Question Token Budgets (Bedrock Converse, Nova text, Bedrock Mantle)
- Agent Configure Lifecycle
- AgentTalk Integration Guide
- Agent Configuration via
agents.yaml - AgentFactory HTTP API
- Agent Studio — API Reference
- Agent CLI Daemon (agentd)
- FirefliesInsightsAgent
- Follow up Suggestion Chips (FEAT 752)
- Agents and Chatbots: The Bot Class Hierarchy
- Agent Studio — database storage (host guide)
- Ephemeral User Agents — Frontend Integration Handoff
parrot agent— Agent Terminal Workspace- Crew Handler
- Database Agent
- Running the CVE Experts
- Domain Experts (FEAT 778)
- FEAT 437
- Technical Voice Guide (AgentTalk Voice) for Frontend
- AgentDashboard — A2UI v1.0 Technical Reference for
navigator frontend next - Semantic UI Model → Adaptive Cards (FEAT 303)
- Exposing an AI Parrot Agent as an MCP Server
- AgentCrew User Guide
- AgentsFlow User Guide
- Crew Definition Storage
- A2UI Agent Functions Runtime — the v1.0 RPC leg (FEAT 469)
- Capabilities of an AI Parrot Analytical Agent (PandasAgent)
- Agent Security Guardrails (FEAT 761)
- SpawnSubAgentTool
- Testagent
- Agentic End to End Testing (FEAT 581)
- Uiagent
- WebAgent — Browser Interaction via Chrome DevTools
- WebNavigatorAgent — Catalogued Web Navigation on Your Chrome Profile
- ExecutionMemory Integration Guide
- Agent Brain
- Agent Memory
- Conversation History Ownership
- Conversation Memory Subsystem Overview
- Dream Cycle — episodic → wiki brain consolidation
- Durable Conversation Memory
- Memory Dynamics
- Per Turn Conversation Compaction
- Recoverable Task Memory (FEAT 538)
- Task Memory — Phase 0 Integration Map (FEAT 538 / TASK 2970)
- User Memory
- Bookstore Agentic Retrieval
- Bookstore in Codex
- Bookstore Conceptual Relations — the book graph (FEAT 533)
- Bookstore notebooks
- Contracts catalog performance (FEAT 539, AC14)
- Contracts pilot acceptance — Bob's twelve cases (FEAT 539, AC15)
- Contracts Card & Ontology (FEAT 539)
- Luau parser resource policy (FEAT 532 TASK 2896)
- Glossary of Terms (FEAT 917)
- GraphIndex core seams (FEAT 540)
- GraphIndex — Structured Knowledge Graph Indexing
- Local Knowledge Base
- Procedure Graph — Assembly Manuals (FEAT 601)
- Ontology backend programme
- Ontology vocabulary store
- PageIndex Agentic Retrieval and Citations
- PageIndex Generation Publication
- PageIndex Layout Structure Builder
- PageIndex Local MCP Toolkit
- PageIndex Segment Store
- PageIndex Tree Optimizer
- PageIndex — Tree Based RAG for Document Retrieval
- ArxivTool for AI Parrot
- Accounting metrics layer
- Tool Result Compression Pipeline (FEAT 380)
- DatasetManager Implementation Walkthrough
- FredAPITool Documentation
- EmployeesTool Employee Hierarchy Tool for AI Parrot
- HoobaToolkit
- Jira text templates (JiraToolkit)
- Expose Toolkits as Local MCP (
parrot mcp local) - MultiStoreSearch Toolkit — Multi Origin Retrieval for Agents
- Supervised Obscura Browser Integration
- OdooHelpdeskToolkit — Softhealer helpdesk on Odoo 19
- OdooToolkit Capabilities
- QuerysourceToolkit
- ReadOnlyRepoToolkit (FEAT 484)
- PythonREPLTool Sandbox: Worker Process Execution Model
- Research Tools for Agents
- gVisor Installation Guide for AI Parrot Secure Sandbox
- SDD Sandbox — OS Setup
- Governed semantic layer
- Tool optimizations for Claude Code and Codex (FEAT 543)
- AbstractTool Clone Method
- Toolbar API Documentation
- AudioNoteCaptureToolkit
- ExecutionPlanToolkit — Reference
- Host toolkits for Agent Studio
- Infographic Authoring for Data Agents (FEAT 326)
- InfographicToolkit — Reference
- Tool System Internals: Tools, Toolkits and ToolManager
- AI Parrot Tools Documentation
- What If Scenario Analysis
- Workday worker history
- DecisionFlowNode Usage Guide
- Multi Agent Orchestration: AgentCrew and AgentsFlow
- Docker Tool Executor & Execution Policy
- Generic Gate Host
- HeartbeatManager — Per Agent Autonomous Heartbeat Loop
- JobManager
- Node Types Reference
- OrchestratorAgent — Multi Party Conferencing (
confer) - Planogram compliance cycle (perceive → identify → compare)
- Planogram compliance — migrating configurations to the new cycle (FEAT 574, FEAT 612)
- Planogram perception spike — FEAT 574
- Scheduler backends in multi worker deployments
- Thales User Guide
- Per tenant skills (FEAT 707)
- Skill routing and trigger caching
- Skills system: discovery, toolkits and mixin
- Contextual Embedding Headers
- DocumentDB Usage Patterns
- DocumentDB Interface Guide
- DynamoDB Local (docker compose)
- Fully offline local agent with LanceDB (FEAT 542)
- LanceDB vector, full text and hybrid store (FEAT 542)
- Loader Metadata Standard
- Document Loaders for RAG
- Matryoshka Embedding Truncation
- Parent Child Retrieval (Small to Big)
- Storage Backends Guide
- User stores (Redis by default)
- Vector Stores and Embeddings Reference
- Vector Store Handler — API Reference
- A2A Secure Communication Demo
- Agent as a Local MCP Server (parrot toolkits install agent)
- add repository:
- GitHub MCP Installation and Usage
- MCP integration: client, server and agent tools
- Create and configure agent
- Roost — local inter agent sub protocol
- Roost carriers
- Roost performatives, protocols and obligations
- Simple Mcp Server
- SimpleMCPServer Configuration
- API Endpoints Reference
- Admin UI (FEAT 468)
- Infographic Render Endpoint — Reference
- EventBus v2 Configuration Reference (
[bus]/[bus.alerts]) - EventBus v2 Migration Notes (FEAT 310)
- EventBus v2 — Unified Event Fabric (FEAT 310)
- Session file store
- A2UI Dashboard + Widget Renderer — Frontend Build Guide
- Avatar Technical Guide (LiveAvatar Phase A) for Frontend
- Frontend Guide for SvelteKit: LiveAvatar FULL Mode and VoiceBot (FEAT 248)
- DEPRECATED: Native Voice Avatar (LiveAvatar Phase C) Technical Guide for Frontend
- Technical Guide to Structured Artifacts for Frontend
- VoiceBot · VoiceChatHandler · FEAT 245 — Frontend Guide for Realtime Conversation with Agents
- Server Layer: BotManager and HTTP Handlers
- Infographic Handler — Frontend API Contract
- Interactive Artifacts — Frontend API Contract
- Google Drive file manager
- SharePoint & OneDrive file managers
- WhatsApp Integration Implementation Summary
- WhatsApp Integration for AI Parrot
- P3 — parrot admin ui inventory (canvases / A2UI / infographic / builders)
- WhatsApp + AutonomousOrchestrator Integration
- Audio Form Voice Modes — Developer Guide
- Who owns an OAuth2 (3LO) credential
- CommCenter — Bulk Notification Sender (FEAT 417)
- FormDesigner → MS Teams: Adaptive Card renderer and bot submit path (FEAT 551)
- GitHub reviewer
- Google OAuth 2.0 — AI Parrot Integration
- Fireflies Agent Examples
- HITL Tool Call Confirmation (FEAT 235)
- Teams HITL Channel Setup Guide (FEAT 205)
- JiraSpecialist Prompt Layer Stack
- JiraSpecialist — Daily Standup Lanes
- Jira Transition Actions — Activating
TRIGGER_AGENTDispatch - Jupyter Output Mode Documentation
- Knowledge upload from chat (FEAT 647)
- LiveAvatar over your own LiveKit (Cloud or self hosted)
- Matrix Bridges for the AI Parrot Swarm (FEAT 463)
- Matrix Clients for the AI Parrot Swarm (FEAT 463)
- Migration Guide: FEAT 202 — ai parrot integrations
- Connections on Microsoft Teams
- MS Teams Toolkit for AI Parrot
- Nova Sonic Voice Protocol Reference
- Office 365 OAuth 2.0 (Delegated) — AI Parrot Integration
- PR Review Command — Setup Guide
- Queued chat commands
- Runbook — the
issuesnamespace (Jira ticket corpus) - Dev loop kick off from Slack (FEAT 555)
- Telegram Auth Open Mode (webview | browser)
- Telegram connections
- Telegram Bot Integration Guide
- FEAT 536 — VoiceBot Nova Dual Output + LiveAvatar: Real Live Operational Acceptance
- FEAT 537 — Nova VoiceBot avatar broadcast: operational acceptance
- FEAT 537 — Nova PCM → LiveAvatar LITE → LiveKit multi subscriber live gate
- speech_report TTS backends
- Nova VoiceBot avatar broadcast for multiple browsers (FEAT 537)
- 🦜 AI Parrot Voice Chat
- WhisperX Setup Guide for AI Parrot
- A2UI Linked Surfaces (FEAT 598)
- A2UI v1.0 Wire (FEAT 470)
- === D3.js ===
- Backend HTML Design System (FEAT 493)
- FEAT 488
- FormDesigner Audio Renderer
- Form Designer — Autonomous FormSchema Persistence (Standalone Forms)
- Form Designer — Conditional Sections: Pre/Post Dependencies
- FormBuilder — LLM answer plausibility enforcement
- FormDesigner — orphan upload cleanup (FEAT 731)
- FormDesigner — public response controls
- Form Designer — Relational Fields
- Serving FormDesigner forms from a Teams agent
- Form Designer — Unknown Field Capture Policy for Form Submissions
- FormDesigner — validation audit trail
- Infographic Recipes (FEAT 324)
- Inline A2UI Component Routing (FEAT 755)
- Metric Definition Registry (FEAT 756)
- Smart OutputFormatter Documentation
- N4 — navigator api backend inventory (dashboards / widgets / templates / modules / programs)
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens)
- P2 — ai parrot (Python) UI components, models, renderers, persistence — inventory for a REPORT BUILDER
- P4 — ai parrot prior art for a Report Builder (SDD inventory)
- ai parrot server — Admin / Bots / Studio / misc endpoint inventory
- P1 — ai parrot HTTP/WS endpoint inventory (report builder lens) ( core)
- parrot formdesigner — HTTP/WS endpoint inventory
- Report Builder — ai parrot inventory and analysis
- WeasyPrint 69.0 CSS Support — Empirical Findings
- Identity Capability User Guide
- Layers Reference
- Output Language (FEAT 638)
- PromptBuilder — User Modifiable Variables
- PromptBuilder User Guide
- Delegated OAuth2 connections
- Delegated OAuth2 connections on the web channel — deployment recipe and live harness
- Deterministic Groundedness Scoring
- ONNX Backend for the Prompt Injection Guardrail (FEAT 439)
- PBAC Guardrails — Policy Driven Tool Call Denial (FEAT 406)
- SecurityAdvisor — SOC2 Oriented Read Only Advisory Agent
- User Profile Management
- AI Parrot MCP Server AWS Deployment Guide
- Bot Cleanup Lifecycle
- Business Automation — Operator Runbook
parrot loginand connections- CompanyInfoToolkit
- Per component and per agent LLM defaults (FEAT 796, FEAT 882)
- Answer Accuracy Metrics for the Evaluation Harness (FEAT 652)
- Infographic CSP and Signed URLs — Operations Guide
- Global install: the parrot managed runtime (reference)
- Runbook — the Fireflies Meeting Registry
- Wiki standup briefs — runbook
parrot.finance— the finance satellite- Migration — FEAT 201: ai parrot embeddings
- Migration — FEAT 203: ai parrot server
- FEAT 223 — Structured Artifact Contract: Migration Guide
- FEAT 273 — Legacy output mode deprecations → A2UI
- Migration — FEAT 315: Unified NovaClient for all Amazon Nova models
- Migration — FEAT 421: Client declared tenant in the forms URL
- Migration — FEAT 446: SaaS Auth Hardening (S0 of Parrot Research Cloud)
- Migration — FEAT 473: A2UI v1.0 for STRUCTURED_CHART / STRUCTURED_TABLE / STRUCTURED_MAP
- Migration — FEAT 523: PEP 420 LLM Client Extraction
- Gemini 2.5 retirement (FEAT 798)
- Migration — FEAT 564: Reliable video reels with Gemini Omni and Veo 3.1
- Native Claude sandbox for SDD sessions (FEAT 768)
- Complementary (collaborative) research partner (FEAT 482)
- Dev flow per seat LLM configuration (
DevFlowModelPlan) - Dev loop
novabackend (AWS Bedrock) - sdd worker as orchestrator of parallel sdd coder seats (FEAT 549)
- SDD compaction capability record
- SDD execution optimization — operation and rollout
- Proposals to Reduce SDD Execution Time
- Dev flow / dev loop telemetry accounting
- Language Agnostic Validation Runners (FEAT 709)
- Spec Driven Development in Google Gemini / Antigravity CLI
- Guide to using the SDD slash commands
- AI Parrot Spec Driven Development (SDD) Platform
- SDD on Google Antigravity (agy)
/sdd donecloseout hooks- Decision Audit (FEAT 784)
- SDD experience memory
- SDD Expert Consult
- Ledger outbox (FEAT 758)
- FEAT 580 LSP Pilot — Live Evaluation Results
- SDD LSP research pilot (FEAT 580)
- Necessity Ladder (FEAT 908)
- Procedure Graph
- Test selection in the SDD flow — the Validation Contract (FEAT 699)
- wikitoolkit Cheatsheet
- wikitoolkit inbox
- wikitoolkit lint
- LLM Wiki — an agent maintained knowledge repository
- Schema Plane — Operator Guide (FEAT 600)
- SQLite concurrency for wiki and ledger
- wikitoolkit standup
- WikiToolkit as Claude Code infrastructure
- Authentication uses Navigator Auth
- AbstractClient base changes require a decision
- Clients are memory less
- Configuration uses NavConfig
- Graph backends — retire ArangoDB for PostgreSQL + SurrealDB
- Conversation history has one writer
- HTTP stack uses aiohttp
- LangChain is not part of the stack
- Async code remains non blocking
- Concrete tools live in ai parrot tools