Skip to main content
Glama

get_metrics

Read-only

Returns Prometheus-compatible OS metrics for monitoring system performance and feeding dashboards or alerts.

Instructions

Return Prometheus-compatible metrics for the OS.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv6.14.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds one genuine behavioral detail beyond the annotations — the output is Prometheus-compatible — but says nothing about scraping cadence, cost, scope (host vs. all OS components), or whether values are instantaneous or cumulative.

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 with no filler, and the format qualifier ('Prometheus-compatible') is placed before the resource, which is the right order. It is efficient, though brevity here verges on thinness for anything beyond format naming.

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?

For a zero-parameter, read-only tool with a full output schema and explicit safety annotations, the description covers purpose and output format, which is most of what an agent needs. Remaining gaps (metric scope, staleness, cost) are minor given the structured data already supplied.

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?

The tool takes zero parameters, so there is no parameter meaning for the description to convey; the baseline of 4 applies. Nothing in the description misrepresents the parameterless signature.

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 ('Return') and resource ('Prometheus-compatible metrics for the OS'), so an agent knows this is a read of formatted metrics rather than raw status data. It does not explicitly distinguish itself from the similarly named sibling get_os_status, leaving that differentiation to inference.

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, no conditions of applicability, and no named alternative such as get_os_status or list_capabilities. The only implied usage is 'call this to get metrics,' which an agent could guess from the name alone.

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