odoo-mcp-gateway
v0.1.1Security-first MCP gateway for Odoo 17/18/19 — YAML-driven security, 27 tools
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
login
Authenticate with Odoo. Methods: 'api_key', 'password', or 'session'.
| Parameter | Type | Description |
|---|---|---|
credential * | string | |
method * | string | |
database | string | |
username | string |
list_models
List available Odoo models. Optionally filter by keyword.
| Parameter | Type | Description |
|---|---|---|
filter | string | |
include_custom | boolean |
get_model_fields
Get field definitions for an Odoo model.
| Parameter | Type | Description |
|---|---|---|
model * | string | |
field_filter | string | |
include_readonly | boolean |
search_read
Search and read records from any Odoo model.
| Parameter | Type | Description |
|---|---|---|
model * | string | |
domain | ||
fields | ||
limit | integer | |
offset | integer | |
order |
get_record
Read a single record by ID from any Odoo model.
| Parameter | Type | Description |
|---|---|---|
model * | string | |
record_id * | integer | |
fields |
search_count
Count records matching a domain in an Odoo model.
| Parameter | Type | Description |
|---|---|---|
model * | string | |
domain |
create_record
Create a new record in an Odoo model.
| Parameter | Type | Description |
|---|---|---|
model * | string | |
values * | object |
update_record
Update an existing record in an Odoo model.
| Parameter | Type | Description |
|---|---|---|
model * | string | |
record_id * | integer | |
values * | object |
delete_record
Delete a record from an Odoo model.
| Parameter | Type | Description |
|---|---|---|
model * | string | |
record_id * | integer |
read_group
Read grouped/aggregated data from an Odoo model.
| Parameter | Type | Description |
|---|---|---|
fields * | array | |
groupby * | array | |
model * | string | |
domain | ||
limit | ||
orderby |
execute_method
Execute a method on an Odoo model.
| Parameter | Type | Description |
|---|---|---|
method * | string | |
model * | string | |
args | ||
kwargs | ||
record_ids |
check_in
Record attendance check-in for the current user. Finds the employee linked to the current user and creates an attendance record with check_in set to now.
check_out
Record attendance check-out for the current user. Finds the open attendance record and sets check_out to now.
get_my_attendance
Get attendance records for the current user. Args: limit: Max records to return (default 10) month: Filter by month (YYYY-MM format, optional)
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
month |
get_my_leaves
Get leave requests for the current user. Args: state: Filter by state (draft, confirm, validate, refuse) limit: Max records (default 20)
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
state |
request_leave
Submit a leave request. Args: leave_type_id: Leave type ID (e.g. annual leave, sick leave) date_from: Start date (YYYY-MM-DD) date_to: End date (YYYY-MM-DD) reason: Optional description
| Parameter | Type | Description |
|---|---|---|
date_from * | string | |
date_to * | string | |
leave_type_id * | integer | |
reason | string |
get_my_profile
Get the current user's employee profile.
get_my_quotations
Get quotations/orders where the current user is the salesperson. Args: state: Filter by state (draft, sent, sale, done, cancel) limit: Max records (default 20)
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
state |
get_order_details
Get full order details with lines, totals, and partner info. Args: order_id: The sale order ID
| Parameter | Type | Description |
|---|---|---|
order_id * | integer |
confirm_order
Confirm a quotation, turning it into a sale order. Args: order_id: The sale order ID to confirm (must be in draft/sent state)
| Parameter | Type | Description |
|---|---|---|
order_id * | integer |
get_sales_summary
Get aggregated sales stats for the current user. Returns counts by state, totals by month, and top customers. Args: period: Filter period (YYYY-MM format, optional). If omitted, returns all-time stats.
| Parameter | Type | Description |
|---|---|---|
period |
get_my_tasks
Get tasks assigned to the current user. Args: state: Filter by task state (e.g. 01_in_progress, 1_done) project_id: Filter by project ID limit: Max records (default 20)
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
project_id | ||
state |
get_project_summary
Get project stats: task counts by stage, overdue, recent activity. Args: project_id: The project ID to summarize
| Parameter | Type | Description |
|---|---|---|
project_id * | integer |
update_task_stage
Move a task to a different stage. Args: task_id: The task ID to update stage_id: The target stage ID
| Parameter | Type | Description |
|---|---|---|
stage_id * | integer | |
task_id * | integer |
get_my_tickets
Get helpdesk tickets assigned to the current user. Args: state: Filter by stage name (optional) priority: Filter by priority (0=Low, 1=Medium, 2=High, 3=Urgent) limit: Max records (default 20)
| Parameter | Type | Description |
|---|---|---|
limit | integer | |
priority | ||
state |
create_ticket
Create a new helpdesk ticket. Args: name: Ticket subject/title description: Detailed description team_id: Helpdesk team ID (optional) priority: Priority level (0=Low, 1=Medium, 2=High, 3=Urgent)
| Parameter | Type | Description |
|---|---|---|
name * | string | |
description | string | |
priority | string | |
team_id |
update_ticket_stage
Move a helpdesk ticket to a different stage. Args: ticket_id: The ticket ID to update stage_id: The target stage ID
| Parameter | Type | Description |
|---|---|---|
stage_id * | integer | |
ticket_id * | integer |