Skip to main content
Glama

Generate Config

generate_config

Creates a complete UI configuration from loaded data by detecting column roles and generating column mappings, global filters, KPIs, charts, tables, and SQL queries.

Instructions

Auto-generate the UI configuration based on loaded data.

Analyzes the first 100 rows of ALL loaded tables, detects column roles using synonym matching, and generates a complete ui_config.json with:

  • column_mapping (role → physical column)

  • filtros_globales (filter definitions)

  • modulos (KPIs, charts, tables with SQL queries)

The table name(s) discovered from the database are used in all generated SQL.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/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 does substantial work: it discloses the sampling strategy (first 100 rows of ALL loaded tables), the detection method (synonym matching), the output artifact (ui_config.json), and that discovered table names are injected into all generated SQL. The notable gap is that it never says whether an existing config is overwritten or what happens if no tables are loaded — material for a tool that writes a config file.

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 with the action in the first sentence, then a bulleted enumeration of the generated sections, which is easy to scan. Minor redundancy between 'Auto-generate the UI configuration' and 'generates a complete ui_config.json', but nothing is bloated.

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 needn't be explained, and the description is already more than sufficient for a zero-parameter tool. The only missing piece an agent needs is the side-effect profile — overwrite semantics and failure behavior when no data is loaded — which the absence of annotations leaves uncovered.

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 explain; baseline is 4. The description correctly does not waste space restating a schema.

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 verb+resource pair ('Auto-generate the UI configuration') and enumerates exactly what the generated artifact contains (column_mapping, filtros_globales, modulos). It implicitly contrasts with the granular build_* siblings by producing a 'complete ui_config.json', but never names or explicitly distinguishes them.

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?

The phrase 'based on loaded data' implies a prerequisite (data must be loaded first), which is useful context. However there is no explicit when-to-use/when-not guidance and no routing between this tool and the granular alternatives like build_chart_config, build_filter_config, or build_module_config, so the agent must infer that this is the all-in-one generator.

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