Skip to main content

Interface: RegisterToolsParams

Defined in: registerTools.ts:7

Parameters for registerTools.

Properties​

defer?​

optional defer?: boolean | DeferToolsOptions

Defined in: registerTools.ts:25

Defers tools behind three tools — search, describe, call — instead of registering one MCP tool each. true takes every DeferToolsOptions default.

A large tool set overflows a client's context: every definition ships to the model on every turn, some providers cap the number of tools per request, and clients that don't defer tool loading choke on the list. Deferred, the model sees three small definitions, and a schema enters its context only for the tools it is about to use.

Default​

false

server​

server: McpServer

Defined in: registerTools.ts:9

The MCP server the tools are registered on.


tools​

tools: Tool[]

Defined in: registerTools.ts:11

The tools to expose.