{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "name": "MitraGaadi WebMCP Agent Tools",
  "description": "Web Model Context Protocol (WebMCP) tool definitions for discovering cabs, comparing rural Maharashtra travel routes, and contacting verified fleet operators.",
  "version": "1.0.0",
  "baseUrl": "https://mitra-gaadi.anclp.com",
  "tools": [
    {
      "name": "search_vehicles",
      "description": "Find verified passenger vehicles and commercial taxis in rural Maharashtra by town, vehicle category, or seating capacity.",
      "parameters": {
        "type": "object",
        "properties": {
          "town": {
            "type": "string",
            "description": "Base operating town (e.g. 'Nira', 'Lonand', 'Baramati', 'Jejuri', 'Phaltan', 'Pune', 'Satara', 'Solapur', 'Saswad', 'Shirwal', 'Bhor').",
            "enum": [
              "All towns",
              "Nira",
              "Lonand",
              "Baramati",
              "Jejuri",
              "Purandar",
              "Phaltan",
              "Saswad",
              "Shirwal",
              "Bhor",
              "Satara",
              "Solapur",
              "Pune"
            ]
          },
          "category": {
            "type": "string",
            "description": "Vehicle body type or category.",
            "enum": ["all", "cab", "suv", "tempo_traveller", "bus"]
          },
          "seating": {
            "type": "string",
            "description": "Minimum passenger seating capacity.",
            "enum": ["all", "4", "6-7", "12-17", "20+"]
          },
          "max_price_per_km": {
            "type": "number",
            "description": "Maximum indicative budget per kilometer in INR (e.g. 15, 18, 22)."
          }
        },
        "required": ["town"]
      },
      "endpoint": {
        "type": "dom_selector",
        "containerSelector": "[data-agent-entity='vehicle-card']",
        "filterControlSelector": "[data-agent-control='town-filter-group']"
      }
    },
    {
      "name": "get_popular_routes",
      "description": "Retrieve benchmark distances (km), estimated driving times, and standard indicative fares for regional travel corridors across Maharashtra.",
      "parameters": {
        "type": "object",
        "properties": {
          "origin": {
            "type": "string",
            "description": "Trip departure town or hub (e.g. 'Nira', 'Baramati', 'Lonand', 'Pune')."
          },
          "destination": {
            "type": "string",
            "description": "Trip arrival destination (e.g. 'Pune Airport', 'Swargate', 'Baramati MIDC', 'Jejuri Mandir')."
          }
        }
      }
    },
    {
      "name": "get_fleet_operator",
      "description": "Retrieve verified fleet operator information, document review badge, operating town coverage, and direct contact numbers.",
      "parameters": {
        "type": "object",
        "properties": {
          "owner_id": {
            "type": "string",
            "description": "Unique UUID of the fleet operator."
          }
        },
        "required": ["owner_id"]
      }
    },
    {
      "name": "submit_lead_enquiry",
      "description": "Submit a direct travel enquiry quote to an independent fleet operator without mandatory upfront payment.",
      "parameters": {
        "type": "object",
        "properties": {
          "owner_id": {
            "type": "string",
            "description": "Operator UUID."
          },
          "vehicle_id": {
            "type": "string",
            "description": "Vehicle UUID."
          },
          "customer_name": {
            "type": "string",
            "description": "Passenger legal or contact name."
          },
          "customer_phone": {
            "type": "string",
            "description": "10-digit Indian mobile number."
          },
          "pickup_location": {
            "type": "string",
            "description": "Specific pickup address or landmark."
          },
          "drop_location": {
            "type": "string",
            "description": "Specific destination address or landmark."
          },
          "travel_date": {
            "type": "string",
            "description": "Date of journey in YYYY-MM-DD format."
          }
        },
        "required": ["owner_id", "customer_name", "customer_phone", "pickup_location"]
      },
      "endpoint": {
        "type": "dom_form",
        "formSelector": "[data-webmcp-tool='submit_lead_enquiry']"
      }
    }
  ]
}
