Skip to main content
Glama

get_task_context

Read-onlyIdempotent

Fetch all context needed to start a dev task—execution paths, tests, entry points—from a natural language description. Replaces manual chaining of search, symbol lookup, and file reads.

Instructions

All-in-one context for starting a dev task: execution paths, tests, entry points, adapted by task type. Use as your FIRST call when beginning any new task — replaces manual chaining of search → get_symbol → Read. For narrower feature-code lookup use get_feature_context instead. Read-only. Returns JSON (default) or Markdown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYesNatural language description of the task
focusNoContext strategy: minimal (fast, essential only), broad (default, wide net), deep (follow full execution chains)
detail_levelNoOutput verbosity. "minimal" returns ~40-60% fewer tokens (drops scores, fqn, signatures, summaries — keeps name/file/line). Use when you only need to pick a candidate before drilling in with get_symbol. Default: "default".
token_budgetNoMax tokens (default 8000)
include_testsNoInclude relevant test files (default true)
output_formatNo"json" (default, structured fields) or "markdown" (single LLM-optimized document with code fences, ~15-20% cheaper).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed3 schema fields changedv3.3.0
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • addedInput schema / properties / detail_level
      Added value: +{
      +  "description": "Output verbosity. \"minimal\" returns ~40-60% fewer tokens (drops scores, fqn, signatures, summaries — keeps name/file/line). Use when you only need to pick a candidate before drilling in with get_symbol. Default: \"default\".",
      +  "enum": [
      +    "minimal",
      +    "default",
      +    "full"
      +  ],
      +  "type": "string"
      +}
    • changedInput schema / properties / output_format / description
      Previous value: -"Output format. \"json\" (default) returns structured fields; \"markdown\" returns a single LLM-optimized document with code fences (~15-20% token savings)."New value: +"\"json\" (default, structured fields) or \"markdown\" (single LLM-optimized document with code fences, ~15-20% cheaper)."
  2. Added
  3. Removedv1.38.0
  4. Changed2 schema fields changedv1.35.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / output_format
      Added value: +{
      +  "description": "Output format. \"json\" (default) returns structured fields; \"markdown\" returns a single LLM-optimized document with code fences (~15-20% token savings).",
      +  "enum": [
      +    "json",
      +    "markdown"
      +  ],
      +  "type": "string"
      +}
  5. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, and the description reinforces these with 'Read-only.' It adds value by disclosing the output formats (JSON default or Markdown) and the adaptive-by-task-type behavior. No contradiction with annotations is present, and the extra output-format detail goes beyond what annotations provide.

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 description is compact and front-loaded: the first sentence states the core purpose, the second gives direct usage guidance, and the third handles sibling differentiation. Every sentence earns its place with no redundant filler.

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?

Given six parameters, a rich schema, and no output schema, the description covers the essential call-or-not decision and high-level output shape. It names the context contents (execution paths, tests, entry points) and output formats, though it does not enumerate the exact JSON fields returned; this is a minor gap for an all-in-one context tool but not blocking.

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?

Schema description coverage is 100%, so the schema already explains all six parameters, including task, focus, detail_level, token_budget, include_tests, and output_format. The description does not need to compensate for parameter gaps and adds only general context about output format, which is already reflected in the schema. Baseline 3 is appropriate.

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 description clearly identifies the tool as the all-in-one context for starting a dev task, listing concrete contents (execution paths, tests, entry points) and how it adapts by task type. It also explicitly distinguishes itself from the sibling get_feature_context, so an agent can tell them apart without inspecting schemas.

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?

The description gives explicit when-to-use guidance: 'Use as your FIRST call when beginning any new task' and frames it as a replacement for manually chaining search → get_symbol → Read. It also directs narrower feature-code lookups to get_feature_context, providing a clear alternative and exclusion condition.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/nikolai-vysotskyi/trace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server