Skip to main content
Glama

get_project_context

Retrieve relevant project context such as tech stack, structure, dependencies, and git info to help AI assistants understand a codebase and answer accurately.

Instructions

Get relevant project context including tech stack, structure, and dependencies

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
useCacheNoWhether to use cached project context if available (default: true)
projectPathNoPath to the project directory (optional, uses current context if not provided)
refreshCacheNoWhether to refresh cached project context (default: false)
workspaceRootNoRoot path of the workspace (optional)
analyzeGitInfoNoWhether to extract git repository information (default: true)
analyzeDependenciesNoWhether to analyze project dependencies (default: true)
analyzePackageFilesNoWhether to analyze package.json, requirements.txt, etc. (default: true)
analyzeFileStructureNoWhether to analyze file structure and patterns (default: true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are provided, so the description must carry the full behavioral burden. It implies a read operation through 'Get,' but it does not disclose caching behavior, refresh behavior, read-only safety, git analysis, or any other operational traits; the schema exposes many of these flags, but the description does not add behavioral context beyond the minimal purpose.

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 a single front-loaded sentence with no unnecessary wording. It is appropriately sized for a concise tool summary.

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

Completeness2/5

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

The tool has eight parameters, no annotations, and no output schema, which places a higher burden on the description. The description identifies the resources returned but omits when to use it, how caching and analysis flags behave, and what to expect from invocation, leaving it under-specified for the tool's complexity.

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 all eight parameters are already documented in the input schema. The description does not describe parameters such as useCache, refreshCache, analyzeGitInfo, or projectPath, so it adds no meaning beyond the schema; baseline 3 applies.

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 states a specific verb and resource: 'Get relevant project context' with the included categories tech stack, structure, and dependencies. It is clear enough to understand the tool's basic purpose, though it does not distinguish itself from the sibling get_project_patterns or setup_project tools.

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

Usage Guidelines2/5

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

The description provides no explicit when-to-use or when-not-to-use guidance, and it does not reference alternatives such as get_project_patterns. An agent is left to infer that it should be called whenever project context is needed.

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