# Function logToolError

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- logToolError(
  logger: ILogger,
  toolName: string,
  error: Error,
  durationMs: number,
  ): void

  Logs a failed tool execution.

  #### Parameters

  - logger: ILogger

    The logger to use

  - toolName: string

    Name of the tool

  - error: Error

    The error that occurred

  - durationMs: number

    Duration of the execution in milliseconds

  #### Returns void

  - Defined in packages/nexus-agents/src/mcp/middleware/logging.ts:118