Creates a new tool in the environment.
POST https://gateway.orkeia.ai/tools
Authenticationauthorization: <your_token>.
The service expects a wrapper with the propertytool. (Theenvironmentis handled on the server.)
Note: the fieldtypedoes not exist in this interface. Use the fields defined inTool(below).
Tool)| Name | Type | Required | Description | Example |
|---|---|---|---|---|
| id | string | No | Unique identifier (returned by the backend). | TOOL_123456 |
| name | string | Yes | Name of the tool. | My Tool |
| description | string | Yes | Short description of the functionality. | Performs integration operations |
| code | string | No | Executable source code of the tool (when applicable). | export async function run(){...} |
| entryFunctionName | string | No | Name of the exported function in code that will be invoked. | run |
| sectors | string[] | Yes | Authorized sectors to use the tool. | ["engineering","legal"] |
| publisher | string | Yes | Publisher/organization responsible. | Orkeia |
| enabled | boolean | Yes | Indicates if the tool is enabled. | true |
| environments | string[] | Yes | Environments in which the tool is available. | ["prod","staging"] |
| mcp | object | No | Configuration for use via Model Context Protocol (MCP). | { "url": "...", "transport": "sse" } |
| mcp.url | string | No | URL of the MCP server. | https://tools.orkeia.ai/my-tool |
| mcp.transport | 'sse' | 'streamable-http' | No | Supported MCP transport type. | sse |