Skip to main content
Glama
odoo-safe-mcp
by makelele29

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ODOO_DBYesOdoo database name
ODOO_URLYesURL of your Odoo instance, e.g. https://your-company.odoo.com
ODOO_API_KEYYesOdoo user API key used to connect to Odoo
ODOO_DRY_RUNNoSet to true to test and simulate YELLOW and RED policies locally with zero risk to your database.false
ODOO_USERNAMEYesOdoo username/email for the AI bot user
ODOO_SAFE_GUARD_KEYNoOptional Pro license key for guarded write access. Without it, the server runs in Strict Read-Only Mode.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

Secure gateway to Odoo ERP. Prefer odoo_search / odoo_read / odoo_count / odoo_aggregate for questions and odoo_describe_model(model, search=...) before writing (especially to find x_* Studio fields). Writes go through odoo_execute_kw: drafts may run immediately, critical operations wait for human approval (check pending items anytime with odoo_pending_approvals and execute them with odoo_approval_status). Always pass a short, honest 'justification' for writes: the approver sees it next to the real change.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": false
}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
odoo_searchA

Search Odoo records and return their fields (search_read). Read-only.

Args: model: Technical model, e.g. 'res.partner', 'sale.order', 'account.move'. domain: Odoo domain, e.g. [["state", "=", "sale"], ["amount_total", ">", 1000]]. fields: Fields to return. Use odoo_describe_model to discover them; defaults to a lightweight profile on common models. limit: Max records (default 20, max 200). offset: Records to skip, for pagination. order: Sort, e.g. 'date_order desc'. all_fields: Set True only when you explicitly need all fields outside the lightweight default profile.

odoo_readB

Read specific Odoo records by id. Read-only.

odoo_countC

Count Odoo records matching a domain. Read-only.

odoo_aggregateA

Aggregate records (read_group): totals and counts grouped by fields. Read-only.

Example: model='sale.order', groupby=['state'], fields=['amount_total:sum'].

odoo_describe_modelA

Describe a model's fields (label, type, relation, required, readonly). Use before writing.

Pass search (e.g. 'x_' or 'iban') to filter matching technical names or labels, or include_readonly=False to show only writable fields.

odoo_list_modelsB

List installed business models (technical name and label), optionally filtered by text. Read-only.

odoo_execute_kwA

Safely execute any Odoo ORM method (execute_kw) through the firewall.

Reads run immediately. Draft creations (sale.order, purchase.order, crm.lead) run under the guarded-draft policy. Critical operations (write, unlink, confirm, post...) wait for a human approval on Slack/Teams and are executed here only after a signed decision.

Args: model: Odoo technical model name (e.g. 'sale.order', 'res.partner', 'account.move'). method: ORM method name (e.g. 'search_read', 'create', 'write', 'action_confirm'). args: Positional arguments (domains, record ids, value dictionaries). kwargs: Keyword arguments (e.g. {'fields': ['name'], 'limit': 10}). justification: One honest sentence on why (shown to the approver, marked as unverified).

odoo_approval_statusA

Check a write that is waiting for human approval. If it has been approved, it is executed now (once) and the result is returned. If rejected or expired, nothing is changed in Odoo.

odoo_pending_approvalsA

List critical Odoo changes proposed from this machine that have not been executed yet.

Useful when resuming in a new chat after a human approved an operation in Slack, Teams, Telegram, or web.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A3.5/5.0

Scored across 9 tools

Disambiguation4/5

Most tools target distinct operations: model discovery (list_models, describe_model), record reads (search, read, count, aggregate), and the approval lifecycle (pending_approvals, approval_status). Minor overlap remains since odoo_count is essentially odoo_aggregate without groupby, and odoo_execute_kw can replicate every read tool (search_read, read, read_group), so an agent could hesitate between the convenience wrapper and the generic escape hatch. Descriptions largely resolve this by framing execute_kw as the approval-gated write path and the others as read-only shortcuts.

Naming Consistency4/5

All names share a consistent odoo_ prefix and snake_case, which makes the set predictable. The verb pattern is mostly verb_noun (describe_model, list_models, execute_kw, approval_status), but pending_approvals is a bare noun phrase and execute_kw carries an odd 'kw' suffix, slightly breaking the pattern.

Tool Count5/5

Nine tools is well within the sweet spot and each earns its place: four discovery/read helpers, two aggregation helpers, two approval-lifecycle tools, and one guarded write path. Nothing feels redundant enough to remove, and the surface is not padded with near-duplicates.

Completeness4/5

The read side is complete (list models, describe schema, search, read by id, count, aggregate) and the write side is intentionally funneled through execute_kw with human approval, so core lifecycle coverage exists. Gaps are minor: there is no way to explicitly reject/cancel a pending approval, no method-discovery helper to know what execute_kw can call, and no binary/attachment handling.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues