Skip to main content
Glama

precommit

Validate code changes before committing by analyzing security, performance, quality, tests, or breaking changes. Specify files, focus areas, and severity levels to ensure pre-commit checks meet project standards.

Instructions

Pre-commit validation for code changes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
compareToNoGit ref to compare against (e.g., 'main', 'HEAD~1'). If not provided, analyzes current changes
filesNoSpecific files to validate (optional - will analyze git changes if not provided)
focusNoValidation focus areaall
includeStagedNoInclude staged changes in validation
includeUnstagedNoInclude unstaged changes in validation
providerNoAI provider to usegemini
severityNoMinimum severity level to reportmedium
taskYesWhat to validate for pre-commit (e.g., 'review changes before commit', 'validate security implications', 'check for breaking changes')

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/RealMikeChong/ultra-mcp'

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