# Function toolSuccess

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

- toolSuccess(text: string): ToolResult

  Creates a successful tool result.

  #### Parameters

  - text: string

    The result text

  #### Returns ToolResult

  A ToolResult with the text content

  #### Example

      return toolSuccess(JSON.stringify({ status: 'ok', data: result }));

  - Defined in packages/nexus-agents/src/mcp/tools/tool-result.ts:86