Skip to main content
Glama

Answer job

answer_job
Destructive

Answer every question of a job's input_request in one call; the job then continues, and get_job follows it.

  • Pass input_request_id and answers keyed by question id.

  • Logins and secrets belong on the input_request's answer_url, which keeps them out of this conversation. When the input_request's message says the user may reply to you with the information, such as a sign-in code, answer with what they sent; answer any other secret, such as a payment card's, only if the user agrees.

  • A browser_handoff question is never answered here: a person finishes its step in the job's live browser at answer_url and marks it done there, so send the user answer_url and keep following the job.

  • With job_id alone, it returns the job and its answer_url.

  • Never send TOTP seeds or durable tokens.

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>"
    },
    "name": "answer_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesa job ID: job_ and 32 lowercase hex digits
answersNoA JSON-encoded string (not an object) holding one answer per question id. choice: an option id, {"other": text} when allow_other, or {"option": id, "note": text} when allow_note. multi_choice: an array of option ids, or {"options": [ids]} with "other" and "note" when allowed. text and secret: a string; a secret with allow_not_received also takes {"not_received": true} when the person didn't get the code: a run then ends without signing in, and any other job has the website send a new code once and asks again. confirm: {"confirmed": true or false}. login: {"username", "identifier_kind", "password", "save_login"}, with username holding an identifier its fields name (left out when they name none) and password only when fields lists it; when fields names several identifiers, send whichever one you have and name it in identifier_kind.
include_resultNofalse to read the job without its result, which stays for a later read; result_status says whether one waits. Default true.
input_request_idNoThe input_request.id you are answering

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / answers / description
      Previous value: -"A JSON-encoded object with one answer per question id. choice: an option id, {\"other\": text} when allow_other, or {\"option\": id, \"note\": text} when allow_note. multi_choice: an array of option ids, or {\"options\": [ids]} with \"other\" and \"note\" when allowed. text and secret: a string; a secret with allow_not_received also takes {\"not_received\": true} when the person didn't get the code: a run then ends without signing in, and any other job has the website send a new code once and asks again. confirm: {\"confirmed\": true or false}. login: {\"username\", \"identifier_kind\", \"password\", \"save_login\"}, with username holding an identifier its fields name (left out when they name none) and password only when fields lists it; when fields names several identifiers, send whichever one you have and name it in identifier_kind."New value: +"A JSON-encoded string (not an object) holding one answer per question id. choice: an option id, {\"other\": text} when allow_other, or {\"option\": id, \"note\": text} when allow_note. multi_choice: an array of option ids, or {\"options\": [ids]} with \"other\" and \"note\" when allowed. text and secret: a string; a secret with allow_not_received also takes {\"not_received\": true} when the person didn't get the code: a run then ends without signing in, and any other job has the website send a new code once and asks again. confirm: {\"confirmed\": true or false}. login: {\"username\", \"identifier_kind\", \"password\", \"save_login\"}, with username holding an identifier its fields name (left out when they name none) and password only when fields lists it; when fields names several identifiers, send whichever one you have and name it in identifier_kind."
  2. Changed1 schema field changed
    • changedInput schema / properties / answers / description
      Previous value: -"A JSON-encoded object with one answer per question id. choice: an option id, {\"other\": text} when allow_other, or {\"option\": id, \"note\": text} when allow_note. multi_choice: an array of option ids, or {\"options\": [ids]} with \"other\" and \"note\" when allowed. text and secret: a string; a secret with allow_not_received also takes {\"not_received\": true} when the person didn't get the code, and Pomerado then has the website send a new code once and asks again. confirm: {\"confirmed\": true or false}. login: {\"username\", \"identifier_kind\", \"password\", \"save_login\"}, with username holding an identifier its fields name (left out when they name none) and password only when fields lists it; when fields names several identifiers, send whichever one you have and name it in identifier_kind."New value: +"A JSON-encoded object with one answer per question id. choice: an option id, {\"other\": text} when allow_other, or {\"option\": id, \"note\": text} when allow_note. multi_choice: an array of option ids, or {\"options\": [ids]} with \"other\" and \"note\" when allowed. text and secret: a string; a secret with allow_not_received also takes {\"not_received\": true} when the person didn't get the code: a run then ends without signing in, and any other job has the website send a new code once and asks again. confirm: {\"confirmed\": true or false}. login: {\"username\", \"identifier_kind\", \"password\", \"save_login\"}, with username holding an identifier its fields name (left out when they name none) and password only when fields lists it; when fields names several identifiers, send whichever one you have and name it in identifier_kind."
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety bar is lower; the description still adds real context by explaining that answering resumes the job, that browser_handoff steps are completed by a person in a live browser, and by setting explicit secret-handling policy ('never send TOTP seeds or durable tokens', the not_received run-ending behavior). It stops short of stating plainly that submitted answers cannot be revised or withdrawn, which is the key implication of the destructive annotation.

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?

The primary action and its consequence are front-loaded, and the bulleted structure maps cleanly onto the four parameters and the policy branches. Some bullets are clause-heavy ('When the input_request's message says the user may reply to you with the information, such as a sign-in code, answer with what they sent'), which costs a little readability but no sentences are filler.

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?

A mutation tool with no output schema and non-trivial policy, yet the description covers invocation, post-call continuation, the return shape ('it returns the job and its answer_url'), and explicit prohibitions. Nothing an agent needs to call it correctly or to handle the secret/browser_handoff branches is missing.

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 meaning the schema does not: 'Pass input_request_id and answers keyed by question id' explains the pairing, and 'With job_id alone, it returns the job and its answer_url' documents a valid call shape that the schema alone would not suggest. Per-question answer formats are left entirely to the schema, which already handles them well.

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?

The lead sentence names a specific verb and resource ('Answer every question of a job's input_request in one call') and immediately states the lifecycle consequence ('the job then continues, and get_job follows it'), which separates it from get_job. The later line 'With job_id alone, it returns the job and its answer_url' pins down a second mode, so an agent knows exactly what the tool does without opening the schema.

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?

Explicit when-to-use and when-not-to-use: 'A browser_handoff question is never answered here' with the alternative given (send the user answer_url, keep following the job). It also routes secrets to answer_url, distinguishes the reply-with-code case from other secrets, and explains the degraded job_id-only call — leaving little to inference.

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.