Skip to main content
Glama

analyze_changes

Analyze staged git changes to surface relevant engineering contexts, file summaries, and suggested reviewer personas for efficient code review.

Instructions

Analyze staged git changes to identify relevant engineering contexts (v0.5.0 enhanced).

Args: project_root: Absolute path to the project root include_diff_stats: Include line change statistics (additions/deletions) suggest_personas: Suggest relevant personas based on change context

Returns: Summary of changed files, contexts, and recommended personas for review

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_rootYes
suggest_personasNo
include_diff_statsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description must fully disclose behavioral traits. It mentions the input parameters and the return summary, but does not state whether the tool is read-only, what happens if no staged changes exist, any permissions needed, or potential side effects. This leaves significant behavioral ambiguity.

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 concise and front-loaded with a clear summary sentence. The 'Args' and 'Returns' sections are structured and each line adds information. However, the inclusion of '(v0.5.0 enhanced)' is unnecessary clutter and doesn't add value for an agent selecting or invoking the tool.

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

Completeness3/5

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

Given there is an output schema and the description explains the return content in brief, the basic functionality is covered. However, it lacks broader context about when to use this tool in a workflow, what 'relevant engineering contexts' means, or any limitations/requirements. The sibling tools suggest a larger system, and this description does not explain how this tool fits in, making it minimally viable but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 0%, so the description must compensate. It adds meaning beyond the schema titles: 'project_root' is clarified as 'Absolute path', 'include_diff_stats' is explained as 'line change statistics (additions/deletions)', and 'suggest_personas' is described as 'Suggest relevant personas based on change context'. These explanations add genuine semantic value, though they do not cover all possible nuances or defaults (though defaults are in the schema).

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 clearly states the tool's purpose: 'Analyze staged git changes to identify relevant engineering contexts.' This uses a specific verb (analyze), resource (staged git changes), and intended outcome (identify contexts). It also distinguishes itself from siblings by focusing on git changes rather than queries, sessions, or standards.

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 guidance on when to use this tool versus alternatives. It does not mention any exclusions, prerequisites (e.g., needing staged changes to exist), or scenarios where other tools would be more appropriate. The usage is only implied by the description itself, but no explicit 'when to use' guidance is given.

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

Install Server

Other Tools

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/amarodeabreu/sensei-mcp'

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