Skip to main content
Glama

Get query latency

helix_get_query_latency
Read-onlyIdempotent

Get query latency percentiles, p99 included, for one database over a time window: overall, or by query.

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": {
      "database": "<database>"
    },
    "name": "helix_get_query_latency"
  }
}

Input Schema

NameRequiredDescriptionDefault
endNoExclusive RFC3339 end time. Supply together with start instead of period.
viewNooverall (the default) or by_query.
startNoInclusive RFC3339 start time. Supply together with end instead of period.
periodNoA period ending now. Or give start and end instead.
databaseYesDatabase reference in cluster:<id> or tenant:<id> form.

Output Schema

NameRequiredDescriptionDefault
viewYes
pointsNo
windowYes
queriesNo
databaseYes
content_trustYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare this a read-only, idempotent, closed-world, non-destructive operation, so the safety profile is fully covered. The description adds a little useful context — that percentiles including p99 are returned and that results can be split overall or per query — but says nothing about latency-unit, sampling granularity, or behavior when no data exists in the window beyond what annotations supply.

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 front-loaded sentence naming the resource, the metric, the scope, and the view options, with no filler. Every clause corresponds to something an agent needs to pick and call the tool.

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 all five parameters are documented in the schema. What remains thin is behavioral context — latency unit, aggregation granularity, and empty-window behavior — but for a simple read-only metric lookup with full annotations this is close to complete.

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%, including enum values and the exclusive/inclusive RFC3339 semantics for start and end, so the schema carries the parameter burden. The description only echoes 'time window' and the overall/by_query modes without adding format or precedence rules beyond the schema.

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 and resource — fetching query latency percentiles for one database over a time window — plus the two view modes. It is clearly distinct from siblings like helix_get_query_insights or helix_execute_read_query, though it never names an alternative to disambiguate explicitly.

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: nothing says when to pick this over helix_get_query_insights, nor any prerequisite about the database needing to exist or be reachable. The only usage context is implicit in the phrase 'over a time window', which the schema already covers.

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