Skip to main content
Glama

task_context

Read-only

Returns a task or bug by ID or number (unique within the company): spec, gist (gistInfo.stale - the spec changed after the gist), category, type (severity for bugs; bugType - defect nature), feature (feature.spec with includeFeatureSpec; the full feature plan is in the feature context), relations (dependencies - what it waits for; blockedTasks - what waits for it), allowedActions, specSha and resultSha (hashes for writing a whole field), productID and a page of the task chat; a large spec or result comes as null with Info - size, lines and an outline. Imported designs are in designs (design: markers; snapshotFID, contextFID with contextSize, assetsFID) the design block holds design files and the main frames of the task's modules (for visual work), and attachments are in attaches by fid; raw design links without a designs entry are not imported. Useful when the user mentions a task number or asks about a task.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "task_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
IDNoTask ID; preferred over key.
keyNoTask number without a prefix, e.g. 25865, if the ID is unknown.
chatAfterNoRead messages newer than chat.after.
chatLimitNoChat messages to return (default 20, max 100).
chatBeforeNoRead messages older than chat.before.
includeFeatureSpecNotrue includes the full feature spec (feature.spec); omitted by default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • changedInput schema / properties / chatLimit / maximum
      Previous value: -9007199254740991New value: +100
    • changedInput schema / properties / chatLimit / minimum
      Previous value: --9007199254740991New value: +1
    • removedInput schema / properties / key / maximum
      Removed value: -9007199254740991
    • removedInput schema / properties / key / minimum
      Removed value: --9007199254740991
  2. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Annotations only establish that this is a safe read (readOnlyHint=true, destructiveHint=false, openWorldHint=false). The description goes well beyond that: large spec or result fields come back as null with a <field>Info object (size, lines, outline), chat is returned a page at a time, specSha/resultSha exist for whole-field writes, and raw design links without a designs entry are silently not imported. These are exactly the edge cases an agent must anticipate to call it correctly.

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

Conciseness2/5

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

The entire description is one enormous run-on sentence built from nested parentheses, and the single most actionable piece of guidance ('when the user mentions a task number') is buried at the very end. The content is dense and mostly earns its place, but the lack of sentence breaks or ordering makes it hard to scan.

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 no output schema, the description carries the burden of explaining returns, and it does so thoroughly: field list, null-substitution behavior, chat paging, design markers and attachments. What it omits is error behavior (e.g., an ID that doesn't exist or isn't visible) and any cost or size caveats beyond the nulling rule.

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 output-linked meaning the schema does not: 'feature.spec with includeFeatureSpec', 'a page of the task chat' for the paging trio, and ID-vs-number identity ('unique within the company'). It doesn't restate formats or defaults, leaving those to the schema, which is appropriate.

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?

Opens with a specific verb+resource: 'Returns a task or bug by ID or number (unique within the company)', and enumerates the payload (spec, gist, relations, allowedActions, chat page, designs, attaches). It even distinguishes itself from a sibling by noting 'the full feature plan is in the feature context'. It stops short of a one-line statement of intent separate from the field inventory, but the resource is unambiguous.

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?

The only routing signal is the trailing clause 'Useful when the user mentions a task number or asks about a task', plus the implicit pointer that the full feature plan lives in the feature context. There is no explicit when-not-to-use, and nothing distinguishes it from task_search, task_code_context or task_evaluation_context in the sibling list. Usage is implied rather than stated.

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