Skip to main content
Glama

get_server_metrics

Read-only

Fetches historical CPU %, RAM %, Disk %, and Network telemetry metrics for a server agent over a specified time window.

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": {
      "agent_id": "<agent_id>"
    },
    "name": "get_server_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
hoursNoTime window in hours (default: 24, min: 1, max: 168).
agent_idYesThe unique ID of the server agent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds that retrieval is historical and bounded by a time window, but says nothing about retention limits, sampling granularity, empty-result behavior, or volume of returned series.

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 well-formed sentence with the resource and the time-window scoping front-loaded and no redundant clauses. Slightly denser enumeration of metrics would be the only trimming opportunity.

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 two-parameter read tool with a fully documented schema and complete annotations, the description covers what it returns (the four metric families) and the time-window scoping. With no output schema, a note on response shape or granularity would push this higher, but nothing essential for calling it is missing.

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 description coverage is 100%, with both agent_id and hours fully documented including default and min/max bounds. The description's phrase 'over a specified time window' merely restates what the hours parameter already conveys, so baseline 3 applies.

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 ('Fetches') and resource ('historical CPU %, RAM %, Disk %, and Network telemetry metrics for a server agent'), naming exactly what data comes back. The word 'historical' implicitly separates it from a live-status sibling like read_server_status, but no sibling is named explicitly.

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: 'historical' plus 'over a specified time window' suggests this is for retrospective telemetry rather than current state. There is no explicit statement of when to prefer this over read_server_status or get_monitor_history, and no exclusions or prerequisites.

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