odoo_diagnose
odoo_diagnoseExplains 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
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How deep to follow the methods a method calls. | |
| focus | Yes | ||
| context | No | ||
| question | No | The user's question, kept for the log. |