answer
Retrieve cited responses from your document collection, grounding each result solely in relevant passages. Returns grounded status, with no invented content when evidence is missing.
Instructions
Answer a question grounded in a collection, with citations.
Retrieves the most relevant passages and asks the host's model (via MCP sampling) to
answer using ONLY those passages, citing them. Returns {grounded, answer, citations}.
If nothing relevant is found, grounded is false and no answer is invented. If the
host does not support sampling, the grounded context is returned for the host to
compose the answer itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| top_k | No | ||
| collection | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||