Skip to main content
Glama

Get task

get_task
Read-onlyIdempotent

Retrieve complete details for a specific ad-hoc task—brief, edit history, dependency states, pinned agent, recent runs, and branch resumability—using its task key from the queue.

Instructions

Full details of one ad-hoc task: the complete brief, edit history, dependency states, pinned agent, recent runs, and whether its branch can be resumed. Same data as devintern worker task show <key> --json.

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": {
      "taskKey": "<taskKey>"
    },
    "name": "get_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskKeyYesAd-hoc task key (`local-…`), from get_queue

Output Schema

NameRequiredDescriptionDefault
statusNo
messageNo
taskKeyNo
errorCodeNoSet on failure: stable error code
nextStepsNoSet on failure: steps to run next (`command` runs on the worker host)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive, closed-world), so the description's job is added context — and it delivers by naming the specific data fields returned, including resumability of the branch and the CLI-equivalent command. It does not discuss size, rate limits, or error behavior for invalid/stale keys.

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

Conciseness5/5

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

Two tight sentences, front-loaded with the core purpose and followed by a precise content inventory. The CLI-equivalence sentence is compact and useful for anyone familiar with the underlying tool.

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

Completeness4/5

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

A read-only single-resource fetch with full param coverage, rich annotations, and an output schema — the description supplies everything needed to select and call it. The only missing piece is routing guidance against sibling detail/list tools.

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

Parameters3/5

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

With one parameter at 100% schema coverage, the schema already explains taskKey including its `local-…` format and origin from get_queue. The description adds nothing further about the key, so the baseline of 3 applies.

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

Purpose4/5

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

States a concrete verb ('full details of one ad-hoc task') and enumerates the payload contents — brief, edit history, dependency states, pinned agent, recent runs, branch resumability. It's clearly a single-item detail read rather than a list, though it doesn't explicitly contrast itself with get_queue or get_run.

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

Usage Guidelines3/5

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

Usage is implied: this is the detail view for one task key, and the schema points to get_queue as the source of that key. There is no explicit when-to-use/when-not or named alternative for fetching run-level detail versus task-level detail.

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