Skip to main content
Glama

get_cluster_query_vitals

Read-only

Retrieve per-node query-engine health metrics to diagnose slow queries when infrastructure looks healthy and distinguish workload pressure from engine stress.

Instructions

Get query-engine health (vitals) from every query-service node.

Distinguishes "the workload is heavy" from "the query engine itself is stressed" — get_cluster_metrics covers node hardware; this covers the N1QL service layer specifically: request rate, active/queued request counts, memory, GC, service uptime. Use it after get_cluster_metrics/ get_cluster_health_snapshot show healthy infra but queries are still slow.

Calls GET /admin/vitals. Self-managed Couchbase Server 7.6+ only (Capella is rejected without a REST call); needs at minimum the Read-Only Admin (ro_admin) role — verify against your cluster's RBAC before relying on this in production, since the N1QL Admin API's exact privilege requirements are not fully documented.

/admin/vitals answers per node, not cluster-wide — each query node only describes itself — so every query-service node is queried and the results are keyed by node ("host:port").

Returns {"status": "success", "vitals": {"host:port": {...}, ...}, "unreachable_nodes": [{"node", "error"}]} (the last key omitted when every node answered), or {"status": "error", "error": ...} if no query node could be reached at all, or the cluster is Capella.

Input Schema

NameRequiredDescriptionDefault
timeoutNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond readOnlyHint=true, the description discloses the endpoint called (GET /admin/vitals), the ro_admin RBAC requirement with a candid caveat that privilege requirements are undocumented, the Capella rejection path, and that results are per-node rather than cluster-wide. It also explains partial-failure semantics (unreachable_nodes omitted when all nodes answer) and the all-fail error case. Slight deduction only because failure behavior for a mid-call timeout is not spelled out.

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?

Front-loads purpose, then differentiation, usage trigger, preconditions, per-node behavior, and return shape — a logical progression with no filler paragraphs. Some sentences (the RBAC hedging parenthetical) are longer than needed, and the return-shape example partially duplicates the output schema.

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

Completeness5/5

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

For a fan-out diagnostic tool it covers everything an agent needs: what it measures, when to call it, environment and role limits, per-node keying by host:port, and both partial and total failure outcomes. Even with an output schema present, the inline return description adds useful shape context.

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

Parameters2/5

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

Schema description coverage is 0% and the single parameter (timeout, default 30) is never mentioned in the description. It is unclear whether the timeout is in seconds, applies per node or to the whole fan-out, and whether it is per-request or total. The description therefore does not compensate for the schema gap, though the parameter is at least intuitively named.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: fetch query-engine vitals from every query-service node, covering request rate, active/queued counts, memory, GC and uptime. It explicitly separates itself from get_cluster_metrics (node hardware) and get_cluster_health_snapshot, so an agent can route without opening other schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit trigger condition: use it after get_cluster_metrics/get_cluster_health_snapshot show healthy infra but queries are still slow. It also states hard prerequisites (self-managed Couchbase Server 7.6+, Capella rejected) and the implied exclusion of hardware-level troubleshooting.

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