Skip to main content
Glama

Highland Intel APIs

Claude Code hooks validator

hooks-validate
Read-only

Validates a Claude Code hooks block (or a whole settings.json): events, matchers, hook types, timeouts and risky commands. Returns { ok, events, hookCount, findings[{ severity: error|warning|info, code, path, message }] and counts { error, warning, info } }. Price: 2 credits (1 credit = 1 CAD cent) per successful call; input that does not match the schema is rejected before billing.

Input Schema

NameRequiredDescriptionDefault
configYesThe config as a JSON string (comments and trailing commas allowed) or as an object, up to 60,000 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With readOnlyHint=true already declaring a safe read operation, the description adds substantial non-obvious behavior: billing of 2 credits per successful call, rejection before billing on schema mismatch, and the exact shape of the validation result. Nothing contradicts the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two compact sentences. The core purpose and validation scope are front-loaded, and the billing and return-shape details follow without padding.

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?

The tool is simple: one required input and no output schema. The description compensates by naming exactly what gets validated and by describing the return structure (ok, events, hookCount, findings, counts), so an agent has everything needed to invoke and interpret it.

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?

There is only one parameter, and the schema fully documents it as a JSON string or object up to 60,000 characters. The description adds the useful scope that the input can be a hooks block or a whole settings.json, but does not otherwise elaborate on the parameter beyond the schema's own description.

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 states a specific verb (validates) and a clearly scoped resource: a Claude Code hooks block or an entire settings.json. It also enumerates the checked dimensions (events, matchers, hook types, timeouts, risky commands), which distinguishes it from validator siblings such as mcp-config-validate or json-validate.

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?

Usage is implied by the resource named: use this for Claude Code hooks configuration. However, the description does not explicitly say when to choose it over related siblings (e.g. json-validate, mcp-config-validate, claude-md-lint), nor does it state exclusions or prerequisites.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources