Skip to main content
Glama

Odoo scheduled actions

hodiploy_get_crons
Read-onlyIdempotent

Scheduled actions (ir_cron) of each Odoo database: name, active, interval, next and last call, failure count (Odoo 17+), pending triggers, running (a worker is executing it now) and overdue (active, not running, next call more than 10 minutes late). With the OCA queue_job module: jobs by state, oldest pending, latest failures. Use it when "a scheduled action does not run" or jobs pile up.

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_crons"
  }
}

Input Schema

NameRequiredDescriptionDefault
databaseNoOdoo database name. Optional when the instance has only one.
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

A3.9/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, the description defines the derived semantics an agent cannot guess: `running` means a worker is executing now, `overdue` means active + not running + next call >10 minutes late, and failure count only exists on Odoo 17+. It also discloses conditional behavior when the OCA queue_job module is installed. It does not mention result limits or pagination, which keeps it at 4.

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?

Front-loaded with the resource, then the returned field list, then the queue_job caveat and usage trigger — a logical order with no filler sentences. The field enumeration is dense but each item carries diagnostic value, so it earns its place.

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?

With no output schema, the description carries the return-value burden and does it well by enumerating every field and flag meaning. For a read-only diagnostic tool that is nearly sufficient; only volume/pagination expectations and the auth/instance prerequisites are unstated.

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

Parameters3/5

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

Schema coverage is 100%, so all three parameters are already documented in the schema, including that database and service_id are optional for single-instance users. The description adds only the implicit hint that results are per-database, which is marginal beyond the schema. Baseline 3 is appropriate.

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?

The description names the concrete resource (Odoo `ir_cron` scheduled actions) and enumerates the returned fields — name, active, interval, next/last call, failure count, pending triggers, plus derived `running`/`overdue` flags. It is not differentiated from the similarly named sibling `list_cron`, so an agent must infer which one to pick, which keeps it below a 5.

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 explicit triggering situations: "Use it when 'a scheduled action does not run' or jobs pile up." That is clear when-to-use guidance grounded in a user symptom. It stops short of naming an alternative tool or stating when not to use it (e.g. versus `hodiploy_get_logs` or `list_cron`).

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