Skip to main content
Glama

Audit Dashboard

audit_dashboard

Runs a final quality gate on generated dashboards, checking table choices, KPI validity, chart accuracy, SQL safety, and cross-validated totals before delivery.

Instructions

Comprehensive audit of the generated dashboard for truthfulness and quality.

This tool goes beyond basic validation to question the LLM's decisions:

  • Are the correct tables used in the config?

  • Do KPIs make sense (no NULLs, no zeros when they shouldn't be)?

  • Do charts show what they claim (correct columns, reasonable data)?

  • Is the dashboard complete (no empty modules, broken filters)?

  • Is the SQL safe (no cartesian products, proper aggregations)?

  • Are KPIs consistent with chart totals (cross-validation)?

Use this AFTER generate_config() and validate_config() as the final quality gate before delivering the dashboard to the user.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it does disclose substantive behavior: the audit questions LLM decisions rather than merely checking schema validity, and it lists the specific failure classes it looks for. It stops short of saying whether the tool only reports findings or also mutates/fixes the config, or what severity/granularity the findings take, which matters for a zero-param tool that inspects existing state.

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-loaded opening sentence states the purpose, followed by a scannable bullet list of checks and a closing usage instruction. The bullet list is informative rather than padding, though the six bullets are somewhat longer than needed and one ('no cartesian products') is a fairly narrow SQL detail amid broader checks.

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?

Return values need not be explained since an output schema exists, and with zero parameters there is no argument surface to document. What remains is the question of what the agent should do with audit findings (block delivery? auto-fix?) and whether the tool reads in-memory or persisted config, which the description leaves implicit.

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 semantics to add and the baseline of 4 applies. The description correctly focuses its words on behavior rather than inventing parameter guidance.

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 ('Comprehensive audit of the generated dashboard') and then enumerates the concrete dimensions audited: table selection, NULL/zero KPIs, chart column correctness, empty modules, SQL safety, and KPI/chart cross-validation. This clearly separates it from the sibling validate_config, which is framed as the 'basic validation' counterpart.

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 explicit sequencing ('AFTER generate_config() and validate_config()') and an explicit role ('final quality gate before delivering the dashboard to the user'). An agent knows both the prerequisite tools and the decision point at which this tool should be invoked.

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