Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

git_hooks

Read-only

Generate pre-commit hooks to enforce code quality, check or preview existing hooks, and run security scans, TODO checks, lint, or tests before commits.

Instructions

Generate pre-commit git hooks for code quality. Supports actions: "status" to check existing hooks, "preview" to see what a hook would do, "generate" to create a hook script. Hooks can run security_scan, find_todos, or custom commands.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "action": "<action>"
    },
    "name": "git_hooks"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYes"status" shows current hooks, "preview" shows what would run, "generate" creates the hook file
checksNoChecks to include: "security", "todos", "lint", "test"

Output Schema

NameRequiredDescriptionDefault
dataNo
actionYes
hookPathNo
installedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

C2.8/5.0
Behavior1/5

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

The annotations declare readOnlyHint=true, yet the description states that the "generate" action "create[s] a hook script" — a filesystem write. That directly contradicts the annotation for one of the three actions, and the description adds nothing about where the file is written, whether an existing hook is replaced, or what permissions are needed.

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?

Three short sentences: purpose first, then the action breakdown, then what hooks can run. Nothing is padded and the key information is front-loaded, though the leading verb "Generate" is narrower than the tool's actual three-action scope.

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

Completeness1/5

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

For a tool with a generate/write path, the description omits the details an agent most needs: where the hook is written, whether generation is destructive to existing hooks, and how the checks array maps to the emitted script. The presence of an output schema excuses it from documenting return values, but the misalignment with readOnlyHint leaves the safety profile of the "generate" path unresolved.

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 coverage is 100%, so both parameters are already documented, and the description largely restates the action enum. It adds some meaning by naming what hooks can run (security_scan, find_todos, custom commands), but this uses different vocabulary than the schema's "security"/"todos"/"lint"/"test" check values and mentions "custom commands" that have no corresponding schema entry, which adds ambiguity rather than clarity.

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 concrete verb and resource ("Generate pre-commit git hooks for code quality") and then enumerates the three actions with a short gloss for each, so an agent can tell what the tool produces. It does not, however, distinguish this tool from siblings like security_scan or find_todos, which it only mentions as things a hook can run.

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

Usage Guidelines3/5

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

The per-action glosses ("status" to check existing hooks, "preview" to see what a hook would do, "generate" to create a hook script) imply when each action is appropriate, which is useful. But there is no guidance on when to use this tool versus calling security_scan or find_todos directly, no prerequisites, and no note about existing hooks being overwritten.

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