{
 "openapi": "3.1.0",
 "info": {
  "title": "Tool Catalog (Agentic AI)",
  "version": "20261030b",
  "description": "Everything an agent may be granted, of every origin, in one list — because the model is given one list and the person granting authority should be reading the same one. A resource tool is the platform own endpoint, so it inherits the module grant, the org scope, the numbering, the editability rule and the audit trail unchanged."
 },
 "servers": [
  {
   "url": "https://{tenant}.tranxact.ai",
   "variables": {
    "tenant": {
     "default": "demo"
    }
   }
  }
 ],
 "components": {
  "securitySchemes": {
   "bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "tools": {
    "type": "object",
    "required": [
     "code",
     "name"
    ],
    "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
     },
     "code": {
      "type": "string",
      "description": "Code"
     },
     "name": {
      "type": "string",
      "description": "Name"
     },
     "name_local": {
      "type": "string",
      "description": "Local name"
     },
     "description": {
      "type": "string",
      "description": "What it does"
     },
     "description_local": {
      "type": "string",
      "description": "Description local"
     },
     "kind": {
      "type": "string",
      "description": "Origin"
     },
     "category": {
      "type": "string",
      "description": "Category"
     },
     "target_module": {
      "type": "string",
      "description": "Module"
     },
     "target_resource": {
      "type": "string",
      "description": "Resource"
     },
     "operation": {
      "type": "string",
      "description": "Operation",
      "enum": [
       "list",
       "get",
       "create",
       "update",
       "delete",
       "action"
      ]
     },
     "action_path": {
      "type": "string",
      "description": "Action path"
     },
     "report_key": {
      "type": "string",
      "description": "Report key"
     },
     "cube_key": {
      "type": "string",
      "description": "Cube key"
     },
     "connection_id": {
      "type": "string",
      "format": "uuid",
      "description": "Connection"
     },
     "connection_tool_id": {
      "type": "string",
      "format": "uuid",
      "description": "Connection tool id"
     },
     "builtin_key": {
      "type": "string",
      "description": "Builtin key"
     },
     "workflow_id": {
      "type": "string",
      "format": "uuid",
      "description": "Workflow id"
     },
     "input_schema": {
      "type": "object",
      "description": "Arguments"
     },
     "is_write": {
      "type": "boolean",
      "description": "Changes data"
     },
     "is_destructive": {
      "type": "boolean",
      "description": "Destructive"
     },
     "is_external": {
      "type": "boolean",
      "description": "Reaches outside this company"
     },
     "moves_money": {
      "type": "boolean",
      "description": "Moves money"
     },
     "touches_pii": {
      "type": "boolean",
      "description": "Touches personal data"
     },
     "requires_approval": {
      "type": "boolean",
      "description": "Always ask a person"
     },
     "required_module": {
      "type": "string",
      "description": "Module a caller must hold"
     },
     "max_calls_per_run": {
      "type": "integer",
      "description": "Calls per run"
     },
     "is_system": {
      "type": "boolean",
      "description": "Is system",
      "readOnly": true
     },
     "is_active": {
      "type": "boolean",
      "description": "Active"
     },
     "notes": {
      "type": "string",
      "description": "Notes"
     },
     "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Created at",
      "readOnly": true
     },
     "name_ar": {
      "type": "string",
      "description": "Name ar",
      "readOnly": true
     },
     "name_bn": {
      "type": "string",
      "description": "Name bn",
      "readOnly": true
     },
     "name_de": {
      "type": "string",
      "description": "Name de",
      "readOnly": true
     },
     "name_es": {
      "type": "string",
      "description": "Name es",
      "readOnly": true
     },
     "name_fr": {
      "type": "string",
      "description": "Name fr",
      "readOnly": true
     },
     "name_hi": {
      "type": "string",
      "description": "Name hi",
      "readOnly": true
     },
     "name_it": {
      "type": "string",
      "description": "Name it",
      "readOnly": true
     },
     "name_ja": {
      "type": "string",
      "description": "Name ja",
      "readOnly": true
     },
     "name_kn": {
      "type": "string",
      "description": "Name kn",
      "readOnly": true
     },
     "name_ko": {
      "type": "string",
      "description": "Name ko",
      "readOnly": true
     },
     "name_mr": {
      "type": "string",
      "description": "Name mr",
      "readOnly": true
     },
     "name_pt": {
      "type": "string",
      "description": "Name pt",
      "readOnly": true
     },
     "name_ru": {
      "type": "string",
      "description": "Name ru",
      "readOnly": true
     },
     "name_ta": {
      "type": "string",
      "description": "Name ta",
      "readOnly": true
     },
     "name_ur": {
      "type": "string",
      "description": "Name ur",
      "readOnly": true
     },
     "name_zh": {
      "type": "string",
      "description": "Name zh",
      "readOnly": true
     },
     "description_ar": {
      "type": "string",
      "description": "Description ar",
      "readOnly": true
     },
     "description_bn": {
      "type": "string",
      "description": "Description bn",
      "readOnly": true
     },
     "description_de": {
      "type": "string",
      "description": "Description de",
      "readOnly": true
     },
     "description_es": {
      "type": "string",
      "description": "Description es",
      "readOnly": true
     },
     "description_fr": {
      "type": "string",
      "description": "Description fr",
      "readOnly": true
     },
     "description_hi": {
      "type": "string",
      "description": "Description hi",
      "readOnly": true
     },
     "description_it": {
      "type": "string",
      "description": "Description it",
      "readOnly": true
     },
     "description_ja": {
      "type": "string",
      "description": "Description ja",
      "readOnly": true
     },
     "description_kn": {
      "type": "string",
      "description": "Description kn",
      "readOnly": true
     },
     "description_ko": {
      "type": "string",
      "description": "Description ko",
      "readOnly": true
     },
     "description_mr": {
      "type": "string",
      "description": "Description mr",
      "readOnly": true
     },
     "description_pt": {
      "type": "string",
      "description": "Description pt",
      "readOnly": true
     },
     "description_ru": {
      "type": "string",
      "description": "Description ru",
      "readOnly": true
     },
     "description_ta": {
      "type": "string",
      "description": "Description ta",
      "readOnly": true
     },
     "description_ur": {
      "type": "string",
      "description": "Description ur",
      "readOnly": true
     },
     "description_zh": {
      "type": "string",
      "description": "Description zh",
      "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
     },
     "delegate_brief": {
      "type": "string",
      "description": "What the worker is told"
     },
     "delegate_review": {
      "type": "boolean",
      "description": "A person reviews the result first"
     },
     "delegate_expiry_minutes": {
      "type": "integer",
      "description": "Expires after (minutes)"
     },
     "delegate_worker_kind": {
      "type": "string",
      "description": "For which worker"
     },
     "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/tools": {
   "get": {
    "summary": "list tools",
    "operationId": "list_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 tools",
    "operationId": "create_tools_1_4",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/agentic/tools/{id}": {
   "get": {
    "summary": "get tools",
    "operationId": "get_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 tools",
    "operationId": "change_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 tools",
    "operationId": "delete_tools_2_5",
    "responses": {
     "200": {
      "description": "OK"
     },
     "401": {
      "description": "No or bad credential"
     },
     "403": {
      "description": "Not granted"
     },
     "422": {
      "description": "Refused by validation"
     }
    }
   }
  },
  "/api/agentic/tools/{id}/copy": {
   "post": {
    "summary": "Copy",
    "operationId": "action_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"
     }
    }
   }
  }
 }
}