# Claude Code hooks pre-tool-use validation

Pre-tool-use hook validates and gates tool calls; classify whether call is safe, approved, or should be blocked

Grade: S — Top tier. Meets A, and the payoff is major with high confidence.. Score: 5.67.

Vertical: Software & tech.

Function: Agents & dev.

Status: Seen in the wild.

Volume: high.

Value: major.

Risk: moderate.

Evidence: described plan.

Flags: None.

- [Source](https://www.truefoundry.com/docs/ai-gateway/claude-code-hooks)
- [Vertical](/verticals/saas_tech/)
- [Function](/functions/agents_dev/)
- [Prompt injection detection guardrail](/use-cases/prompt-injection-detection-guardrail/)
- [LLM output safety classification](/use-cases/llm-output-safety-classification/)
- [LLM cost-quality routing with RouteLLM](/use-cases/llm-cost-quality-routing-with-routellm/)
- [Log sensitive-data leak](/use-cases/log-sensitive-data-leak/)
- [Prompt injection scanner](/use-cases/prompt-injection-scanner/)
- [Claude Code agent hooks for guardrails](/use-cases/claude-code-agent-hooks-for-guardrails/)
