Skip to main content
Glama
mhaviv

pr-narrator-mcp

by mhaviv

analyze_git_changes

Read-onlyIdempotent

Examine the current Git repository state and changes to prepare commit messages and pull request content.

Instructions

Analyze the current git repository state and changes. Provides context for generating commit messages and PR content.

Returns:

  • Repository info (branch, base branch)

  • Ticket extracted from branch name

  • Branch prefix (task/, bug/, feature/, etc.)

  • Staged changes with file list and suggested commit type/scope

  • Branch changes since base branch with commit history

  • Working tree status (unstaged modified, untracked, and deleted files)

  • All tickets found in branch name and commits

Use this before generating commits or PRs to understand the changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repoPathNoPath to the git repository. IMPORTANT: Always pass the user's current project/workspace directory.
includeFullDiffNoInclude the full diff content (can be large)
Behavior5/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, idempotentHint=true. The description adds substantial value by detailing the extensive return information (repo info, tickets, staged changes, branch changes, working tree status), going well beyond annotations.

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 well-structured with clear sections and bullet points for return values. It is slightly verbose but front-loaded with the purpose sentence, making it easy to scan.

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?

Given no output schema, the description thoroughly enumerates what the tool returns: repository info, tickets, branch prefix, staged changes, branch changes, working tree status, and all tickets. This is complete for an agent to understand the tool's output.

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?

Input schema has 100% coverage with clear descriptions for both parameters (repoPath and includeFullDiff). The description does not add additional meaning beyond the schema, but the schema is already sufficient, resulting in a baseline score.

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 analyzes git repository state and changes, listing specific return types. It distinguishes itself from sibling tools like extract_tickets and generate_commit_message by positioning itself as a prerequisite for commit/PR generation.

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

Usage Guidelines4/5

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

Explicitly states 'Use this before generating commits or PRs to understand the changes,' providing clear when-to-use guidance. It doesn't explicitly mention when not to use, but context from siblings implies alternatives.

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/mhaviv/pr-narrator-mcp'

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