Skip to main content
Glama

get_context

Read-only

Reads a project's shared context as a role-specific handoff package, including purpose, invariants, architecture, progress, next action, provenance, and context_version for briefing before acting.

Instructions

Read the project's shared Context as a role-specific handoff package: purpose, invariants, architecture, progress and next action, pinned to the current context_version, with provenance for each fact and the available_skills list. Read-only. Use it to brief yourself before acting as a role, and pass the returned context_version to tools that need it (review_changes, propose_context_patch). To recover everything after a fresh chat use bootstrap_project; for older versions use get_context_history; for a token-budgeted package use build_handoff.

Input Schema

NameRequiredDescriptionDefault
roleNoRole the package is written for, for example PM (default), SA, SD, RD, SD/RD or REVIEW.PM
scopeNoNarrow content to one section: 'project' (purpose, invariants), 'architecture', 'constraints' (invariants) or 'state' (progress, next action). Omit for the full package.
task_idNoTask id to scope the call to. Omit it for the tool's default scope.
project_idYesRegistered project id, as returned by list_projects.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.1.3
    • addedInput schema / properties / project_id / description
      Added value: +"Registered project id, as returned by list_projects."
    • addedInput schema / properties / role / description
      Added value: +"Role the package is written for, for example PM (default), SA, SD, RD, SD/RD or REVIEW."
    • addedInput schema / properties / scope / description
      Added value: +"Narrow content to one section: 'project' (purpose, invariants), 'architecture', 'constraints' (invariants) or 'state' (progress, next action). Omit for the full package."
    • addedInput schema / properties / task_id / description
      Added value: +"Task id to scope the call to. Omit it for the tool's default scope."
  2. 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=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered; the description's 'Read-only' sentence is largely redundant. It does add real behavioral context beyond the annotations: results are pinned to the current context_version and every fact carries provenance, which matters for reproducibility. It stops short of describing pagination or size limits, but for a read-only retrieval tool that is minor.

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 core purpose and content list come first, followed by the safety note and then a compact alternative-routing sentence. Every clause carries information, though the 'Read-only' restatement of annotations and the parenthetical tool list make it slightly longer than strictly necessary.

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

Completeness5/5

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

For a four-parameter read tool with an output schema and full annotation coverage, the description supplies everything an agent needs: what comes back, how it is scoped, when to choose a sibling, and what to do with the returned context_version. No material gap remains.

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 role, scope, task_id, and project_id with defaults and accepted values. The description only reinforces that the package is role-specific and version-pinned; it adds no syntax or format detail the schema lacks. 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 uses a specific verb ('Read') on a specific resource ('the project's shared Context') and enumerates the package contents (purpose, invariants, architecture, progress, next action, provenance, available_skills). An agent can distinguish it from get_context_history, bootstrap_project, and build_handoff without opening any schema.

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?

It states the primary use case ('brief yourself before acting as a role'), names three alternatives with the conditions that select them (bootstrap_project for fresh chats, get_context_history for older versions, build_handoff for token budgets), and notes the downstream tools that consume the returned context_version.

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