Skip to main content
Glama

Odoo instance logs

hodiploy_get_logs
Read-onlyIdempotent

kind="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

NameRequiredDescriptionDefault
kindNoactivity
groupNokind="odoo": merge identical records, most frequent first.
levelNokind="odoo": minimum level kept.
linesNokind="odoo": without level, the last lines read; with level, the most recent matching lines kept (ignored with group=true, which counts the whole window).
sinceNokind="odoo": only records from this window, e.g. "30m", "2h", "1d".
service_idNoHodiploy service id from hodiploy_list_instances. Optional when the user has a single Hodiploy service.
instance_idYesInstance id from hodiploy_list_instances.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description layers substantial extra context on top: the odoo log is administrators-only on a production instance, secrets are masked, a level filter triggers a whole-window server-side search versus a tail read without one, and covers_from discloses how far back an unfiltered read actually reached. These are exactly the behavioral facts an agent needs to interpret results correctly.

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

Conciseness4/5

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

It is front-loaded with the default mode and wastes nothing — every clause carries operational meaning, including the masking and admin-only notes. The trade-off is a dense, run-on paragraph with heavy parenthetical nesting that takes effort to parse, even though no sentence is superfluous.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description carries the full burden and does so: it enumerates the activity-entry fields (by, via) and the derived covers_from field, and it states the masking and permission constraints. For a read-only log tool with 7 mostly-optional parameters, an agent has everything needed to call it and interpret the result.

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 86%, so the schema already carries most parameter documentation. The description still adds real meaning beyond it by explaining the interaction between level, lines, since and group (grouped results count the whole window and ignore lines) and by explaining what covers_from implies about coverage, which the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (retrieve) and resource (instance logs) and then splits it into two concretely defined modes: kind="activity" returns the deploy/restart/update/backup/copy history with actor and channel, while kind="odoo" returns the raw Odoo server log. An agent can tell exactly what data comes back in each mode without opening the schema.

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?

It gives concrete operational guidance for the key task — "To check for errors, pass level=\"warning\" (or \"error\"), since and group=true" — plus an explicit anti-pattern warning not to conclude 'no error in the last 24h' from an unfiltered read. It does not, however, say when to prefer this over a sibling log tool such as hodifly_get_logs, so routing between log sources is left to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources