# Function logToolSuccess

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

- logToolSuccess(
  logger: ILogger,
  toolName: string,
  durationMs: number,
  resultInfo?: Record<string, unknown>,
  ): void

  Logs the successful completion of a tool execution.

  #### Parameters

  - logger: ILogger

    The logger to use

  - toolName: string

    Name of the tool

  - durationMs: number

    Duration of the execution in milliseconds

  - `Optional` resultInfo: Record<string, unknown>

    Optional information about the result

  #### Returns void

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