Skip to main content
Glama

benchmarkSqlResults

benchmarkSqlResults
Read-only

[ExoBench server version: 1.4.29]

Retrieve results from a running or completed benchmarkSql job.

When benchmarkSql() returns a "still running" message with a workerId, call this endpoint with that workerId to wait for and retrieve the results.

Each call will wait up to 60 seconds (by default; adjust with benchmarkSql's waitTimeoutSeconds, 10-110) for the benchmark to complete. If it hasn't finished, you'll receive the same "still running" message — which means you MUST call this endpoint AGAIN, immediately, with the same workerId. NEVER treat a "still running" response as a stopping point.

IMPORTANT: This endpoint only works for benchmarkSql jobs. If the workerId belongs to a benchmarkSqlGeneric job, use benchmarkSqlGenericResults() instead.

The underlying database is ephemeral to the original benchmarkSql call and is destroyed when its worker completes. workerId does NOT let you query that database afterwards.

planStyle and includeSamples were fixed by that benchmarkSql call and stored with the worker. This tool does not take them. The result is rendered the way the job was started, including the full copy at fullResultUrl.

PARTIAL RESULTS: When the benchmark is still running, the "still running" error response MAY include a data field with partial results (scale points that completed before the timeout). Partial results are BEST EFFORT — they are NOT guaranteed and may be unavailable even during normal operation due to internal timing or transient errors. Do NOT depend on their presence. They are a convenience when available, not a contract.

If rowsAreTooWide: true: total result size exceeded inline limits (distinct from rowsAreCapped which caps row count). Result is head+tail truncated with a break marker. Fetch the full output from fullResultUrl (ephemeral, ~20 min).

================================================================================ ⚠️ POLL UNTIL TERMINAL — READ THIS BEFORE YOU DO ANYTHING ELSE

A "still running" response is NOT a result. It is a command to call this tool AGAIN, with the same workerId, as your VERY NEXT action. Keep calling it until it returns a terminal result (completed OR failed).

Until this worker reaches a terminal result you MUST NOT: • end your turn, • summarize or state any conclusion, • write any analysis or "the benchmark shows…" claim, • launch another benchmark, or move on to other work.

Results are INCOMPLETE until every outstanding worker reaches a terminal state. Reporting incomplete results as if they were final misleads the user about what was actually measured. If you launched multiple workers, EVERY one of them must be polled to a terminal result before you report anything.

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": {
      "workerId": "<workerId>"
    },
    "name": "benchmarkSqlResults"
  }
}

Input Schema

NameRequiredDescriptionDefault
workerIdYes The worker UUID returned by a previous benchmarkSql() call. This is the unique identifier for the benchmark execution.
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.
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?

Annotations only say it is a non-destructive read. The description adds substantial behavior the annotations cannot express: the ~60s default wait (adjustable 10-110), the ephemeral DB being destroyed on worker completion so workerId cannot be reused for later queries, best-effort partial results in the 'still running' payload, and head+tail truncation with an ephemeral (~20 min) fullResultUrl when rowsAreTooWide is true.

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?

The critical polling rule is front-loaded and the sections are labeled, which helps scanning. However, the same 'still running means call again' instruction is stated three times, the all-caps warning block is disproportionately long, and the version tag/divider boilerplate adds bulk. It is informative but not tight.

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 polling tool with three parameters and no output schema, the description covers the full lifecycle: how to enter the loop, how long each call blocks, why partial results may be missing, what truncation looks like and where the full copy lives, and how to distinguish this job family from the generic one. Nothing an agent needs to call it correctly or interpret its responses is missing.

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 coverage is 100%, so the schema already documents all three parameters; this sets a baseline of 3. The description still adds meaning by pinning workerId to a prior benchmarkSql call and explaining that planStyle/includeSamples are fixed at job start and deliberately absent here, which clarifies the parameter surface rather than restating it. It says nothing about correlationId or exobenchServerVersion beyond what the schema already provides, so it stops short of 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 first line states a specific verb and resource: 'Retrieve results from a running or completed benchmarkSql job.' It also names the sibling it is not — 'If the workerId belongs to a benchmarkSqlGeneric job, use benchmarkSqlGenericResults() instead' — so an agent can route correctly without opening other schemas.

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?

It gives the exact triggering condition ('When benchmarkSql() returns a "still running" message with a workerId'), the required follow-up loop, and the alternative tool for the generic job family. It also states what must not happen before a terminal result, which is unusually explicit when-to-use/when-not guidance.

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