cortex_ask
Get cited answers to operational questions about agent behavior, runs, and cases. Read-only analyst validates every ID and fails closed against fabricated or cross-project data.
Instructions
Ask the READ-ONLY Cortex analyst (complex_query) an operational question and get a cited answer. Use this for questions like "Were refund SLAs met last week?", "Why did this run diverge?", "Which agents touched case_123?". The analyst is governed and EVIDENCE-CITED: every id in evidence_refs / affected_entities was observed through a read tool, and the runtime FAILS CLOSED against fabricated or cross-project ids (no answer is invented and no other tenant's data can leak). It only reads — it never mutates state. Returns the validated ComplexQueryResult {short_answer, reasoning_plan, evidence_refs, affected_entities, confidence, restricted_evidence_count, recommended_action, follow_up_questions}. mode="sync" (default) blocks for the answer; mode="async" enqueues then polls until the job is terminal. Note: the analyst only executes when the platform CORTEX_TOOL_RUNTIME_ENABLED flag is on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | "sync" (default) blocks for the answer; "async" enqueues then polls until terminal. | |
| question | Yes | The operational question to answer, in plain English. | |
| project_id | Yes | Project to scope the analyst to. All evidence is ACL-filtered to this project. | |
| target_ref | No | Id of the target entity (e.g. "run_1", "case_123"). Defaults to project_id when target_type is "project". | |
| target_type | No | What to anchor the question on. Defaults to "project" (a project-wide question). |