{
  "protocolVersion": "0.3.0",
  "name": "Relex",
  "description": "Relex is the confidential workspace where an agent does a law firm’s legal work without ever seeing the clients. It runs each matter end to end — client intake, a formal case ontology, drafting and redline, e-signature, and delivery — while every client identity stays encrypted in the browser and the agent only ever sees de-identified labels like [Party 1]. Recommended integration is MCP (OAuth, two tools) at /api/mcp.",
  "url": "https://relex.legal/api/mcp",
  "preferredTransport": "mcp",
  "supportedInterfaces": [
    {
      "url": "https://relex.legal/api/mcp",
      "transport": "mcp"
    }
  ],
  "provider": {
    "organization": "Relex Legal AI",
    "url": "https://relex.legal"
  },
  "version": "1.0.0",
  "documentationUrl": "https://relex.legal/docs/a2a",
  "iconUrl": "https://relex.legal/logo.svg",
  "capabilities": {
    "streaming": true,
    "pushNotifications": false,
    "stateTransitionHistory": false
  },
  "defaultInputModes": [
    "text/plain",
    "application/json"
  ],
  "defaultOutputModes": [
    "text/plain",
    "application/json"
  ],
  "securitySchemes": {
    "oauth2": {
      "type": "oauth2",
      "description": "OAuth 2.0 with PKCE. Discovery: /.well-known/oauth-protected-resource (RFC 9728) and /.well-known/oauth-authorization-server (RFC 8414).",
      "flows": {
        "authorizationCode": {
          "authorizationUrl": "https://relex.legal/oauth/authorize",
          "tokenUrl": "https://relex.legal/api/oauth/token",
          "scopes": {
            "relex.cases.read": "Read de-identified cases and drafts",
            "relex.cases.write": "Create and update cases",
            "relex.draft": "Create and redline drafts",
            "relex.agent": "Run agent tasks on a matter"
          }
        }
      }
    }
  },
  "security": [
    {
      "oauth2": [
        "relex.cases.read",
        "relex.cases.write",
        "relex.draft",
        "relex.agent"
      ]
    }
  ],
  "skills": [
    {
      "id": "case-analysis",
      "name": "Analyze a legal matter",
      "description": "Read a de-identified case, reason over its ontology (parties, issues, claims, statutes, facts), and surface the analysis — never over real client identities.",
      "tags": [
        "legal",
        "analysis",
        "ontology",
        "privacy"
      ],
      "examples": [
        "Review this de-identified contract and flag the enforceability risks.",
        "Map the parties, obligations, and triggers in this matter."
      ]
    },
    {
      "id": "drafting",
      "name": "Draft and redline documents",
      "description": "Draft, version, and redline legal documents against firm playbooks (preferred + fallback negotiation positions), with real client values restored only in the user’s browser at export.",
      "tags": [
        "legal",
        "drafting",
        "redline",
        "playbooks"
      ],
      "examples": [
        "Draft an employment agreement for [Party 1] and [Party 2].",
        "Redline this NDA against our standard playbook."
      ]
    },
    {
      "id": "knowledge-search",
      "name": "Search firm know-how",
      "description": "Retrieve from the firm’s private, per-tenant Knowledge corpus during a matter. The corpus is indexed for retrieval and never copied to a model or used for training.",
      "tags": [
        "legal",
        "rag",
        "know-how"
      ],
      "examples": [
        "Find our precedent for a limitation-of-liability clause in a SaaS deal."
      ]
    }
  ],
  "additionalInterfaces": [
    {
      "transport": "mcp",
      "url": "https://relex.legal/api/mcp"
    }
  ]
}