export const HOMESTEAD_TOOLS = [
    {
        "name": "property_comps",
        "description": "Find 3-5 recently sold comparable properties within a radius of a target address. Returns price, beds/baths, sqft, sale date, and distance.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "address": {
                    "type": "STRING",
                    "description": "The full address or neighborhood of the target property."
                },
                "radius_miles": {
                    "type": "NUMBER",
                    "description": "Search radius in miles. Default 1."
                },
                "beds": {
                    "type": "NUMBER",
                    "description": "Optional bed count filter to match comps."
                },
                "max_results": {
                    "type": "NUMBER",
                    "description": "Max comps to return. Default 5."
                }
            },
            "required": ["address"]
        }
    },
    {
        "name": "mortgage_calculator",
        "description": "Calculate monthly PITI payment (Principal, Interest, Taxes, Insurance) for a property purchase. Supports different down payment percentages and interest rates.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "home_price": {
                    "type": "NUMBER",
                    "description": "Purchase price of the home."
                },
                "down_payment_percent": {
                    "type": "NUMBER",
                    "description": "Down payment percentage (e.g. 20 for 20%). Default 20."
                },
                "interest_rate": {
                    "type": "NUMBER",
                    "description": "Annual interest rate (e.g. 6.5 for 6.5%). If omitted, uses current average."
                },
                "loan_term_years": {
                    "type": "NUMBER",
                    "description": "Loan term in years. Default 30."
                },
                "annual_tax_rate": {
                    "type": "NUMBER",
                    "description": "Property tax rate as percentage of home value (e.g. 1.2). Default 1.1."
                },
                "monthly_insurance": {
                    "type": "NUMBER",
                    "description": "Monthly homeowner's insurance. Default estimated from price."
                },
                "monthly_hoa": {
                    "type": "NUMBER",
                    "description": "Monthly HOA dues. Default 0."
                }
            },
            "required": ["home_price"]
        }
    },
    {
        "name": "rental_yield_analyzer",
        "description": "Calculate rental yield, cap rate, and monthly cash flow for an investment property given purchase price and expected rent.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "home_price": {
                    "type": "NUMBER",
                    "description": "Purchase price."
                },
                "monthly_rent": {
                    "type": "NUMBER",
                    "description": "Expected monthly rental income."
                },
                "down_payment_percent": {
                    "type": "NUMBER",
                    "description": "Down payment percentage. Default 20."
                },
                "interest_rate": {
                    "type": "NUMBER",
                    "description": "Mortgage interest rate. Default 7.0."
                },
                "annual_tax_rate": {
                    "type": "NUMBER",
                    "description": "Property tax rate percentage. Default 1.1."
                },
                "monthly_insurance": {
                    "type": "NUMBER",
                    "description": "Monthly insurance. Default estimated."
                },
                "monthly_hoa": {
                    "type": "NUMBER",
                    "description": "Monthly HOA. Default 0."
                },
                "vacancy_rate": {
                    "type": "NUMBER",
                    "description": "Expected vacancy rate percentage. Default 5."
                },
                "maintenance_percent": {
                    "type": "NUMBER",
                    "description": "Annual maintenance as percent of home value. Default 1."
                }
            },
            "required": ["home_price", "monthly_rent"]
        }
    },
    {
        "name": "neighborhood_score",
        "description": "Research a neighborhood for school ratings, crime data, walkability, transit access, and nearby amenities. Uses web search for real-time data.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "address": {
                    "type": "STRING",
                    "description": "Address or neighborhood name + city/state."
                },
                "factors": {
                    "type": "ARRAY",
                    "items": { "type": "STRING" },
                    "description": "Specific factors to research: schools, crime, walkability, transit, amenities, growth. Default all."
                }
            },
            "required": ["address"]
        }
    },
    {
        "name": "zoning_lookup",
        "description": "Look up zoning classification for a property address: residential, commercial, mixed-use, agricultural. Checks for ADU eligibility, short-term rental rules, and development restrictions.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "address": {
                    "type": "STRING",
                    "description": "Full property address."
                },
                "check_adu": {
                    "type": "BOOLEAN",
                    "description": "Whether to specifically check ADU (Accessory Dwelling Unit) eligibility. Default true."
                }
            },
            "required": ["address"]
        }
    },
    {
        "name": "permit_history_scan",
        "description": "Search public records for building permits filed on a property: recent renovations, unpermitted work flags, open violations, and inspection history.",
        "parameters": {
            "type": "OBJECT",
            "properties": {
                "address": {
                    "type": "STRING",
                    "description": "Full property address."
                },
                "years_back": {
                    "type": "NUMBER",
                    "description": "How many years of permit history to search. Default 10."
                }
            },
            "required": ["address"]
        }
    }
];
