Skip to main content
Glama

benchmarkSql

benchmarkSql

[ExoBench server version: 1.4.27]

⚠️ EPHEMERAL DATABASE — READ THIS FIRST ⚠️

Each call (and each scalePoint) provisions a fresh database from schemaTemplate and DESTROYS it. Tables, data, indexes, and settings from previous calls are GONE. correlationId is for tracking only — it does NOT preserve DB state. Pass the FULL schemaTemplate (CREATE TABLE + INSERT + INDEX + VACUUM ANALYZE) in EVERY call. If the user expects persistence, tell them ExoBench has none.

ExoBench: Benchmark SQL query performance using native data generation (Postgres, SQL Server, or MySQL).

Supports Postgres, SQL Server, and MySQL via the databaseType parameter (default: POSTGRES). Postgres and SQL Server support GENERATE_SERIES for native data generation.

⚠️ MYSQL: the examples below are POSTGRES/SQL-SERVER ONLY.

MySQL uses recursive CTEs (NOT generate_series). Its EXTENSIVE patterns + a full multi-table example live in getMcpDocs('benchmark-sql'). Writing a MySQL benchmark? Call getMcpDocs('benchmark-sql') FIRST — do NOT guess MySQL syntax from the Postgres examples below.

Generates test data directly inside the database, which is:

  • 100x faster than benchmarkSqlGeneric (no network round-trips for INSERT statements)

  • More realistic performance measurements (tests actual database performance, not network+database)

  • Better for large-scale benchmarks (can handle millions of rows without network bottleneck)

IMPORTANT: The server enforces a maximum of 5 scale points per request, and a hard limit of 3 million total rows per scale point (sum of all variable values). Requests exceeding these limits will be rejected with an error.

Cumulative compute budget: Each request is also bounded by total execution time across all scale points. Scale points at 1M+ rows should generally be run as separate requests. A sweep like [{"SCALE": 10000}, {"SCALE": 100000}, {"SCALE": 1000000}] is safe; [{"SCALE": 1000000}, {"SCALE": 2000000}] will likely time out and should be split into two calls. If a request fails with a generic execution error, the first thing to try is splitting large scale points into separate calls before assuming a server or schema issue.

Additionally, this tool gives you full control over data generation using native SQL, unlike benchmarkSqlGeneric which auto-generates random data. Use this when you need:

  • Realistic data distributions (skewed, correlated, time-series)

  • Precise control over foreign key relationships

  • Complex data patterns that columnConstraints can't express

  • ANY Postgres or SQL Server benchmarking (it's simply better in every way)

CRITICAL (Postgres only): Always end schemaTemplate with VACUUM ANALYZE after INSERTs. For SQL Server: Use UPDATE STATISTICS after INSERTs instead.

SQL SERVER EXECUTION PLANS (AUTOMATIC — NO USER ACTION NEEDED): The server automatically prepends SET STATISTICS XML ON to every SQL Server benchmark query. You do NOT need to include it yourself — just write your SELECT. The XML execution plan (equivalent of Postgres's EXPLAIN ANALYZE) is captured automatically and returned in the response's additions array with kind="sqlServerPlanXml". Including SET STATISTICS XML ON in your query is harmless (it's idempotent) but unnecessary.

You MAY optionally also add SET STATISTICS IO ON and/or SET STATISTICS TIME ON to capture logical-read counts and CPU/elapsed time breakdowns. These surface as additional messages in the response's additions array with type="additionalMessage". Example: SET STATISTICS IO ON; SET STATISTICS TIME ON; SELECT * FROM users WHERE created_at > DATEADD(DAY, -30, GETDATE());

Postgres Index Only Scans need an up-to-date visibility map. After bulk INSERTs, the visibility map is empty, forcing heap fetches even with covering indexes (2-4x slower). VACUUM updates the visibility map to mark all rows visible, enabling true index-only scans with zero heap fetches.

Production autovacuum maintains this continuously, so VACUUM'd benchmarks represent production reality. Without VACUUM, you're measuring a transient post-bulk-load state. VACUUM ANALYZE adds minimal overhead (1-3 seconds for millions of rows) compared to the INSERT time, and is essential for accurate Index Only Scan benchmarks.

ANALYZE updates statistics but NOT the visibility map. Use VACUUM ANALYZE, not just ANALYZE.

HOW IT WORKS:

  1. Your schemaTemplate contains ${VARIABLE} placeholders

  2. Each scalePoint is a map of variable names to values

  3. For each scalePoint, the tool substitutes variables, runs the schema, then benchmarks the query

SIMPLE EXAMPLE (single variable):

schemaTemplate:

CREATE TABLE users (id INT PRIMARY KEY, name TEXT, created_at TIMESTAMP);
INSERT INTO users SELECT i, 'user_' || i, NOW() - (i || ' days')::interval
FROM generate_series(1, ${SCALE}) i;
VACUUM ANALYZE;

scalePoints: [{"SCALE": 1000}, {"SCALE": 10000}, {"SCALE": 100000}]

query: "EXPLAIN ANALYZE SELECT * FROM users WHERE created_at > NOW() - interval '30 days'"

MULTI-TABLE EXAMPLE (multiple variables):

schemaTemplate:

CREATE TABLE customers (id INT PRIMARY KEY, tier TEXT);
INSERT INTO customers SELECT i, CASE WHEN random() < 0.1 THEN 'gold' ELSE 'regular' END
FROM generate_series(1, ${CUSTOMERS}) i;

CREATE TABLE orders (id INT PRIMARY KEY, customer_id INT, total NUMERIC);
INSERT INTO orders SELECT i, (random() * ${CUSTOMERS})::int + 1, random() * 1000
FROM generate_series(1, ${ORDERS}) i;

VACUUM ANALYZE;

scalePoints: [ {"CUSTOMERS": 1000, "ORDERS": 5000}, {"CUSTOMERS": 10000, "ORDERS": 50000}, {"CUSTOMERS": 100000, "ORDERS": 500000} ]

SKEWED DATA EXAMPLE (reproducing "slow user" scenarios):

schemaTemplate:

CREATE TABLE large (key INT PRIMARY KEY, x_key INT, tags TEXT[]);

-- 95% of rows have x_key = 1 (extreme skew)
INSERT INTO large SELECT i,
  CASE WHEN i <= (${SCALE} * 0.95)::int THEN 1 ELSE (i % 999) + 2 END,
  CASE WHEN i % 3 = 0 THEN ARRAY['blah'] ELSE ARRAY['foo'] END
FROM generate_series(1, ${SCALE}) i;

CREATE INDEX idx_x_key ON large(x_key);
VACUUM ANALYZE;

SQL SERVER EXAMPLES:

SQL Server supports GENERATE_SERIES natively. Do NOT use recursive CTEs for row generation. IMPORTANT SYNTAX DIFFERENCE: SQL Server uses FROM GENERATE_SERIES(1, N) gs (table alias only), NOT FROM GENERATE_SERIES(1, N) AS s(value) (Postgres-style column aliasing is INVALID). The output column is always named value — reference it as gs.value or just value.

SIMPLE SQL SERVER EXAMPLE:

schemaTemplate:

CREATE TABLE users (id INT PRIMARY KEY, name NVARCHAR(100), created_at DATETIME2);
INSERT INTO users (id, name, created_at)
SELECT gs.value, CONCAT('user_', gs.value), DATEADD(DAY, -gs.value, GETDATE())
FROM GENERATE_SERIES(1, ${SCALE}) gs;
UPDATE STATISTICS users;

scalePoints: [{"SCALE": 1000}, {"SCALE": 10000}, {"SCALE": 100000}]

query: "SELECT * FROM users WHERE created_at > DATEADD(DAY, -30, GETDATE())"

MULTI-TABLE SQL SERVER EXAMPLE:

schemaTemplate:

CREATE TABLE customers (id INT PRIMARY KEY, tier NVARCHAR(20));
INSERT INTO customers (id, tier)
SELECT gs.value, CASE WHEN ABS(CHECKSUM(NEWID())) % 10 < 1 THEN 'gold' ELSE 'regular' END
FROM GENERATE_SERIES(1, ${CUSTOMERS}) gs;

CREATE TABLE orders (id INT PRIMARY KEY, customer_id INT, total DECIMAL(10,2));
INSERT INTO orders (id, customer_id, total)
SELECT gs.value, ABS(CHECKSUM(NEWID())) % ${CUSTOMERS} + 1, RAND(CHECKSUM(NEWID())) * 1000
FROM GENERATE_SERIES(1, ${ORDERS}) gs;

UPDATE STATISTICS customers;
UPDATE STATISTICS orders;

scalePoints: [ {"CUSTOMERS": 1000, "ORDERS": 5000}, {"CUSTOMERS": 10000, "ORDERS": 50000}, {"CUSTOMERS": 100000, "ORDERS": 500000} ]

⚠️ FOR MYSQL EXAMPLES (recursive CTEs, cte_max_recursion_depth, ANALYZE TABLE): see getMcpDocs('benchmark-sql').

OUTPUT FORMAT: Returns JSON objects, one per scalePoint: {"scalePoint": {"SCALE": 1000}, "sql": "EXPLAIN ANALYZE...", "output": [...], "runtimeDurationMs": 5} {"scalePoint": {"SCALE": 10000}, "sql": "EXPLAIN ANALYZE...", "output": [...], "runtimeDurationMs": 12}

⚠️ runtimeDurationMs includes compile + network + serialization — NOT pure execution time. NEVER compare it across Postgres vs SQL Server vs MySQL. For true query time use:

  • Postgres: root operator actual time in EXPLAIN ANALYZE (e.g. ..59.060 = 59ms)

  • SQL Server: QueryTimeStats.ElapsedTime in plan XML additions (excludes compile)

  • MySQL: actual time in EXPLAIN ANALYZE tree output Use runtimeDurationMs only for same-engine scale-point comparisons.

WHEN TO USE THIS vs benchmarkSqlGeneric:

  • ALWAYS use benchmarkSql for Postgres and SQL Server (faster, cheaper, more realistic)

  • Use benchmarkSqlGeneric ONLY for SQLite (which doesn't support native data generation)

  • Use benchmarkSql when you need precise control over data distribution

  • Use benchmarkSql when debugging performance issues that depend on data skew

IF THIS TIMES OUT: you get a workerId and a "still running" status — that is NOT a result. You MUST then call the matching results tool (benchmarkSqlResults / benchmarkSqlGenericResults / runSqlResults) with that workerId, repeatedly, until it returns a terminal result. Do NOT end your turn, summarize, or report any findings while a worker is still running.

PARTIAL RESULTS: If this call times out (returns a "still running" error with a workerId), the error's data field MAY contain partial results (scale points completed so far). These are best-effort and NOT guaranteed — do not depend on their presence.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "schemaTemplate": "<schemaTemplate>",
      "query": "<query>",
      "scalePoints": "<scalePoints>"
    },
    "name": "benchmarkSql"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoInteger seed for the SQL's random functions (Postgres setseed, SQL Server RAND(seed)) and for the ${...} holes in query. Omitted: the DEFAULT_SEED is derived from correlationId, so one session reuses the same data and drawn requests. Returned as seed/seedSource.
queryYes SQL query to benchmark. Typically EXPLAIN ANALYZE SELECT... for performance analysis. repetitions > 1: ${...} holes are the endpoint's arguments (one per parameter); see repetitions. ${SCHEMA} = the run's schema name, not a hole (SQL Server scalar UDF: ${SCHEMA}.fn(x)). The query runs after the schemaTemplate is fully executed for each scalePoint. Use EXPLAIN ANALYZE to see execution plans and actual vs estimated rows. SQL SERVER EXECUTION PLANS (AUTOMATIC): For SQL Server, SET STATISTICS XML ON is AUTOMATICALLY prepended — you do NOT need to include it. Just write your SELECT query directly. The XML execution plan is returned in the response's `additions` array. Example: SELECT * FROM users WHERE created_at > DATEADD(DAY, -30, GETDATE()) Optionally add SET STATISTICS IO ON / SET STATISTICS TIME ON for logical-read and CPU breakdowns: SET STATISTICS IO ON; SET STATISTICS TIME ON; SELECT * FROM users WHERE created_at > DATEADD(DAY, -30, GETDATE()) Including SET STATISTICS XML ON yourself is harmless (idempotent) but unnecessary.
formatNoPlan output: smart (parsed tree, default) or raw (database's own output, repetitions=1 only)
planStyleNoPlan rendering: human (default; AI agents ALWAYS use this) or json (for UIs/programs only, never for an LLM)
warmCacheNo How many cache-warming iterations to run before the timed benchmark execution. - false or 0 (default): No cache warming. Query runs against cold shared_buffers. This measures first-query performance as seen by the database. - true: Run the query 5 times before the timed execution to populate shared_buffers. This measures warm-cache performance as seen by repeated queries. - Integer (1-50): Exact number of warm-up iterations. For most queries on datasets up to 3M rows, 3-5 iterations is sufficient to fully warm the page cache. Cache warming affects only the per-query runtimeDurationMs measurement. The total computeSeconds (which includes schema creation, data generation, warming, and teardown) will increase with more warm-up iterations. Note: Warm-up iterations may add significant time for complex queries at high row scales. The polling mechanism (benchmarkSqlResults / benchmarkSqlGenericResults) handles this transparently — if warming + execution exceeds the per-call wait, you'll receive a workerId to poll for results.
compressionNoPlan detail level: simple/low/high (default: low)
repetitionsNoRepeat the query N times, report mean/sd per plan step (Postgres, SQL Server; 1-40). N>1 only: ${...} holes in query stand for an endpoint's arguments, e.g. WHERE id=${ID=RANDOM_ZIPFIAN(1,N,1.1)} AND type=${RAND_CHOICE('a','b')}: a NEW value per run, drawn on the ExoBench server (reproducible via seed), so N runs emulate that endpoint's query mix. Not the database's random()/random_zipfian(): those generate DATA in schemaTemplate. Details: getMcpDocs('benchmark-sql'), getMcpDocs('endpoint-query-mix')
scalePointsYes List of variable substitution maps. Each map defines one benchmark iteration. FORMAT: [{"VAR1": value1, "VAR2": value2}, {"VAR1": value3, "VAR2": value4}, ...] RULES: 1. Each map must define ALL variables used in schemaTemplate 2. Values must be integers 3. Variable names are case-sensitive and must match template exactly 4. Order determines benchmark execution order EXAMPLES: Single variable (simple scaling): [{"SCALE": 1000}, {"SCALE": 10000}, {"SCALE": 100000}] Two variables (users and orders): [ {"USERS": 100, "ORDERS": 500}, {"USERS": 1000, "ORDERS": 5000}, {"USERS": 10000, "ORDERS": 50000} ] Three variables (complex e-commerce): [ {"PRODUCTS": 1000, "CUSTOMERS": 500, "ORDERS": 2000}, {"PRODUCTS": 1000, "CUSTOMERS": 5000, "ORDERS": 20000}, {"PRODUCTS": 1000, "CUSTOMERS": 50000, "ORDERS": 200000} ] Note: Keep lookup tables constant (PRODUCTS: 1000) while scaling transaction tables. LARGE SCALE POINTS — SPLIT INTO SEPARATE REQUESTS: Each request has a cumulative compute budget across all scale points. When any single scale point exceeds ~1M rows, run it as its own request. Two scale points that each succeed individually (e.g., 1M alone and 2M alone) can time out when combined in one call because their cumulative compute cost exceeds the per-request budget. Safe to combine: [{"SCALE": 10000}, {"SCALE": 100000}, {"SCALE": 1000000}] Should be split into separate calls: Call 1: [{"CUSTOMERS": 20000, "ORDERS": 1000000}] Call 2: [{"CUSTOMERS": 40000, "ORDERS": 2000000}] Small scale points (under ~100k rows each) can safely bundle up to the 5-point maximum. COMMON RATIOS: - Orders per customer: 5-20x - Order items per order: 2-5x - Products: constant or slow growth - Audit/log tables: 10-50% of parent
databaseTypeNo Database type for native benchmarking. Must be POSTGRES, POSTGRES_18, SQLSERVER, or MYSQL. Defaults to POSTGRES if not specified. - POSTGRES: Temporary isolated schema with dedicated user, uses PostgreSQL syntax and features (Postgres 17, the default) - POSTGRES_18: Same as POSTGRES but runs against a Postgres 18 pool; use it to compare a query's plan and timing on 18 vs POSTGRES (17), e.g. B-tree skip scan, uuidv7(), virtual generated columns - SQLSERVER: Temporary isolated schema, uses T-SQL syntax and features - MYSQL: Temporary isolated database, uses MySQL syntax and features Engine-specific data-generation syntax (generate_series vs recursive CTEs) is in getMcpDocs('benchmark-sql'). SQLITE is NOT supported here — use benchmarkSqlGeneric for SQLite benchmarks.
correlationIdNo [TRACKING ONLY — does NOT preserve DB state, schema, or settings between calls.] Echo the correlationId from the previous ExoBench response so the ExoBench team can correlate your workflow for analytics. Omitted = a new one is created. Each tool call still provisions a fresh ephemeral DB from its own schema parameter.
includeSamplesNoPer-run samples on every measured quantity (default false)
schemaTemplateYes SQL schema with CREATE TABLE, INSERT, and INDEX statements using ${VARIABLE} placeholders. The template is executed fresh for each scalePoint. Variables are substituted before execution. TEMPLATE RULES: 1. Use ${VARIABLE_NAME} syntax for placeholders (alphanumeric + underscore) 2. Variables can appear anywhere: row counts, calculations, string literals 3. POSTGRES: Always end with VACUUM ANALYZE for accurate query planning and visibility map updates 4. SQLSERVER: Do NOT use VACUUM ANALYZE (it's Postgres-only). Use UPDATE STATISTICS if needed. 5. MYSQL: Do NOT use generate_series (MySQL doesn't have it). Use recursive CTEs for row generation. ⚠️ The FULL MySQL pattern set + complete example is in getMcpDocs('benchmark-sql') — read it FIRST. 6. Each scalePoint must define ALL variables used in the template except ${SCHEMA} COMMON PATTERNS (Postgres): Basic row count: FROM generate_series(1, ${SCALE}) i FK relationship (orders reference customers): (random() * ${CUSTOMERS})::int + 1 Percentage-based skew: CASE WHEN i <= (${SCALE} * 0.95)::int THEN 1 ELSE i % 100 END Time-series data: NOW() - (i * interval '1 minute') Realistic distributions: (random() * random() * ${MAX_VALUE})::int -- skewed toward lower values COMMON PATTERNS (SQL Server): SQL Server supports GENERATE_SERIES natively. Do NOT fall back to recursive CTEs. SYNTAX: `FROM GENERATE_SERIES(1, N) gs` — column is always `value`, reference as `gs.value`. Do NOT use `AS s(value)` — Postgres-style column aliasing is INVALID in SQL Server. Basic row count: FROM GENERATE_SERIES(1, ${SCALE}) gs FK relationship (orders reference customers): ABS(CHECKSUM(NEWID())) % ${CUSTOMERS} + 1 Percentage-based skew: CASE WHEN gs.value <= (${SCALE} * 0.95) THEN 1 ELSE gs.value % 100 END Time-series data: DATEADD(MINUTE, -gs.value, GETDATE()) Realistic distributions: ABS(CHECKSUM(NEWID())) % ${MAX_VALUE} Random float (0-1): RAND(CHECKSUM(NEWID())) SQL SERVER COMPLETE EXAMPLE: ```sql CREATE TABLE customers (id INT PRIMARY KEY, tier NVARCHAR(20)); INSERT INTO customers (id, tier) SELECT gs.value, CASE WHEN ABS(CHECKSUM(NEWID())) % 10 < 1 THEN 'gold' ELSE 'regular' END FROM GENERATE_SERIES(1, ${CUSTOMERS}) gs; CREATE TABLE orders (id INT PRIMARY KEY, customer_id INT, total DECIMAL(10,2)); INSERT INTO orders (id, customer_id, total) SELECT gs.value, ABS(CHECKSUM(NEWID())) % ${CUSTOMERS} + 1, ABS(CHECKSUM(NEWID())) % 1000 FROM GENERATE_SERIES(1, ${ORDERS}) gs; UPDATE STATISTICS customers; UPDATE STATISTICS orders; ``` COMMON PATTERNS (MySQL): ⚠️ MySQL has NO generate_series — it uses recursive CTEs (`SET SESSION cte_max_recursion_depth = 4294967295;`). The COMPLETE MySQL pattern set + a full multi-table example are in getMcpDocs('benchmark-sql'). ALWAYS read it BEFORE writing MySQL data generation — do NOT guess the recursive-CTE syntax. TIMESTAMP GENERATION — ALWAYS ANCHOR TO NOW() FOR RELATIVE FILTERS: CRITICAL: Unless the user EXPLICITLY provides a fixed date range, if you are generating test data for queries with relative date filters (e.g., WHERE hire_date > NOW() - interval '18 months'), you MUST anchor the generated data to NOW(), not a fixed start date. WRONG — fixed start date with relative filter in query: INSERT ... '2015-01-01'::timestamp + (random() * 9 * 365 * interval '1 day') Query: WHERE hire_date > NOW() - interval '18 months' This breaks silently over time: in 2025, 18 months ago is mid-2023, but your data ends in 2024. In 2027, 18 months ago is mid-2025, but your data still ends in 2024. Selectivity changes every month, and eventually zero rows match. RIGHT — anchor data to NOW(), use relative filter in query: INSERT ... NOW() - (random() * 9 * 365 * interval '1 day') Query: WHERE hire_date > NOW() - interval '18 months' This keeps selectivity permanently correct: 18 months out of 108 months = 16.7% of rows match, forever, regardless of when the benchmark runs. The general principle: if your filter is relative to NOW(), your data must be too. Use a fixed start date ONLY when the query filter is also a fixed date. TIMESTAMP GENERATION — AVOID INTEGER TRUNCATION: When generating timestamp test data, never cast to integer before multiplying by an interval. Integer truncation changes filter selectivity, which changes query plans, which produces benchmark results that don't match production behavior. WRONG — integer truncation creates discrete day buckets with uneven sizes: NOW() - (random() * 365)::int * interval '1 day' `::int` rounds to nearest, so day 0 gets a half-width bucket (random range [0, 0.5)) while all other days get full buckets ([0.5, 1.5), [1.5, 2.5), etc.). A BETWEEN query spanning 2 calendar days captures ~1.5/365 of rows instead of ~1/365. At 1.5M rows this is the difference between ~6,200 and ~4,100 matching rows, which is enough to flip PostgreSQL's join strategy selection (e.g., Nested Loop vs Hash Join) and produce misleading benchmark results. RIGHT — continuous timestamps, uniform distribution, anchored to NOW(): NOW() - (random() * 365 * interval '1 day') No integer cast. Produces realistic sub-day precision. Filter selectivity matches what production queries will see. RIGHT — if you need whole-day values, use floor() not round(), still anchored to NOW(): NOW() - floor(random() * 365)::int * interval '1 day' `floor()` gives every day an equal-width bucket [0, 1), [1, 2), etc. BETWEEN on 2 calendar days captures exactly 2/365 of rows. The general principle: test data selectivity must match production selectivity. A 50% difference in matching row count can cross planner cost thresholds, changing join strategies, worker allocation, and whether an index helps or hurts.
customDelimiterNo LAST RESORT ONLY — Do NOT use this parameter unless all other approaches have failed. ExoBench has a highly robust, dialect-aware SQL script splitter that correctly handles: - Single-quoted string literals (including '' escape sequences) - Double-quoted identifiers (PostgreSQL, SQL Server) - Bracket-quoted identifiers (SQL Server: [col;name]) - Backtick-quoted identifiers (MySQL: `col;name`) - Dollar-quoted function bodies (PostgreSQL: $$ ... $$ and $tag$ ... $tag$) - Line comments (-- comment; still in comment) - Block comments (/* nested /* block */ comments */ supported for all dialects except MySQL) - MySQL hash comments (# comment; to end of line) - MySQL's -- comment rule (requires whitespace after the dashes) In the vast majority of cases, you do NOT need this parameter. The splitter handles all standard SQL constructs including stored procedures, triggers, and functions that contain semicolons within their bodies. If you encounter a GENUINE splitting failure (the schema executes incorrectly because a semicolon inside a construct was misinterpreted as a delimiter), you may set customDelimiter to a unique string that does NOT appear inside any of your SQL statements. The system will then split ONLY on that string — with NO intelligence about quoting or comments. You are fully responsible for ensuring the delimiter is truly unique in your script. Example: If your schema has a pathological construct that confuses the splitter, you could separate statements with '---SPLIT---' and set customDelimiter to '---SPLIT---'. DO NOT use this to work around issues that the splitter already handles. If you think the splitter is failing on a standard construct, it is almost certainly a bug — report it instead of using this escape hatch.
preBenchmarkSqlNo Optional SQL to run after schema creation but before the benchmark query. Use for: - Additional ANALYZE with specific settings - SET statements (work_mem, enable_seqscan, etc.) - Creating additional indexes to test - Warming up caches Example: "SET work_mem = '256MB'; SET enable_seqscan = off;" Note: Settings reset between scalePoints since each runs in a fresh connection.
waitTimeoutSecondsNoLower = control back sooner, higher = fewer polls: max seconds this call and each benchmarkSqlResults poll wait (10-110, default 60; >60 may exceed your client's timeout)
exobenchServerVersionNoExoBench server version — copy the X.X.X from the [ExoBench server version: X.X.X] tag at the top of this tool's description.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

With only a generic annotation set (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description carries the real disclosure burden and does so: it warns that each scalePoint provisions and then destroys a fresh ephemeral database, that correlationId does not preserve state, that the schemaTemplate must be resubmitted every call, and it states hard limits (5 scale points, 3M rows, cumulative compute budget). It further explains timeout semantics (workerId means NOT a result, must poll benchmarkSqlResults) and that runtimeDurationMs is not pure query time.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Structure is strong and front-loaded: the ephemeral-database warning appears before anything else, and sections are headed and scannable. However the description is far longer than needed and repeats itself — the MySQL warning appears three times, and the SQL Server SET STATISTICS XML instructions are duplicated almost verbatim in the `query` schema description. Several paragraphs (timestamp truncation, VACUUM visibility map) are educational essays rather than selection or invocation guidance.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter, multi-dialect benchmarking tool with no output schema, the description supplies everything an agent needs: the exact output JSON shape per scalePoint, where execution plans surface in `additions`, how to interpret timings per engine, and the polling contract on timeout. It even covers partial results in the error `data` field as best-effort and not to be relied upon.

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?

Schema description coverage is 100%, so the schema already defines every parameter, including warmCache levels, repetitions, seed provenance, and customDelimiter caveats. The description adds genuinely new meaning on top: it mandates VACUUM ANALYZE vs UPDATE STATISTICS per engine, explains variable substitution in schemaTemplate/scalePoints with worked multi-table and skewed examples, and warns against fixed-date data anchoring for relative filters. It stops short of adding anything for parameters like format, planStyle, compression, or includeSamples, which is why it is not a 5.

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 names a specific verb and resource ("Benchmark SQL query performance using native data generation") and scopes it to Postgres, SQL Server, and MySQL. It repeatedly and explicitly distinguishes itself from benchmarkSqlGeneric ("auto-generates random data", "100x faster", "Use benchmarkSqlGeneric ONLY for SQLite"), so an agent can select between the two without opening either schema.

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?

There is a dedicated "WHEN TO USE THIS vs benchmarkSqlGeneric" section with explicit routing rules per engine, plus a conditional instruction to call getMcpDocs('benchmark-sql') before writing MySQL. It also gives operative guidance on how to sequence calls (split scale points above ~1M rows into separate requests) and what to do on timeout.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources