Skip to main content
Glama
Analytics MCP Server

Analytics MCP Server

by piyusht007

describe_kpi

Read-onlyIdempotent

Retrieve a KPI's full definition, including business meaning, SQL numerator and denominator, grain, allowed dimensions and time grains, synonyms, and related KPIs.

Instructions

Full definition of one KPI: business description, SQL numerator/denominator, grain, allowed dimensions and time grains, synonyms and related KPIs.

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": {
      "kpi": "<kpi>"
    },
    "name": "describe_kpi"
  }
}

Input Schema

NameRequiredDescriptionDefault
kpiYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=false, so the safety profile is covered. The description adds the useful behavioral fact that the payload is a metadata definition rather than measured values, but says nothing about identifier resolution, failure behavior for unknown KPIs, or latency/pagination characteristics.

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?

One dense clause with zero filler, front-loaded on what the tool returns. It is a sentence fragment rather than a complete statement, but every listed item earns its place.

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?

Since an output schema exists, return values needn't be spelled out, and the description still gives a compact overview of the payload. For a single-parameter read tool with full annotation coverage the definition is nearly complete, the only material gap being how the 'kpi' argument is formed.

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 coverage is 0% on the single required 'kpi' parameter, so the description must carry the meaning and does not: it never says whether 'kpi' is a display name, slug, or ID, nor how to obtain a valid value. With one undocumented parameter this ambiguity is exactly the kind of gap the description should close.

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?

States a specific resource and scope: the full definition of exactly one KPI, enumerated as business description, SQL numerator/denominator, grain, dimensions, time grains, synonyms and related KPIs. That is enough to distinguish it from list_kpis (enumeration) and query_kpi (value retrieval), but the description never explicitly contrasts those siblings.

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: 'one KPI' signals a lookup against a known KPI rather than discovery or querying. There is no explicit when-to-use, no when-not-to-use, and no mention of first calling list_kpis to resolve a KPI identifier.

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