Skip to main content
Glama

Get project context

get_project_context

Retrieve a project's persistent profile—architecture, conventions, commands, design rules, constraints, and decisions—plus freshness details on key files changed since last verification.

Instructions

Retrieve the persistent project profile (architecture, conventions, commands, design rules, constraints, decisions) plus freshness info showing which key files changed since it was last verified.

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": "get_project_context"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoProject root directory. Defaults to the MCP client's current working directory.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden. It does disclose the shape of what comes back (profile sections plus file-change freshness) and "Retrieve" implies a read-only operation, but it never states what happens when no profile exists yet (error vs. bootstrap vs. empty), whether the profile is generated or merely read, or whether the call has any side effects such as recording a verification timestamp.

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?

One front-loaded sentence with a clear main clause followed by an informative parenthetical enumeration and a secondary clause about freshness. Nothing is redundant, though the dense list of profile sections is slightly heavy for a single sentence.

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?

Since there is no output schema, the description must convey return contents, and it does so in detail, including the freshness dimension that an agent needs to decide whether the profile is stale. The remaining gap is edge-case behavior (missing profile, permissions, whether a stale profile triggers regeneration) for a tool whose simplicity otherwise keeps the description adequate.

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?

There is a single optional root parameter at 100% schema description coverage, and the schema already documents the default (the MCP client's working directory). The description adds no further meaning about root, such as whether it must be a git root or how nested directories resolve; baseline 3 applies when the schema does the work.

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?

The description uses a specific verb ("Retrieve") against a well-defined resource ("persistent project profile") and enumerates its contents (architecture, conventions, commands, design rules, constraints, decisions) plus freshness metadata. This clearly reads as the read-side counterpart to the sibling update_project_context, though it never names that alternative explicitly.

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?

Usage is only implied: the freshness component hints the tool is meant to be called before acting on a project after files have changed, but there is no explicit when-to-use, when-not-to-use, or comparison to siblings like inspect_project or update_project_context. The agent must infer the retrieval-before-action workflow.

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