"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toolGetQueryResultArgsSchema = exports.TOOL_GET_QUERY_RESULT_DESCRIPTION = void 0;
const toolSchemaBuilder_1 = require("../toolSchemaBuilder");
const toolMcpQueryResultDescription_1 = require("./toolMcpQueryResultDescription");
const toolQueryResultSchemas_1 = require("./toolQueryResultSchemas");
exports.TOOL_GET_QUERY_RESULT_DESCRIPTION = `Poll for the result of a long-running MCP query started by run_sql or run_metric_query.

Use this tool when run_sql or run_metric_query returns a running result. Clients with structured output see this as structuredContent.result.status = "running"; text-only clients should extract the queryUuid from the content text.
Each call waits up to the MCP wait window before returning another running response.
For completed run_metric_query results, ${(0, toolMcpQueryResultDescription_1.buildMcpVisualizationFollowUpInstruction)('get_query_result')} render_chart currently supports completed run_metric_query results.

Parameters:
- queryUuid: The async query UUID returned by run_sql or run_metric_query.

${toolMcpQueryResultDescription_1.MCP_GET_QUERY_RESULT_RESPONSE_DESCRIPTION}

Notes:
${toolMcpQueryResultDescription_1.MCP_QUERY_COMMON_NOTES}
`;
exports.toolGetQueryResultArgsSchema = (0, toolSchemaBuilder_1.createToolSchema)()
    .extend({
    queryUuid: toolQueryResultSchemas_1.mcpAsyncQueryUuidSchema.describe('Async query UUID returned by run_sql or run_metric_query.'),
})
    .build();
//# sourceMappingURL=toolGetQueryResultArgs.js.map