Skip to main content
Glama

Read resource metrics history

metrics.history
Read-only

Slide a bounded observation window over an authorized resource's CPU, memory, network, and pod metrics. The platform selects a safe storage resolution and reports it in the result.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "end": "2026-07-22T12:00:00Z",
      "window": "7d",
      "resource_id": "resource-id"
    },
    "name": "metrics.history"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoRFC3339 window end time; defaults to now
windowNosliding observation window: live, 1h, 6h, 24h, 7d, or 30d; defaults to 1h
resource_idYesauthorized resource identifier
organization_idNoorganization membership to use for this call; omit only when the account has one current membership

Output Schema

NameRequiredDescriptionDefault
historyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the safety profile is covered. The description adds genuinely useful non-obvious behavior: the platform auto-selects a 'safe storage resolution' and reports it in the result, warning the agent that returned resolution may differ from the requested window.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, zero filler, and the scope ('authorized resource's ... metrics') is front-loaded before the behavioral note about resolution.

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?

An output schema exists so return values need no explanation, and annotations cover the read-only profile. The only real gap is the missing comparison against metrics.get, which slightly limits correct tool selection.

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 100%, with each parameter (end, window enum, resource_id, organization_id) already documented in the schema, so baseline 3 applies. The description's 'bounded observation window' echoes the schema without adding format, default, or boundary detail beyond it.

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 action ('slide a bounded observation window') over a named resource class (CPU, memory, network, pod metrics), which clearly marks it as a historical/range reader. It doesn't explicitly contrast with the sibling metrics.get, so an agent must infer that one is a snapshot and this is a windowed history.

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?

No statement of when to choose this over metrics.get or logs.runtime, and no prerequisites or exclusions beyond the vague word 'authorized'. The agent gets the mechanism but not the routing rule.

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