Skip to main content
Glama

Get resource metrics

metrics.get
Read-only

Get the latest CPU, memory, network, and pod measurements plus the one-hour aggregate summary for an authorized resource.

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": {
      "resource_id": "<resource_id>"
    },
    "name": "metrics.get"
  }
}

Input Schema

NameRequiredDescriptionDefault
resource_idYesauthorized resource identifier
organization_idNoorganization membership to use for this call; omit only when the account has one current membership

Output Schema

NameRequiredDescriptionDefault
metricsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=false, so the safety profile is already covered. The description adds genuinely useful behavior beyond that: the freshness scope ('latest') and the presence of a one-hour aggregate summary, plus the 'authorized resource' constraint on what can be fetched.

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?

A single sentence with the verb and resource front-loaded, no filler, and the scope qualifiers packed into the same clause. Nothing to trim.

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 the description covers what is measured and the freshness/aggregation scope. The remaining gap is routing versus metrics.history, which the definition leaves the agent to infer.

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%, so both resource_id and organization_id are fully documented in the schema, including the omit-when-single-membership rule. The description's 'for an authorized resource' adds only a marginal authorization nuance over the schema's own 'authorized resource identifier'.

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 description states a specific verb (Get) and resource (resource metrics), and enumerates the covered measurement types (CPU, memory, network, pod) plus the one-hour aggregate. It is clear, though it never names metrics.history, the sibling an agent would most likely confuse it with.

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: 'latest' measurements suggests a point-in-time current-state call, which contrasts implicitly with metrics.history. There is no explicit when-to-use statement, no exclusion, and no pointer to the alternative for historical data.

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