Skip to main content
Glama

Get a task reservation

get_task
Read-onlyIdempotent

Retrieve a task by its id (REST or MCP), or by namespace and task_key (MCP). REST key lookup uses GET /v1/tasks?namespace=...&task_key=.... Includes completed results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoResource id.
task_keyNoStable task identifier.
namespaceNoShared namespace.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, non-destructive, and closed-world behavior, so the safety profile is covered. The description adds that completed results are included and gives the REST key-lookup route, but does not discuss pagination, auth, or rate limits; with annotations in place this is modest added context.

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?

The definition is front-loaded and compact, moving from the core retrieval action to lookup modes and then to the REST endpoint detail. Every sentence contributes without repetition.

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?

With a rich annotation set and an output schema, the description does not need to cover return values. It is complete enough for a read-only retrieval tool with three optional parameters, though it could clarify tool-selection boundaries versus mutating siblings.

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 baseline is 3, but the description adds meaningful lookup semantics: id works in both REST and MCP, while namespace+task_key is described as an MCP path, with a REST query example. This goes beyond the generic schema descriptions, though the parenthetical '(MCP)' next to namespace/task_key while also describing a REST key lookup is slightly confusing.

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 ('Retrieve') and resource ('a task'), and enumerates the two supported lookup modes. The retrieval framing distinguishes it from action siblings like claim_task and complete_task, though it does not name them.

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?

Explains which parameter combinations are valid (id via REST or MCP; namespace/task_key via MCP) and gives the REST endpoint for key lookup. However, it offers no explicit guidance on when to choose this tool over alternatives such as claim_task or complete_task.

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.

Resources