Generate LocalBusiness schema markup
Validated JSON-LD code for a specific business type, ready to paste into the website, ensuring correct formatting for address, hours, and services.
How it works
Read-onlyData and analysis
The agent uses generate_local_business_schema to create structured data. It takes business facts like name, address, phone, and hours. It selects the most specific LocalBusiness subtype (e.g., RoofingContractor). It formats hours in Google's documented format and validates the output against schema.org vocabulary. It returns a ready-to-paste script tag and notes on any omitted optional fields.
Prompt
Paste this into an agent that has the servers below connected. Adjust the names and dates to your own.
Prompt for Generate LocalBusiness schema markup
Write LocalBusiness schema for Juniper Ridge Roofing, a roofing contractor at 125 Example Ave, Kalispell, MT 59901, phone (406) 555-0142, website juniperridgeroofing.example, open Monday to Friday 7 AM to 5 PM, serving Kalispell, Whitefish and Columbia Falls.MCP servers it needs
Source
The vendor page this playbook is drawn from, and the passage that supports it.
generate_local_business_schema Generate LocalBusiness schema Turns business facts into schema.org JSON-LD using the most specific LocalBusiness subtype (130 to choose from, such as RoofingContractor, Dentist or Brewery), with address, geo, hours in Google's documented format, areaServed, sameAs,…AI Search Kit for Claude | Modern Mustard Seed