{
 "openapi": "3.1.0",
 "info": {
  "title": "Discovered Tools (Agentic AI)",
  "version": "20261030b",
  "description": "What each connection turned out to be able to do. A tool the server no longer offers is disabled rather than deleted, because deleting it would take the grants and the call history with it."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "connection-tools": {
    "type": "object",
    "required": [],
    "properties": {
     "id": {
      "type": "string",
      "format": "uuid",
      "description": "Id",
      "readOnly": true
     },
     "org_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org id",
      "readOnly": true
     },
     "org_unit_id": {
      "type": "string",
      "format": "uuid",
      "description": "Org unit id",
      "readOnly": true
     },
     "connection_id": {
      "type": "string",
      "format": "uuid",
      "description": "Connection id",
      "readOnly": true
     },
     "tool_name": {
      "type": "string",
      "description": "Tool name",
      "readOnly": true
     },
     "title": {
      "type": "string",
      "description": "Title",
      "readOnly": true
     },
     "description": {
      "type": "string",
      "description": "Description",
      "readOnly": true
     },
     "input_schema": {
      "type": "object",
      "description": "Input schema",
      "readOnly": true
     },
     "output_schema": {
      "type": "object",
      "description": "Output schema",
      "readOnly": true
     },
     "http_method": {
      "type": "string",
      "description": "Http method",
      "readOnly": true
     },
     "http_path": {
      "type": "string",
      "description": "Http path",
      "readOnly": true
     },
     "is_write": {
      "type": "boolean",
      "description": "Changes data"
     },
     "is_destructive": {
      "type": "boolean",
      "description": "Destructive"
     },
     "is_idempotent": {
      "type": "boolean",
      "description": "Is idempotent",
      "readOnly": true
     },
     "is_enabled": {
      "type": "boolean",
      "description": "Enabled"
     },
     "requires_approval": {
      "type": "boolean",
      "description": "Always ask a person"
     },
     "cost_hint": {
      "type": "string",
      "format": "decimal",
      "description": "Costs about"
     },
     "last_seen_at": {
      "type": "string",
      "format": "date-time",
      "description": "Last seen at",
      "readOnly": true
     },
     "call_count": {
      "type": "string",
      "format": "decimal",
      "description": "Call count",
      "readOnly": true
     },
     "error_count": {
      "type": "string",
      "format": "decimal",
      "description": "Error count",
      "readOnly": true
     },
     "avg_ms": {
      "type": "integer",
      "description": "Avg ms",
      "readOnly": true
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "created_by": {
      "type": "string",
      "format": "uuid",
      "description": "Created by",
      "readOnly": true
     },
     "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "Updated at",
      "readOnly": true
     },
     "updated_by": {
      "type": "string",
      "format": "uuid",
      "description": "Updated by",
      "readOnly": true
     },
     "xf_text_1": {
      "type": "string",
      "description": "Xf text 1",
      "readOnly": true
     },
     "xf_text_2": {
      "type": "string",
      "description": "Xf text 2",
      "readOnly": true
     },
     "xf_text_3": {
      "type": "string",
      "description": "Xf text 3",
      "readOnly": true
     },
     "xf_text_4": {
      "type": "string",
      "description": "Xf text 4",
      "readOnly": true
     },
     "xf_text_5": {
      "type": "string",
      "description": "Xf text 5",
      "readOnly": true
     },
     "xf_num_1": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 1",
      "readOnly": true
     },
     "xf_num_2": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 2",
      "readOnly": true
     },
     "xf_num_3": {
      "type": "string",
      "format": "decimal",
      "description": "Xf num 3",
      "readOnly": true
     },
     "xf_date_1": {
      "type": "string",
      "format": "date",
      "description": "Xf date 1",
      "readOnly": true
     },
     "xf_date_2": {
      "type": "string",
      "format": "date",
      "description": "Xf date 2",
      "readOnly": true
     }
    }
   }
  }
 },
 "security": [
  {
   "bearer": []
  }
 ],
 "paths": {
  "/api/agentic/connection-tools": {
   "get": {
    "summary": "list connection-tools",
    "operationId": "list_connection_tools_0_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "post": {
    "summary": "create connection-tools",
    "operationId": "create_connection_tools_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/agentic/connection-tools/{id}": {
   "get": {
    "summary": "get connection-tools",
    "operationId": "get_connection_tools_0_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "put": {
    "summary": "change connection-tools",
    "operationId": "change_connection_tools_1_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   },
   "delete": {
    "summary": "delete connection-tools",
    "operationId": "delete_connection_tools_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/agentic/connection-tools/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_connection_tools_0_6",
    "description": "Body keys: overrides, preview, withLines",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/agentic/connection-tools/{id}/publish": {
   "post": {
    "summary": "Publish",
    "operationId": "action_connection_tools_0_6",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  }
 }
}