post https://api.cloud.deepset.ai/api/v2/workspaces//tools
Create a new tool or update an existing tool.
This unified endpoint handles both creation and updates for all tool types (MCP server tools and pipeline tools). If tool_id is provided in the request, the tool will be updated; if tool_id is None, a new tool will be created.
For MCP server tools, provide mcp_server data with URL, transport type, and optional secret ID. For pipeline tools, provide pipeline data with pipeline ID and optional input/output mappings.