Odoo instance logs
hodiploy_get_logskind="activity" (default): the instance's history of deploys, restarts, updates, backups and copies, newest first, with errors; each entry says who did it ("by": "Hodi support", the person's e-mail, or "system") and how ("via": ui, mcp for an AI assistant, whmcs, script or system). kind="odoo": the Odoo server log (administrators only on a production instance), optionally since a time window ("30m", "2h", "1d"), from a minimum level, and with group=true identical records merged with a count and first/last time (a storm of the same error becomes one line). With a level, the WHOLE window (since, else since Odoo started) is searched on the server; without one, only the last lines lines are read, and covers_from says how far back that went: never conclude "no error in the last 24h" from an unfiltered read. To check for errors, pass level="warning" (or "error"), since and group=true. Secrets are masked.
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": {
"instance_id": "<instance_id>"
},
"name": "hodiploy_get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | activity | |
| group | No | kind="odoo": merge identical records, most frequent first. | |
| level | No | kind="odoo": minimum level kept. | |
| lines | No | kind="odoo": without level, the last lines read; with level, the most recent matching lines kept (ignored with group=true, which counts the whole window). | |
| since | No | kind="odoo": only records from this window, e.g. "30m", "2h", "1d". | |
| service_id | No | Hodiploy service id from hodiploy_list_instances. Optional when the user has a single Hodiploy service. | |
| instance_id | Yes | Instance id from hodiploy_list_instances. |