Skip to main content
Glama
jonasliesas

singlestore-mcp-server

by jonasliesas

Query advisor

query_advisor_report
Read-only

Recommend table design changes from query history: sort keys, shard keys, reference tables, indexes, missing statistics, and workload issues.

Instructions

Recommend table design changes from the whole query history: SORT KEY and SHARD KEY per table, REFERENCE table candidates, indexes and missing statistics, plus workload issues (huge results, SELECT *, failures).

Every distinct query in the history is EXPLAINed (compiled, not run) to see which columns it filters,
joins and groups on, weighted by how long those queries ran. Opens the Query History app on its Advisor tab.

The result includes ``browser_url``: post it as a clickable link right under the app.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
refreshNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.8.1

TDQS

B3.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, so the description carries most of the burden, and it delivers: it discloses that every distinct query is EXPLAINed (compiled, not run), that weighting is by query runtime, and that it has a UI side effect of opening the Query History app on its Advisor tab. It does not mention cost/latency or caching behavior for the expensive compile pass.

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 deliverable, then the mechanism, then the browser_url usage note. Three tight sentences with no filler; the output-formatting instruction is slightly operational but genuinely useful.

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?

No output schema exists, and the description compensates by naming the key return value (browser_url) and its intended use, plus the analysis method. The only real gap is the undocumented refresh parameter and any note that the first run is costly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter 'refresh' has 0% schema description coverage and is never mentioned in the description. Whether it forces recomputation versus returning a cached advisor report is left entirely to inference, which matters given the described expense of EXPLAINing all history.

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 (recommend table design changes from query history) and enumerates the concrete outputs: SORT KEY, SHARD KEY, reference-table candidates, indexes, missing statistics, workload issues. An agent can tell what it produces, though it never explicitly distinguishes itself from the sibling query_history_advisor.

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

Usage Guidelines2/5

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

It describes scope ('the whole query history') but gives no when-to-use guidance, no prerequisites, and no direction on choosing it over the many sibling advisor/tuning tools (query_history_advisor, query_history_tuning, query_history_trends). The only routing hint is that it opens the Advisor tab.

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

Deploy Server

Other Tools