Skip to main content
Glama

Answer delegated LLM request

answer_llm_request
Destructive

Submit 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

NameRequiredDescriptionDefault
job_idYesJob whose llm_requests you are answering.
responseYesMCP 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_idYesThe request_id of the entry you answer.
wait_secondsNoHow 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The annotations already declare readOnlyHint=false, destructiveHint=true, openWorldHint=true, and the description adds meaningful context beyond them: no platform model or credits are consumed, the answer is validated against the request's inputSchema like a provider would, and a rejected answer comes back as a new request with the error in a tool_result (isError). What it does not address is the destructiveHint=true claim — nothing explains what state is mutated or whether an accepted answer can be revised, so the highest-risk annotation is left unelaborated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and the key scoping fact (delegated job, client's own model) before the mechanics. It is dense but nearly every clause carries a distinct constraint; the only clear waste is the trailing 'No platform LLM call.', which repeats 'no platform model is called and no credits are spent' from the opening sentence.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a write tool with a nested response object, a documented output schema, and validation semantics, the definition covers provenance of the request, the exact payload contract, the failure/re-answer loop, and the wait behavior. An agent has everything needed to construct and submit a correct answer without consulting the guide URI.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond the schema: it pins response to MCP CreateMessageResult shape with stopReason values, ties content to toolChoice.mode 'required' meaning one tool_use block matching the tool's inputSchema, and explains wait_seconds as controlling return of the next request, terminal result, or running status. The added value is in the semantic contract between toolChoice, content, and validation rather than in restating field names.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource — submit the result of one pending model call belonging to a delegated job — and immediately qualifies what a 'delegated job' is (user's own model, no platform model, no credits). It explicitly separates itself from the sibling pause tool: 'Not for question pauses (answer_job_question).'

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Tells the agent exactly where to find the request to answer (get_job_status(job_id).llm_requests or the start tool's return), what to produce on the client model, and what to do on rejection (correct and answer again). It also names the exclusion case explicitly, routing question pauses to answer_job_question.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.