Skip to main content
Glama

runSqlResults

runSqlResults
Read-only

[ExoBench server version: 1.4.29]

Retrieve results from a running or completed runSql job.

When runSql() 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 for the query 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 runSql jobs. If the workerId belongs to a benchmark job, use the appropriate benchmarkSqlResults() or benchmarkSqlGenericResults() instead.

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

PARTIAL RESULTS: When the query is still running, the "still running" error response MAY include a data field with partial results. 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": "runSqlResults"
  }
}

Input Schema

NameRequiredDescriptionDefault
workerIdYes The worker UUID returned by a previous runSql() call. This is the unique identifier for the query 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.6/5.0
Behavior5/5

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

Annotations only declare readOnly/destructive/idempotent hints; the description adds substantial behavior the agent could not otherwise know: a 60-second wait per call, best-effort partial `data` on still-running responses, `rowsAreTooWide` vs `rowsAreCapped` truncation semantics, an ephemeral ~20-minute `fullResultUrl`, and the fact that the underlying DB is destroyed when the worker completes. Nothing here contradicts readOnlyHint=true or idempotentHint=false.

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 polling instruction is repeated three times (intro paragraph, all-caps banner, bulleted MUST-NOT list), and the banner block is disproportionately large relative to the informational content. The substantive facts (wait window, partial results, truncation, ephemeral DB) are well placed, but the redundancy and shouting cost it.

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?

With no output schema, the description does the heavy lifting on return values — still-running shape, partial `data`, truncation markers, fullResultUrl — which is exactly what an agent needs. It stops short of describing the shape of a successful terminal result (rows/columns/error fields), which is the one remaining gap.

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 already 100%, so the schema documents workerId, correlationId, and exobenchServerVersion. The description still adds real semantic content beyond it — that workerId is the handle for polling and that it cannot be reused to query the ephemeral database afterwards — which is meaning the schema text does not carry.

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 opening line states a specific verb and resource: retrieve results from a running or completed runSql job. It explicitly distinguishes itself from the benchmark equivalents by naming benchmarkSqlResults() and benchmarkSqlGenericResults(), so an agent can route correctly without opening any 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?

It gives the precise trigger (runSql returned a 'still running' message with a workerId), the exact procedure (call repeatedly with the same workerId until a terminal result), and an explicit exclusion (benchmark workerIds belong to other tools). This is as close to unambiguous routing as a polling tool can get.

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