{"jsonrpc":"2.0","id":null,"result":{"protocolVersion":"2024-11-05","serverInfo":{"name":"localintel","version":"1.0.0"},"capabilities":{"tools":{}},"tools":[{"name":"local_intel_query","description":"START HERE. Natural language entry point for both market intelligence AND business routing. Ask about a market, find a business, or route a customer request. Auto-detects ZIP, industry vertical, and intent. For customer agents: \"Find a restaurant in 32082 that serves lunch\" or \"Who can do landscaping in Ponte Vedra?\" — returns the matching business so your agent can route the order to them. For market intel: \"Is 32082 oversaturated with dentists?\" ZIP is always required for routing — pass it explicitly or include it in the query.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Any plain-English market question. ZIP can be in the query or passed separately."},"zip":{"type":"string","description":"Optional ZIP override. If omitted, ZIP is detected from the query or resolved from lat/lon."},"lat":{"type":"number","description":"Optional latitude (WGS84). Resolves to nearest FL ZIP. Use instead of zip for coordinate-based queries."},"lon":{"type":"number","description":"Optional longitude (WGS84). Required if lat is provided."}},"required":["query"]},"annotations":{"readOnly":true}},{"name":"local_intel_context","description":"Full spatial context block for any FL zip or lat/lon. Returns anchor business, nearby businesses in distance rings, zone intelligence, and category breakdown. Best first call for any location query. Covers all 1,473 FL ZIPs via fl_zip_geo.","inputSchema":{"type":"object","properties":{"zip":{"type":"string","description":"Any FL ZIP code"},"lat":{"type":"number","description":"Latitude (WGS84) — resolves to nearest FL ZIP"},"lon":{"type":"number","description":"Longitude (WGS84) — required if lat is provided"},"radius_miles":{"type":"number","description":"Search radius in miles (default 1.0)"}}},"annotations":{"readOnly":true}},{"name":"local_intel_search","description":"Search businesses by name, category, or semantic group (food, retail, health, finance, civic, services).","inputSchema":{"type":"object","properties":{"zip":{"type":"string","description":"Filter by ZIP code"},"query":{"type":"string","description":"Text search on name/category/address"},"category":{"type":"string","description":"Exact OSM category (restaurant, bank, dentist...)"},"group":{"type":"string","description":"Semantic group: food | retail | health | finance | civic | services"},"limit":{"type":"integer","description":"Max results (default 20, max 50)"}}},"annotations":{"readOnly":true}},{"name":"local_intel_nearby","description":"Find businesses within a radius of any lat/lon point, sorted by distance with compass bearing.","inputSchema":{"type":"object","required":["lat","lon"],"properties":{"lat":{"type":"number","description":"Latitude of center point"},"lon":{"type":"number","description":"Longitude of center point"},"radius_miles":{"type":"number","description":"Search radius in miles (default 0.5)"},"category":{"type":"string","description":"Filter by OSM category"},"group":{"type":"string","description":"Filter by semantic group"},"limit":{"type":"integer","description":"Max results (default 15)"}}},"annotations":{"readOnly":true}},{"name":"local_intel_zone","description":"Spending zone and demographic data for a ZIP code: population, income, home value, rent, ownership rate, zone score. Pass zip or lat/lon.","inputSchema":{"type":"object","properties":{"zip":{"type":"string","description":"FL ZIP code"},"lat":{"type":"number","description":"Latitude (WGS84) — resolves to nearest FL ZIP"},"lon":{"type":"number","description":"Longitude (WGS84) — required if lat is provided"}}},"annotations":{"readOnly":true}},{"name":"local_intel_corridor","description":"Businesses along a named street corridor. Use for queries like \"what is on A1A\" or \"businesses on Palm Valley Road\".","inputSchema":{"type":"object","required":["street"],"properties":{"street":{"type":"string","description":"Street name (e.g. \"A1A\", \"Palm Valley\", \"Crosswater\")"},"zip":{"type":"string","description":"Optional ZIP filter"},"limit":{"type":"integer","description":"Max results (default 20)"}}},"annotations":{"readOnly":true}},{"name":"local_intel_changes","description":"Recently added or owner-verified business listings. Use to detect new openings or data updates.","inputSchema":{"type":"object","properties":{"zip":{"type":"string","description":"Optional ZIP filter"},"limit":{"type":"integer","description":"Max results (default 20)"}}},"annotations":{"readOnly":true}},{"name":"local_intel_stats","description":"Dataset coverage stats: total businesses, confidence scores, query volume, revenue earned.","inputSchema":{"type":"object","properties":{}},"annotations":{"readOnly":true}},{"name":"local_intel_tide","description":"Tidal reading for a ZIP — temperature (0-100), direction (surging/heating/stable/cooling/receding), seasonal context. Synthesizes all 4 data layers. Best for agents deciding WHERE to act next.","inputSchema":{"type":"object","required":["zip"],"properties":{"zip":{"type":"string","description":"ZIP code to read tidal state for"},"include_layers":{"type":"array","description":"Layers to include: bedrock, ocean_floor, surface_current, wave_surface (default: all)"},"query_context":{"type":"object","description":"Optional: { agent_type, agent_id, purpose }"}}},"annotations":{"readOnly":true}},{"name":"local_intel_signal","description":"Investment and activity signal for a ZIP. Composite score 0-100 with band (strong_buy/accumulate/hold/reduce/avoid), top reasons, and avoid flags. Best for real estate and financial agents.","inputSchema":{"type":"object","required":["zip"],"properties":{"zip":{"type":"string","description":"ZIP code"},"agent_type":{"type":"string","description":"real_estate | financial | ad_placement | logistics | business_owner | civic"},"query_context":{"type":"object","description":"Optional: { agent_id, purpose }"}}},"annotations":{"readOnly":true}},{"name":"local_intel_bedrock","description":"Infrastructure momentum score and active leading indicators for a ZIP from Layer 0. Permits, road projects, flood zones, utility extensions. Predicts conditions 12-36 months ahead. 'Let Google pay for the satellites — we sell the weather forecast.'","inputSchema":{"type":"object","required":["zip"],"properties":{"zip":{"type":"string","description":"ZIP code"},"query_context":{"type":"object","description":"Optional: { agent_type, agent_id }"}}},"annotations":{"readOnly":true}},{"name":"local_intel_for_agent","description":"PREMIUM composite entry point ($0.05). Declare your agent_type and intent, receive pre-ranked top-10 signals assembled from all 4 data layers, personalized for your use case. Includes delta since your last query if agent_id provided. Best first call for any new agent.","inputSchema":{"type":"object","properties":{"agent_type":{"type":"string","description":"real_estate | financial | ad_placement | logistics | business_owner | civic"},"intent":{"type":"string","description":"Plain-language description of what you are trying to decide or do"},"zip":{"type":"string","description":"Target ZIP code"},"lat":{"type":"number","description":"Latitude (if no ZIP)"},"lon":{"type":"number","description":"Longitude (if no ZIP)"},"budget":{"type":"number","description":"Agent budget in pathUSD (optional, for signal prioritization)"},"depth":{"type":"string","description":"quick (top 5 signals) | full (top 10 + context blocks)"},"agent_id":{"type":"string","description":"Your agent UUID for memory + delta computation"}}},"annotations":{"readOnly":true}},{"name":"local_intel_oracle","description":"Pre-baked economic oracle for a ZIP. Returns: restaurant saturation (is there room for another?), price-tier gap analysis (what menu price is missing?), growth trajectory (growing/empty-nest/stable), and 3 pre-formed questions with answers baked in. No LLM needed — answers derived from population, income, business density, school count, and infrastructure signals.","inputSchema":{"type":"object","properties":{"zip":{"type":"string","description":"ZIP code to analyze (e.g. 32081)"}},"required":["zip"]},"annotations":{"readOnly":true}},{"name":"local_intel_sector_gap","description":"Ranked sector gap analysis for a ZIP. Identifies NAICS sectors present at county level (CBP/CES employment) but underrepresented at ZIP (OSM business counts) — the structural whitespace in a local economy. Returns ranked opportunities with: NAICS code, sector label, county employment share, demand estimate, confidence tier, and LLM-ready signal narrative. Reads live from Postgres zip_signals — always current. Example: \"NAICS 62 Health Care: Jacksonville MSA 136k healthcare employees, ZIP 32082 has no OSM healthcare listings. 28,697 residents, $121k median HHI, retiree index 1.5x. Demand: 7–10 providers.\" Chain into vertical agents via oracle_vertical. Cost: $0.03 pathUSD.","inputSchema":{"type":"object","required":["zip"],"properties":{"zip":{"type":"string","description":"ZIP code to analyze (e.g. 32081, 32082, 32259)"}}},"annotations":{"readOnly":true}},{"name":"local_intel_realtor","description":"Real estate intelligence for a ZIP. Ask natural-language questions: demographics, commercial gaps, flood risk, school proximity, infrastructure signals, market saturation. Returns structured data with confidence score. Trained on 100 realtor use-case prompts.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Natural language question (e.g. \"What is the flood risk for this ZIP?\", \"What commercial gaps exist?\")"},"zip":{"type":"string","description":"ZIP code to analyze"},"lat":{"type":"number","description":"Latitude (WGS84) — resolves to nearest FL ZIP"},"lon":{"type":"number","description":"Longitude (WGS84)"}},"required":["query"]},"annotations":{"readOnly":true}},{"name":"local_intel_healthcare","description":"Healthcare market intelligence for a ZIP. Ask about provider density, patient demographics, demand gaps, senior population. Returns structured data with confidence score. Trained on 100 healthcare business prompts.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Natural language question about healthcare market"},"zip":{"type":"string","description":"ZIP code to analyze"},"lat":{"type":"number","description":"Latitude (WGS84) — resolves to nearest FL ZIP"},"lon":{"type":"number","description":"Longitude (WGS84)"}},"required":["query"]},"annotations":{"readOnly":true}},{"name":"local_intel_retail","description":"Retail market intelligence for a ZIP. Ask about store categories, spending capture rates, consumer profile, undersupplied niches. Returns structured data with confidence score. Trained on 100 retail business prompts.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Natural language question about retail market"},"zip":{"type":"string","description":"ZIP code to analyze"},"lat":{"type":"number","description":"Latitude (WGS84) — resolves to nearest FL ZIP"},"lon":{"type":"number","description":"Longitude (WGS84)"}},"required":["query"]},"annotations":{"readOnly":true}},{"name":"local_intel_construction","description":"Construction and home services market intelligence for a ZIP. Ask about contractor density, active permits, housing starts, population growth driving demand. Returns structured data with confidence score. Trained on 100 construction business prompts.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Natural language question about construction market"},"zip":{"type":"string","description":"ZIP code to analyze"},"lat":{"type":"number","description":"Latitude (WGS84) — resolves to nearest FL ZIP"},"lon":{"type":"number","description":"Longitude (WGS84)"}},"required":["query"]},"annotations":{"readOnly":true}},{"name":"local_intel_restaurant","description":"Restaurant and food service market intelligence for a ZIP. Ask about saturation scores, price-tier gaps, capture rates, corridor analysis, tidal momentum. Returns structured data with confidence score. Trained on 100 restaurant business prompts.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Natural language question about restaurant market"},"zip":{"type":"string","description":"ZIP code to analyze"},"lat":{"type":"number","description":"Latitude (WGS84) — resolves to nearest FL ZIP"},"lon":{"type":"number","description":"Longitude (WGS84)"}},"required":["query"]},"annotations":{"readOnly":true}},{"name":"local_intel_ask","description":"Composite NL query layer. Ask any plain-English question about a ZIP — demographics, market opportunity, restaurant gaps, retail saturation, construction activity, investment signals, healthcare, corridor analysis, recent changes, nearby businesses. Routes internally to the right tools and returns a synthesized, sourced answer with confidence score. Best single entry point for humans and LLMs.","inputSchema":{"type":"object","properties":{"question":{"type":"string","description":"Plain English question, e.g. \"What restaurant categories are missing in 32082?\""},"zip":{"type":"string","description":"ZIP code (optional — will be extracted from question if present, defaults to 32082)"}},"required":["question"]},"annotations":{"readOnly":true}},{"name":"local_intel_compare","description":"Compare up to 10 ZIP codes side-by-side and get a ranked opportunity table. Returns per-ZIP signals (HHI, capture rate, infra momentum, consumer profile, top gap) plus a top_pick recommendation with reasoning. Best tool for site selection, franchise expansion, investment screening, and market prioritization.","inputSchema":{"type":"object","properties":{"zips":{"type":"array","items":{"type":"string"},"description":"Array of ZIP codes to compare, e.g. [\"32082\",\"32081\",\"32084\"]. Max 10."},"focus":{"type":"string","description":"Ranking focus: \"opportunity\" (default), \"hhi\", \"saturation\", \"growth\", or \"population\"."},"limit":{"type":"number","description":"Max rows to return (default 10)."}},"required":["zips"]},"annotations":{"readOnly":true}},{"name":"local_intel_project","description":"Project-type intelligence: pass a project_type (restaurant, clinic, banking, construction, real_estate, residential_development, fitness, legal, retail, auto, etc.) and get L1 ZIPs ranked by market or residential opportunity score plus L2 matching verified businesses already operating in that sector. Returns sector gap counts, HHI, population, growth state, and new-build %. Best tool for site selection and franchise expansion when you know the business type but not the ZIP.","inputSchema":{"type":"object","properties":{"project_type":{"type":"string","description":"Business type or project category. Examples: restaurant, clinic, banking, construction, real_estate, residential_development, fitness, legal, retail, grocery, auto, beauty, pets."},"zip":{"type":"string","description":"Optional. Filter L2 businesses to a specific ZIP. If omitted, returns top ZIPs ranked by score."},"limit":{"type":"number","description":"Number of L1 ZIPs to return (default 5, max 10)."}},"required":["project_type"]},"annotations":{"readOnly":true}},{"name":"local_intel_rfq","description":"Route a customer request to local businesses — food orders, delivery, services, or any job. Use this to place an order at a restaurant, request a delivery, get quotes for services, or connect a customer agent to a business. Supports delivery (first-to-accept) and proposal (collect quotes) modes. Set autonomy=full for fully autonomous agent flow (no human needed), approve for agent-picks/human-confirms, human for manual selection. Returns rfq_id to poll with local_intel_rfq_status. Examples: order food from a restaurant, book a contractor, request a driver.","inputSchema":{"type":"object","required":["description"],"properties":{"job_type":{"type":"string","enum":["delivery","proposal"],"description":"delivery = first-to-accept wins (food orders, pickups); proposal = collect quotes, pick best (services, construction)"},"category":{"type":"string","description":"Business category to match, e.g. \"restaurant\", \"food\", \"delivery\", \"landscaping\", \"florist\", \"handyman\", \"plumber\""},"zip":{"type":"string","description":"ZIP code to search businesses in"},"description":{"type":"string","description":"What needs to be done — be specific"},"pickup_address":{"type":"string","description":"Pickup address (delivery jobs)"},"dropoff_address":{"type":"string","description":"Drop-off address (delivery jobs)"},"budget_usd":{"type":"number","description":"Max budget in USD (optional)"},"deadline_minutes":{"type":"number","description":"Minutes until deadline (for urgent delivery jobs)"},"autonomy":{"type":"string","enum":["full","approve","human"],"description":"full=agent books automatically; approve=agent picks best, human confirms; human=human picks from list"},"notify_email":{"type":"string","description":"Email to notify for approve/human autonomy levels"}}}},{"name":"local_intel_rfq_status","description":"Poll the status of an RFQ. Returns the original request, all responses received so far, and booking details if booked.","inputSchema":{"type":"object","required":["rfq_id"],"properties":{"rfq_id":{"type":"string","description":"UUID returned by local_intel_rfq"}}}},{"name":"local_intel_book","description":"Book a specific response to an RFQ — confirms the job with that business. Use after reviewing local_intel_rfq_status responses.","inputSchema":{"type":"object","required":["rfq_id","response_id"],"properties":{"rfq_id":{"type":"string","description":"UUID of the RFQ"},"response_id":{"type":"string","description":"UUID of the response to accept"},"note":{"type":"string","description":"Optional note to the business"}}}},{"name":"local_intel_decline_response","description":"Decline a specific response to an RFQ and get the next in queue. Use when a client rejects the first responder — returns the next pending response automatically. First come first served queue.","inputSchema":{"type":"object","required":["rfq_id","response_id"],"properties":{"rfq_id":{"type":"string","description":"UUID of the RFQ"},"response_id":{"type":"string","description":"UUID of the response to decline"},"reason":{"type":"string","description":"Optional reason for declining (e.g. price too high, too far)"}}}},{"name":"local_intel_complete","description":"Mark a booked job as complete. Triggers escrow release in v2. Call when the job is done.","inputSchema":{"type":"object","required":["booking_id"],"properties":{"booking_id":{"type":"string","description":"UUID returned by local_intel_book"},"note":{"type":"string","description":"Completion note or rating"}}}}]}}