Skip to main content
Glama

get_context

Assemble task context from the indexed codebase: matches decisions, rationale, tests, approvals, and file impact, with freshness verification against source contents.

Instructions

Assemble task context: matching decisions with rationale, approval, owner, sources, last review, and freshness, plus related tests, file impact, and any available map entries. Map verification is rechecked against sampled source contents; stale or unknown verification requires a fresh review, and recordedVerdict preserves the historical verdict. Proposals are suggestions; legacy records are unreviewed; accepted decisions are constraints subject to freshness. No initialization or map required. Pass task and optional files. map.status and diagnostics preserve missing or invalid knowledge. Impact covers up to three unique files, expanding directory anchors.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirYesAbsolute path to the project root directory
taskYesThe task, bug, or change request in natural language — e.g. 'add rate limiting to the API client' or a ticket description
filesNoOptional file paths already known to be involved (e.g. from a diff or stack trace). Entries containing them are boosted above pure text matches.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.17.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so richly: it discloses rechecking of map verification, stale/unknown verification requiring fresh review, recordedVerdict preserving history, semantic distinctions for proposals/legacy/accepted records, and impact limits. These are genuinely useful behavioral traits beyond the schema.

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 description is dense but every clause contributes meaning, and it is front-loaded with the core purpose before caveats. It is longer than the minimum, but the density is warranted given the behavioral nuances and absent annotations.

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?

Despite having no output schema, the description outlines what the assembled context contains and important constraints. It lacks an explicit return-value shape or explicit alternative routing, but for a 3-parameter tool with full schema coverage, it is reasonably complete.

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 baseline is 3. The description adds only light value by mentioning 'task and optional files' and noting that impact covers up to three unique files, but it does not substantially extend the schema's already-complete parameter documentation.

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 uses a specific verb ('Assemble task context') and names the precise resource: matching decisions with rationale, approval, owner, sources, freshness, tests, file impact, and map entries. This clearly distinguishes get_context from decision-writing, review, verification, and impact-only sibling tools.

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

Usage Guidelines4/5

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

The description gives clear contextual conditions: 'No initialization or map required' and 'Pass task and optional files.' This tells an agent when this tool is appropriate without prerequisites. It does not explicitly name alternatives or exclusions, but the context is strong enough for intended use.

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