{
  "role": "ai-legal-ops",
  "source": "https://aiinthewild.com/ai-employees/ai-legal-ops/",
  "note": "Tool definitions in JSON Schema. Wire each one to your own systems. Functions marked approval: true should only create drafts or requests for a person to approve.",
  "functions": [
    {
      "name": "read_contract",
      "description": "Read a contract file and return its text with clause headings.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "file_id": {
            "type": "string",
            "description": "The contract file"
          }
        },
        "required": [
          "file_id"
        ]
      }
    },
    {
      "name": "get_playbook",
      "description": "Read the approved playbook position for a clause type.",
      "access": "read",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "clause": {
            "type": "string",
            "description": "Clause type, e.g. limitation of liability"
          }
        },
        "required": [
          "clause"
        ]
      }
    },
    {
      "name": "log_contract",
      "description": "Add a contract and its key terms to the contract register.",
      "access": "write",
      "approval": false,
      "parameters": {
        "type": "object",
        "properties": {
          "fields": {
            "type": "object",
            "description": "Parties, dates, value, renewal and notice terms"
          }
        },
        "required": [
          "fields"
        ]
      }
    }
  ]
}