Skip to main content
Glama

Cross Validate Config

cross_validate_config

Cross-check dashboard KPIs, charts, and column references for internal consistency, null or zero values, and aggregation errors after configuration validation.

Instructions

Cross-validate dashboard numbers for consistency.

This tool performs deeper checks than validate_config():

  • KPI vs Chart consistency: if a KPI sums a column and a chart breaks it down, the chart total should match the KPI value.

  • Null detection: alerts if KPIs return NULL or zero unexpectedly.

  • Column reference check: verifies that chart x/y/column/valores fields actually exist in the query results.

  • Data quality: detects if all chart bars have the same value (possible aggregation error).

Use this AFTER validate_config() passes to ensure the dashboard numbers are not only valid SQL but also internally consistent.

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": "cross_validate_config"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

No annotations are provided, so the description carries the behavioral burden, and it does so by enumerating the four checks performed (KPI vs chart totals, null/zero detection, column reference existence, identical bar values). It stops short of stating whether the call is purely read-only or how failures are surfaced (exception vs report), which the output schema partly covers.

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?

Front-loaded one-line purpose followed by a bulleted list where each bullet is a distinct, non-overlapping check, then a closing usage sentence. The only mild redundancy is the title echoing the first sentence, which costs nothing.

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 not be explained, and with zero parameters the definition only needs to justify why an agent would call it — which the four enumerated checks do. The remaining gap is what a failing check actually produces for the caller.

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?

The tool takes zero parameters, so there is no parameter meaning to document and the baseline of 4 applies. The description correctly spends no words on arguments and instead invests in describing the validation logic.

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 names a specific verb and resource ('Cross-validate dashboard numbers for consistency') and immediately scopes it against a named sibling by stating it 'performs deeper checks than validate_config()'. An agent can distinguish this from validate_config and audit_dashboard without opening any schema.

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?

Explicit sequencing guidance is given: 'Use this AFTER validate_config() passes to ensure the dashboard numbers are not only valid SQL but also internally consistent.' That names both the prerequisite and the alternative, leaving nothing to inference.

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