Skip to main content
Glama
WhaTap MCP Server

WhaTap MCP Server

Official
by whatap

whatap_describe_query

Explains what a specific MXQL query path or OpenMetrics metric does and which fields it returns, covering parameters, output fields, header types, and raw query text.

Instructions

Describe a specific MXQL query path or an OpenMetrics metric in detail. Shows parameters, output fields, header types, and raw MXQL.

WHEN TO CALL:

  • Only when the user asks what a query does or what fields it returns.

  • Do NOT call this as a prerequisite before whatap_query_data — just call query_data directly.

  • query_data already returns formatted results with field names and units.

MXQL example: whatap_describe_query(path="v2/sys/server_base") OpenMetrics example: whatap_describe_query(metric="node_cpu_seconds_total", projectCode=3730)

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "whatap_describe_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoMXQL query path from the yard (e.g., "v2/sys/server_base", "v2/app/tps_pcode"). Discover paths with whatap_data_availability.
metricNoOpenMetrics/Prometheus metric name to describe (e.g., "node_cpu_seconds_total"). Requires projectCode.
projectCodeNoProject code — required when describing an OpenMetrics metric.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.3

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does disclose the return content (parameters, output fields, header types, raw MXQL) plus the key behavioral fact that this is informational metadata lookup, not execution. It stops short of explicitly stating the tool is side-effect-free or what happens on an unknown path/metric, so it misses a small amount of behavioral context.

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?

The purpose statement is front-loaded, the usage rules are a short bulleted block, and two one-line examples close it out. No sentence is filler; the length matches the complexity of a two-mode describe 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?

There is no output schema, and the description compensates by enumerating what the response contains, including the raw MXQL, so an agent knows what it will get. Minor gaps remain around invalid paths and whether path and metric can be combined, but nothing essential is missing for correct invocation.

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

Parameters4/5

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

Schema coverage is 100%, so the schema already documents each of the three parameters and the projectCode requirement. The description still adds value by showing concrete invocations of the two mutually exclusive modes (path-only vs. metric+projectCode), which makes the alternative-parameter relationship clearer than the schema alone.

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?

The description pairs a precise verb ("Describe") with two specific resources (an MXQL query path, an OpenMetrics metric) and lists exactly what is returned: parameters, output fields, header types, raw MXQL. It is unmistakably different from whatap_query_data, which returns data rather than metadata.

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?

An explicit WHEN TO CALL block gives both the positive condition ("only when the user asks what a query does or what fields it returns") and a negative one ("do NOT call this as a prerequisite before whatap_query_data"), and names the sibling the agent should use instead. This is exactly the routing guidance an agent needs.

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