{
  "$schema": "https://a2a-protocol.org/schemas/v1/agent-card.json",
  "name": "staffa-autonomous-operations",
  "title": "Staffa Universal Autonomous Operations & Emergency Dispatch Agent",
  "description": "Standardized Linux Foundation A2A v1.0 agent enabling autonomous AI agents to query verified UK service contractor coverage, check dynamic diagnostic pricing, dispatch on-call technicians, and orchestrate lifecycle service recalls.",
  "version": "1.0.0",
  "protocolVersion": "a2a/1.0",
  "provider": {
    "name": "Staffa Autonomous Infrastructure Ltd",
    "url": "https://staffa.work",
    "contact": "a2a@staffa.work"
  },
  "endpoints": {
    "a2a": "https://api.staffa.work/api/a2a/v1",
    "mcp": "https://api.staffa.work/api/mcp/dispatch",
    "openapi": "https://api.staffa.work/api/openapi.json",
    "public_lookup": "https://api.staffa.work/api/agent/v1/public/lookup",
    "public_dispatch": "https://api.staffa.work/api/agent/v1/public/dispatch"
  },
  "authentication": {
    "type": "bearer",
    "optional": true,
    "description": "Optional Bearer token for authenticated partner routing. Public queries supported."
  },
  "capabilities": [
    {
      "id": "lookup_service_coverage",
      "name": "Lookup Service Coverage & Live Pricing",
      "description": "Query live contractor or clinic availability, postcode boundaries, and client-configured diagnostic/consultation rates.",
      "inputs": {
        "postcode": {
          "type": "string",
          "required": true,
          "example": "SW14 8AN"
        },
        "service_category": {
          "type": "string",
          "required": false,
          "default": "heating",
          "example": "heating"
        }
      },
      "output": {
        "type": "object"
      }
    },
    {
      "id": "dispatch_service_ticket",
      "name": "Dispatch Service Ticket",
      "description": "Dispatch high-priority service or emergency ticket directly to technician/provider mobile terminal with safety triage.",
      "inputs": {
        "client_id": {
          "type": "string",
          "required": false
        },
        "caller_name": {
          "type": "string",
          "required": true
        },
        "caller_phone": {
          "type": "string",
          "required": true
        },
        "address": {
          "type": "string",
          "required": true
        },
        "issue_description": {
          "type": "string",
          "required": true
        }
      },
      "output": {
        "type": "object"
      }
    },
    {
      "id": "schedule_lifecycle_recall",
      "name": "Schedule Lifecycle Service Recall",
      "description": "Register customer recurring service or inspection interval for automated multi-channel recall (boiler service, dental checkup, MOT, compliance).",
      "inputs": {
        "client_id": {
          "type": "string",
          "required": true
        },
        "customer_name": {
          "type": "string",
          "required": true
        },
        "customer_phone": {
          "type": "string",
          "required": false
        },
        "customer_email": {
          "type": "string",
          "required": false
        },
        "service_type": {
          "type": "string",
          "required": true
        },
        "interval_months": {
          "type": "integer",
          "default": 12
        },
        "preferred_channel": {
          "type": "string",
          "default": "sms"
        }
      },
      "output": {
        "type": "object"
      }
    }
  ]
}