Skip to main content
Glama
AdvaMCP for Odoo

AdvaMCP for Odoo

odoo_diagnose

odoo_diagnose
Read-onlyIdempotent

Explains Odoo behavior from code facts: why a field computes or writes, what a method or button does, where an error comes from, and why a record cannot open due to access rules.

Instructions

Explain how Odoo behaves, as facts read from its code: what a field computes or which methods write it, what a method or a button does (who it adds as followers, what it writes or creates, the errors it raises and when, what it calls, the action it opens), where an error message comes from, and why the user cannot open a record. focus.kind: record (model + context.record_id: its values, or the layer that refuses it: an access right, an access rule by name, or an MCP check), field (model + field), method (model + method), error (error_message: searched in the Python of installed modules, server actions, views and the JavaScript the app loads), explore (models + fields and/or methods). focus.element: a button label as shown (e.g. "Confirm") or its technical name, resolved from the form as the user sees it and its Action menu. context.include: "access" lists the accesses of the model with their groups and filters; "views" lists the form buttons. Facts of methods with a security-sensitive name read "hidden". A wrong field or method name returns the closest names.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "focus": "<focus>"
    },
    "name": "odoo_diagnose"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNoHow deep to follow the methods a method calls.
focusYes
contextNo
questionNoThe user's question, kept for the log.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description does add real behavioral context beyond them: security-sensitive method facts read "hidden," near-miss names return the closest matches, error_message must be 8+ characters, and depth caps recursion following. However it says nothing about output shape, cost, or runtime of a deep trace.

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

Conciseness2/5

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

The content is dense and mostly earns its place, but it is delivered as one sprawling run-on string with semicolon-chained clauses and inconsistent casing, so it is hard to scan and the routing information is buried mid-sentence. Front-loading the primary purpose and breaking the kind-by-kind guidance into discrete statements would materially improve call accuracy.

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?

For a complex, deeply nested diagnostic tool with no output schema, the description covers the main paths: what each kind diagnoses, how button labels are resolved, what include adds, and the recursion depth control. Only the return payload structure and trace cost are left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 50% with nested objects, yet the description compensates well: it explains what each focus.kind requires (model + context.record_id, model + field, model + method, error_message, explore using models/fields/methods), what focus.element accepts, and what context.include values ("access", "views") actually return. It adds meaning beyond the schema, notably the search surface for error_message (Python of installed modules, server actions, views, loaded JavaScript).

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: "Explain how Odoo behaves, as facts read from its code," then enumerates the concrete question types it answers (what a field computes, what a method writes, where an error comes from, why a record cannot be opened). This clearly separates it from the CRUD siblings (odoo_create/odoo_write/odoo_browse) by being an explanatory read, though it never names an alternative explicitly.

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 focus.kind enumeration doubles as routing guidance: record for access/refusal questions, field for computed fields, method for behavior, error for message-origin searches, explore for discovery across models/fields/methods. That is clear per-mode context, but there is no when-not guidance and no statement of when to prefer odoo_browse or a sibling over diagnosing.

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