Skip to main content
Glama

Odoo instance metrics

hodiploy_get_metrics
Read-onlyIdempotent

CPU, memory, network and disk history of an instance over 1h, 24h (default), 7d or 30d, per container. On the web container, busyWorkers / peakWorkers are the HTTP workers busy with a request (mean and peak per point), to compare with allocated.workers: a peak at that number means every worker was busy and requests queued. Long windows are cut to the newest points (truncated).

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

Input Schema

NameRequiredDescriptionDefault
windowNo24h
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?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, non-open-world), yet the description adds a genuinely useful behavioral trait: long windows are truncated to the newest points rather than aggregated or downsampled. It also explains the semantics of busyWorkers/peakWorkers per point, which an agent could not derive from annotations alone.

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?

The tool's scope and windows are front-loaded in the first clause, and every sentence carries real information. The second sentence is dense and run-on, packing allocation comparison and threshold interpretation into one line, but nothing is wasted.

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 must convey return semantics, and it does define per-container, per-point metric meaning plus truncation for long windows. It stops short of describing sampling resolution, the returned series shape, or the metric field names, which leaves a small gap for a time-series tool with three parameters.

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 67%, with the service_id and instance_id parameters already documented in the schema. The description restates the window enum options (already in the schema) but adds no origin/syntax guidance for instance_id or service_id, so it does little beyond what the structured fields supply.

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-resource pair — historical CPU, memory, network and disk metrics per container for one instance — with explicit time windows. That scope is clearly distinguishable from siblings such as hodiploy_get_instance (state/config) or check_capacity (allocated capacity), so an agent can select it 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 Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is only implied: an agent can infer it should call this when it needs a resource-usage history rather than current state. There is no explicit statement of when NOT to use it or which sibling to prefer for current-state or capacity questions, though the busyWorkers-vs-allocated.workers note gives useful interpretation guidance once the data is in hand.

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