Skip to main content
Glama
questdb

mcp-server-questdb

Official

set_cell_highlight_config

Set or clear trend-coloring rules for a run-mode cell's result grids: flash cells that moved up or down since the last refresh, flag threshold breaches, band values into steps, or shade ranges.

Instructions

Set or clear the highlight rules of a run-mode cell's result grids (trend coloring): flash cells that moved up or down since the previous refresh, color threshold breaches, band values into steps, or shade a range. One config per cell, applied to every statement's grid by column name; a grid without the column is not affected. Replaces the whole config (PUT). highlight_config: null clears it. Typical watchlist: identity_columns ["symbol"], rules [{kind:"previous",column:"price",op:"gt",color:"green"},{kind:"previous",column:"price",op:"lt",color:"red"}]. Pair with set_cell_autorefresh so the grid ticks. Colors are hue names (theme-aware): red, teal, amber, lime, orange, purple, green, pink, blue, olive; red and green are the loss/gain pair.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cell_idYes
buffer_idYes
highlight_configYesHighlight rules for the cell's result grids. Rules evaluate top-down per cell; the first match colors the background. previous rules also show an up/down glyph.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the behavioral load well: it discloses that the whole config is replaced (PUT), that highlight_config: null clears it, that one config applies per cell across every statement's grid, and that grids lacking the column are unaffected. It omits auth/permission requirements and any error behavior.

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?

The first sentence front-loads the purpose and the behavioral facts (PUT semantics, clearing, per-cell scope) come next. The color list partially duplicates the schema enum, but the example and pairing advice are dense and earn their 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?

For a mutation tool with no annotations and no output schema, the description covers replacement semantics, clearing, rule evaluation ordering, and defaults. The notable gaps are the unexplained buffer_id/cell_id parameters and no mention of failure modes, but overall an agent can invoke it correctly.

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?

Top-level schema coverage is low (33%) and cell_id/buffer_id are undocumented anywhere, but the description compensates for highlight_config with a concrete example, the theme-aware hue palette, and the red/green loss-gain convention. Much rule detail (kinds, ops, defaults) already lives in the nested schema, so added value is moderate.

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 states a specific verb+resource (set/clear highlight rules on a run-mode cell's result grids) and immediately scopes it with '(trend coloring)'. It is clearly separable from siblings like set_cell_chart_config, set_cell_autorefresh, and set_cell_mode.

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?

It names a companion tool ('Pair with set_cell_autorefresh so the grid ticks') and gives a concrete typical watchlist example that shows intended usage. It does not, however, state explicit when-not conditions or name an alternative tool for related coloring needs.

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