# Pre-execution block, defined with a sourced example

GLOSSARY, read 12 Nov 2026

**The short answer.** A pre-execution block stops a tool call before it runs, based on policy, instead of detecting it afterward. It needs a hook point ahead of the action. Compare it with after-the-fact alerting when you judge a product. Anthropic's hooks reference documents a PreToolUse event with decision control, which runs before a tool call and can change whether it proceeds.

## Definition

A pre-execution block stops a tool call before it runs, based on policy, instead of detecting it afterward. It needs a hook point ahead of the action. Compare it with after-the-fact alerting when you judge a product.

## Example from a real source

**Example.** Anthropic's hooks reference documents a PreToolUse event with decision control, which runs before a tool call and can change whether it proceeds.

## Related terms

- [Inventory](/glossary/inventory/): An inventory is a current list of the AI tools, agents, MCP servers, skills and extensions on each device, with versions and owners.
- [Desktop AI app](/glossary/desktop-ai-app/): A desktop AI app is a native application, such as an AI chat client with local file access, that runs on the user's machine.
- [Runtime guardrail](/glossary/runtime-guardrail/): A runtime guardrail is a control that inspects and can block an agent's prompts or actions while it runs, as opposed to scanning it before deployment.

## Where to read more

- [The Agent Surface Map](/agent-surface-map/)
- [The Action Control Matrix](/action-control-matrix/)
- [All glossary terms](/glossary/)

## Sources

- code.claude.com/docs/en/hooks: https://code.claude.com/docs/en/hooks (read 12 Nov 2026)

Last reviewed 12 Nov 2026. Canonical: https://aiendpointsecurityranked.com/glossary/pre-execution-block/
