[**agentfootprint**](../README.md)

***

[agentfootprint](/agentfootprint/api/generated/README.md) / ToolGatePredicate

# Type Alias: ToolGatePredicate

> **ToolGatePredicate** = (`toolName`, `ctx`) => `boolean`

Defined in: [src/tool-providers/types.ts:143](https://github.com/footprintjs/agentfootprint/blob/d1cb45510740421f2b84b6de9f852a72e94bb106/src/tool-providers/types.ts#L143)

Predicate for `gatedTools` — runs per tool, per iteration.

## Parameters

### toolName

`string`

### ctx

[`ToolDispatchContext`](/agentfootprint/api/generated/interfaces/ToolDispatchContext.md)

## Returns

`boolean`
