Skip to main content
Glama

get_deployment_metrics

Fetches per-replica CPU/memory usage, resource limits, and replica counts for a deployment over a time range to support monitoring and capacity checks.

Instructions

Fetches per-replica CPU/memory usage, resource limits, and replica counts for a deployment. :param deployment_id: ID of the deployment. :param start_ms: Start of the time range, in unix milliseconds. :param end_ms: End of the time range, in unix milliseconds. :returns: Deployment metrics or error message.

The output is automatically stored and can be referenced in other functions. Returns a formatted preview with an object ID (e.g., @obj_123). Use the object store tools in combination with the object ID to view nested properties of the object. Use the returned object ID to pass this result to other functions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_msYes
start_msYes
deployment_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.27

TDQS

B3.2/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It does disclose a real behavioral trait: output is auto-stored and returns an object ID (@obj_123) that feeds object-store tools. That is valuable and non-obvious. It does not, however, cover auth/permission requirements, read-only nature, or rate limits.

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 core purpose is front-loaded, but the object-store explanation is repeated across three sentences ('referenced in other functions', 'use the object store tools', 'pass this result to other functions') with overlapping meaning. The docstring-style ':param/:returns' formatting is also less scannable than prose.

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

Completeness3/5

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

With no annotations and no output schema, the description does cover parameter meaning and the return/object-store mechanism, which is the critical missing structured data. It falls short on usage routing relative to get_deployment_stats and on any access/permission context, leaving an agent with gaps before invoking it.

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 0%, so the schema provides only bare titles, and the description compensates by documenting all three parameters, including the unit for start_ms/end_ms ('unix milliseconds'). That unit detail is genuinely additive. Deployment_id is described only generically ('ID of the deployment'), so it is not perfect.

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 first sentence gives a specific verb and resource: 'Fetches per-replica CPU/memory usage, resource limits, and replica counts for a deployment.' An agent immediately knows the resource and the metric types returned. However, it does not distinguish itself from the sibling get_deployment_stats, which an agent could plausibly confuse with it.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance and no mention of alternatives or prerequisites. With siblings like get_deployment_stats and get_deployment present, the description should state what selects this tool over those, but it leaves that entirely to inference.

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

Deploy Server

Other Tools