Skip to main content
Glama

Odoo instance capacity check

hodiploy_check_capacity
Read-onlyIdempotent

Odoo's sizing next to PostgreSQL's and the container's: workers, cron threads, db_maxconn, memory and time limits, the most connections Odoo can open, PostgreSQL max_connections and connections in use by state, container memory and CPU, restarts and whether it was last killed for lack of memory, and the HTTP workers busy right now (busyWorkersNow / peakWorkersNow, measured over 5 seconds). Returns warnings in plain words (all workers busy at once, connection pools that can exhaust the database, sessions idle in a transaction, workers that do not fit in memory). For the history of busy workers, use hodiploy_get_metrics.

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

Input Schema

NameRequiredDescriptionDefault
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.7/5.0
Behavior3/5

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

Annotations already establish readOnlyHint=true, idempotentHint=true, destructiveHint=false, and closed-world scope, so the safety profile is covered. The description adds real value beyond that: a stated 5-second measurement window for busyWorkersNow/peakWorkersNow and a disclosure that it returns a `warnings` field with plain-language diagnoses for specific hazards (all workers busy, pool exhaustion, sessions idle in transaction, workers exceeding memory). It does not describe output structure or whether the snapshot is point-in-time vs averaged beyond the worker metrics.

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

Conciseness3/5

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

The first sentence is a long comma-chained enumeration that delays the action and mixes measurement targets with derived metrics, which hurts scanability for an agent deciding quickly. The second and third sentences (warnings meaning, sibling routing) are tight and well-placed, but the bulk of the text is a run-on list that could be organized into measurements vs. diagnostics.

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?

There is no output schema, so the description carries responsibility for return semantics, and it does signal a `warnings` array in plain words plus named fields (busyWorkersNow/peakWorkersNow). With only two well-documented parameters and non-destructive read annotations, the remaining gap is just how the other measurements are returned, which is modest for a diagnostic snapshot tool.

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 description coverage is 100%, and the schema itself documents service_id as 'from hodiploy_list_instances, optional when the user has a single Hodiploy service' and instance_id as 'from hodiploy_list_instances', so the baseline of 3 applies and the description adds nothing further about parameters. It is slightly above baseline only because the description's framing (a per-instance capacity snapshot) reinforces that instance_id selects the target.

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 enumerates concretely what is checked: worker counts, cron threads, db_maxconn, memory/CPU limits, PostgreSQL max_connections and per-state connection counts, container restarts/OOM kills, and live busy HTTP workers. It also explicitly separates itself from hodiploy_get_metrics ('For the history of busy workers...'). It stops short of a single crisp verb+resource statement because the opening is an unlabeled noun list, but the scope is unmistakable.

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 names one concrete alternative and the condition that selects it: historical busy-worker data goes to hodiploy_get_metrics, not here. That is genuine routing guidance, but no guidance is given relative to other plausibly overlapping siblings such as hodiploy_get_database_health, hodiploy_get_postgres_config, or hodiploy_list_postgres_sessions, so the agent must infer those boundaries.

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