build_rag_prompt
Generate a grounded RAG prompt from a question and retrieved context, with optional concise or detailed answer style.
Instructions
Build a grounded RAG prompt from a question and retrieved context.
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": {
"question": "<question>",
"context": "<context>"
},
"name": "build_rag_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | ||
| question | Yes | ||
| answer_style | No | concise |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |