Skip to main content
Glama

Validate Config

validate_config

Validate dashboard config by checking JSON structure and SQL syntax, then run every KPI, chart, and table query against the database to confirm results and execution times before rendering.

Instructions

Validate all SQL queries in the current ui_config.json against the database.

This tool checks:

  • JSON structure validity (required keys, types)

  • SQL syntax for every KPI, chart, and table query

  • Executes each query to verify it returns results

  • Reports execution time for each query

Use this AFTER generate_config() or update_config() to verify the dashboard will render correctly before showing it 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": "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.4/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 does well: it discloses that the tool actually executes every KPI, chart, and table query against the database, checks JSON structure and SQL syntax, and reports per-query execution time — real behavioral traits an agent could not infer. It leaves out failure semantics (does it throw, stop at the first bad query, or return per-query pass/fail?) and whether execution has side effects on the database.

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 purpose sentence followed by a four-item check list and a one-line usage note; every line adds information and nothing is repeated. The structure makes the checks scannable.

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?

A no-parameter validation tool with an output schema, so return-value detail is legitimately delegated to the schema and the description covers inputs (implicit current config), checks performed, and timing. The remaining gap is what happens when validation fails and whether execution of queries is safe/repeatable, which matters for an agent deciding to run it against a live database.

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 for the description to add. The description correctly implies the targets come from ambient state ('the current ui_config.json') rather than arguments, which is the relevant semantic point here.

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 ('Validate all SQL queries in the current ui_config.json against the database') and scopes it precisely to the current config, so the agent can distinguish it from config-building siblings. The bullet list of what is checked reinforces the scope rather than restating the name.

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

Usage Guidelines4/5

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

Explicitly says 'Use this AFTER generate_config() or update_config()' and gives the goal ('verify the dashboard will render correctly before showing it to the user'), which is strong sequencing guidance. It does not name an exclusion or point to cross_validate_config for alternative cases, so it stops short of full when-vs-alternative routing.

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