Skip to main content
Glama

diff_context

Analyze code changes to identify impacted files and dependencies, enabling precise impact assessment for modifications in software development workflows.

Instructions

Impact analysis for changed files. Pass comma-separated paths OR use scope to auto-detect from git.

changed_files: comma-separated file paths (overrides scope if provided)
scope: git detection mode — "unstaged" (default), "staged", "commit", "branch"
max_tokens: cap output length (default 6000)
output_format: "text" (default) or "json" for structured response

NOTE: When using scope (git auto-detect), the repo must be a git repository.
Returns a NOT_GIT_REPO error if it isn't. If changed_files is provided,
git is not required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathYes
changed_filesNo
scopeNounstaged
max_tokensNo
exclude_dirsNo
output_formatNotext

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

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/Elmoaid/TempoGraph'

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