# Type Alias ToolHandler

ToolHandler: (args: unknown) => Promise<ToolResult>

Typed handler function for an MCP tool call.

#### Type Declaration

- - (args: unknown): Promise<ToolResult>

  - #### Parameters

    - args: unknown

      Raw (unvalidated) tool arguments from the MCP request

    #### Returns Promise<ToolResult>

    Promise resolving to the tool execution result

- Defined in server/types.ts:24