Answer delegated LLM request
answer_llm_requestSubmit the result of one pending model call of a delegated job: a job the user started on the client's own model (every start tool's default unless use_platform_models=true or an explicit platform model), so no platform model is called and no credits are spent. The request is under get_job_status(job_id).llm_requests (or in the start tool's return): it carries Entity Enricher's extraction prompt (systemPrompt, messages) and the tools and toolChoice that define the expected structured output. Produce that completion on the client's own model, then pass it here as response in MCP CreateMessageResult shape — {role: 'assistant', model: '', stopReason: 'toolUse' | 'endTurn', content: [{type: 'tool_use', id, name, input}] | {type: 'text', text}} — with optional usage {input_tokens, output_tokens}. toolChoice.mode 'required' means one tool_use block whose input matches the tool's inputSchema. The answer is validated against that schema like a provider's and is used only as the job's structured output: a rejected answer returns as a new request with the error in a tool_result (isError), to correct and answer again. Returns the next pending request(s), the terminal result, or the running status after wait_seconds. Not for question pauses (answer_job_question). No platform LLM call. Guide: enricher://docs/llm-delegation.
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": {
"job_id": "<job_id>",
"request_id": "<request_id>",
"response": "<response>"
},
"name": "answer_llm_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Job whose llm_requests you are answering. | |
| response | Yes | MCP CreateMessageResult: role 'assistant', model (your model's name), stopReason, content (one block or a list of text / tool_use blocks); optional usage {input_tokens, output_tokens}. | |
| request_id | Yes | The request_id of the entry you answer. | |
| wait_seconds | No | How long to wait for the job's next pending request, pause or completion before returning (0 = return right after handing over the answer). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||