Skip to main content
Glama

Get metrics

metrics_get
Read-onlyIdempotent

Retrieve CPU, memory, and network metrics for a Lizard app or addon over a chosen time range, optionally scoped to a service for project-level live metrics.

Instructions

Use this when the user wants CPU, memory, or network metrics for a Lizard app or addon over a time range.

Input Schema

NameRequiredDescriptionDefault
rangeNo24h
projectYes
serviceNoOmit for project-level live metrics

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds the metric scope and time-range framing but says nothing about return format, granularity, or rate limits, leaving it adequate rather than rich.

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?

A single front-loaded sentence that leads with the triggering condition and no wasted words. It could be marginally tighter but is well-structured.

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?

For a read-only tool with no output schema and thin parameter documentation, the description explains what it fetches and over what window but omits what the response contains and how project/service resolve. Sufficient to invoke, but not fully self-contained.

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?

With only 33% schema description coverage, the description should carry more weight. It does hint at the time-range concept and the app-vs-addon distinction (mapping loosely to project/service), but it doesn't clarify the range enum values, the default, or the required project parameter.

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?

States a specific verb (get metrics) and resource (CPU, memory, network metrics) scoped to a Lizard app or addon over a time range. This clearly separates it from siblings like logs_tail or service_show, though it doesn't explicitly name a competing tool.

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?

The 'Use this when the user wants...' phrasing gives a clear triggering condition tied to metric types and time range. It stops short of naming alternatives or exclusions (e.g., when to use logs_tail instead), so it lacks full routing guidance.

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