Skip to main content
Glama

query_metrics

Compute multiple certified metrics at the same grain without fan-out multiplication, so consistent aggregates stay accurate across dimensions, filters, and time ranges.

Instructions

Compute several certified metrics at the same grain without fan-out multiplication.

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": {
      "metrics": "<metrics>"
    },
    "name": "query_metrics"
  }
}

Input Schema

NameRequiredDescriptionDefault
dimsNo
limitNo
as_roleNo
filtersNo
metricsYes
order_byNo
time_grainNo
time_rangeNo
entity_keysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses one meaningful behavior—avoiding fan-out multiplication and using certified metrics—but omits read-only status, permissions, response shape, pagination, and how filters/time ranges are applied.

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. It is appropriately concise, though the terseness leaves the tool under-explained for its complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness1/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The definition is not complete for a 9-parameter query tool with no annotations, no output schema, and 0% schema description coverage. It says what the tool computes but not how to invoke it or what to expect.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% across 9 parameters, and the description does not explain any parameter. 'Metrics' and 'grain' are hinted, but dims, limit, as_role, filters, order_by, time_grain, time_range, and entity_keys remain undocumented.

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 gives a specific verb ('Compute') and resource ('several certified metrics at the same grain') and adds a differentiator ('without fan-out multiplication'). It implicitly separates this from the singular query_metric sibling, though it does not name it.

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 explicit when-to-use or when-not-to-use guidance is provided. 'Several' implies batch/multi-metric usage, but the description does not state alternatives such as query_metric for single metrics or any prerequisites.

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