Partially updates an existing AI Tool.
Changes only the fields the body carries; an omitted or null field keeps its stored value, so a body with only `description` leaves the request or code, parameters and action type alone. Works for API tools and Python code tools. A sent `descriptor` or `parametersMetadata` replaces the stored one as a whole, under the same rules as the PUT: the descriptor must be the same kind as the stored tool's (400 otherwise), a header sent back as the mask keeps its stored value, and a parameter sent without a `type` is stored as `STRING`. A change to what the tool does moves its `definitionVersion`; a new name or description does not. MCP tools change only by re-import.
Authorization
Bearer JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.
In: header
Path Parameters
The integration identifier.
The unique identifier of the AI Tool.
The tenant identifier
The fields to change.
Name shown in the UI. Null leaves it unchanged.
What the tool does, as the model reads it. Null leaves it unchanged; an empty string clears it.
What the tool does to the outside world: READ_ONLY, REVERSIBLE or IRREVERSIBLE. Null leaves it unchanged.
Setting it does not record a review; only :review does.
"UNSPECIFIED" | "READ_ONLY" | "REVERSIBLE" | "IRREVERSIBLE"The tool's parameters. When sent, the list replaces the stored one as a whole; a parameter sent without
a type is stored as STRING. Null leaves the parameters unchanged.
The tool's request (apiTool) or Python code (codeTool). When sent, it replaces the stored
descriptor as a whole and must be the same kind as the stored tool's, or the update returns 400; a header
sent back as the mask keeps its stored value. Null leaves the descriptor unchanged.
Response Body
curl -X PATCH "https://api.fruxon.com/v1/tenants/string/integrations/string/tools/string" \ -H "Content-Type: application/json" \ -d '{}'{
"descriptor": {
"apiTool": {
"headers": {},
"httpMethod": "string",
"url": "string",
"queryParameters": {},
"body": "string",
"bodyContentType": "string",
"optionalBodyBlocks": [
"string"
],
"formParameters": {},
"resultType": "STRING",
"resultTransformExpression": "string",
"pagination": {
"cursorPath": "string",
"hasMorePath": "string",
"offset": null,
"linkHeader": null
},
"successStatusCodes": [
0
],
"multipart": {
"parts": []
},
"timeoutMs": 0,
"responseSchema": null
},
"predefinedTool": {
"resultType": "STRING"
},
"mcpTool": {
"serverUrl": "string",
"mcpToolName": "string",
"annotations": {
"readOnlyHint": null,
"destructiveHint": null,
"idempotentHint": null,
"openWorldHint": null
},
"resultType": "STRING"
},
"codeTool": {
"code": "string",
"timeoutSeconds": 0,
"packages": [
"string"
],
"resultType": "STRING"
}
},
"isInternal": false,
"isDeprecated": false,
"isAsync": false,
"createdAt": 0,
"id": "string",
"modifiedAt": 0,
"integrationId": "string",
"displayName": "string",
"description": "string",
"toolType": "API",
"isModifiable": true,
"actionType": "READ_ONLY",
"definitionVersion": 0,
"actionTypeReview": {
"actionType": "READ_ONLY",
"definitionVersion": 0,
"reviewedAt": 0,
"reviewedBy": "string"
},
"actionTypeReviewState": "REVIEWED",
"messagingRole": "CHANNEL_SEND",
"resultType": "STRING",
"parametersMetadata": [
{
"name": "string",
"index": 0,
"type": "STRING",
"typeName": "STRING",
"integerRange": {
"min": 0,
"max": 0
},
"floatRange": {
"min": 0,
"max": 0
},
"options": [],
"asset": {
"providers": null,
"contentTypes": null,
"vectorized": false
},
"displayName": "string",
"description": "string",
"required": false,
"secret": false,
"secretResolvable": false,
"defaultValue": "string",
"jsonSchema": null,
"minLength": 0,
"maxLength": 0,
"pattern": "string",
"validator": "string",
"uiHint": "CODE",
"tableHint": {
"rowKey": "string",
"readOnlyColumns": [],
"maxRows": null
},
"allowOther": {
"label": "string",
"prefill": "string"
},
"rules": []
}
],
"authSettings": {
"supportsOAuth": false,
"oAuth": [
{
"scopeSize": 0,
"scopes": [],
"userScopes": [],
"allScopes": [],
"requiresResourceAuth": false,
"successfulOAuthRedirect": "string"
}
]
}
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}{
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"property1": null,
"property2": null
}Deletes an AI Tool.
Hard-deletes the tool definition; agents that still reference it by ID will fail to resolve the tool on their next invocation. If the tool ID appears in any integration's MCP `exposedToolIds` list it is the caller's responsibility to remove it via the MCP settings PATCH — stale entries are silently ignored by the MCP server but clutter the config.
Creates a new AI Tool.
Registers a new tool definition under the integration. The request body carries the integration ID it should belong to; the route `integration` is currently scoped for routing and logging only, so callers should ensure the two match. After creation, expose the tool to agents or MCP clients by adding its ID to the relevant allowlist. The integration must already exist in the workspace (404 otherwise). A parameter sent without a `type` is stored as `STRING`.