Hailtrades for AI agents
Hailtrades is a public MCP server and JSON API for residential emergency plumbers and electricians in Toronto and the GTA. No login or API key.
https://hailtrades.com/mcpConnect
Custom connector (Meta Muse, Claude, and other MCP clients)
Add a custom connector / remote MCP server with URL https://hailtrades.com/mcp. Transport: Streamable HTTP. Authentication: none. Tools appear as search_providers, get_provider, report_contact.
MCP client config
{ "mcpServers": { "hailtrades": { "type": "http", "url": "https://hailtrades.com/mcp" } } }
TypeScript (official SDK)
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js";
const client = new Client({ name: "my-agent", version: "1.0.0" });
await client.connect(new StreamableHTTPClientTransport(new URL("https://hailtrades.com/mcp")));
const res = await client.callTool({ name: "search_providers",
arguments: { trade: "plumber", location: "North York", emergency: true, open_now: true } });
console.log(res.structuredContent);
Plain JSON-RPC
curl -s https://hailtrades.com/mcp -H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_providers","arguments":{"trade":"electrician","postal_code":"M2N","emergency":true}}}'
Tools
| Tool | Class | Side effects |
|---|---|---|
search_providers | Read (readOnlyHint: true) | None on provider data. The request is logged (see Privacy below); a short ref code is stored per returned result. |
get_provider | Read (readOnlyHint: true) | Same as above. |
report_contact | Write, non-destructive, not sensitive (readOnlyHint: false, destructiveHint: false) | Stores one contact-outcome record (provider id, ref, channel, outcome, optional time/notes). Call only when the user actually contacted the provider and agrees to share the outcome. Never include personal details about the customer. |
search_providers(trade, location | postal_code, emergency?, open_now?, service?, max_callout_fee?, sort?, issue?, limit?)
| Input | Type | Meaning |
|---|---|---|
trade (required) | plumber | electrician | Which trade. |
location | string | City, district or neighbourhood in Toronto/GTA: North York, Scarborough, Mississauga, Thornhill, Liberty Village, Leslieville… A postal code/FSA typed here is also understood. Required unless postal_code is given. |
postal_code | string | Canadian postal code or 3-character FSA (M6P, M2N 5W3). If no provider lists that FSA, results fall back to the surrounding city and a warning says so. |
emergency | boolean | Only providers that are 24/7 or offer emergency (urgent, unplanned) service. |
open_now | boolean | Only providers open right now in America/Toronto time (stored hours, or flagged 24/7). Providers with no hours on file are excluded. |
service | string | Slug/keyword: burst_pipe, drain_clearing, sewer_backup, water_heater_repair, power_outage, breaker_repair, panel_upgrade… |
max_callout_fee | number (CAD) | Drops providers whose KNOWN call-out fee is higher; unknown fees are kept. |
sort | best_match | lowest_callout_fee | lowest_after_hours_fee | Default best_match: 24/7 first, then emergency-capable, then providers with verification/fees/hours on file, then rating. The fee sorts list providers with a known fee first (cheapest first), then unknown. Most providers publish no fee. |
issue | string | Short problem description, used only to word suggested_message. |
limit | integer 1–10 | Default 5. Each result is a full provider record. |
Output (JSON in structuredContent and as text): query (incl. resolved_area/resolved_fsa), count, total_matches, results[], optional warnings[], plus unknown_means and notes. Each result: id, name, trade, url, emergency_services/other_services, serves (municipalities, districts, FSAs), based_in, availability (open_now, is_24_7, offers_emergency, weekend_available, emergency_response_minutes, hours), pricing_cad (only fee types on file: callout_fee, after_hours_callout_fee, diagnostic_fee, quote_fee, hourly_rate), contact (preferred_method, phone, text number, email, website, emergency line), licences, years_in_business, insured, reviews, last_verified, ref and suggested_message. Absent or null means unknown, never “no”.
Empty results: total_matches: 0 with a warnings entry explaining what to relax (broader location, drop open_now/service/max_callout_fee) and the list of covered areas.
get_provider(id, issue?)
Read. Full record for one provider (hours per day, all fees, licences, reviews) with a fresh ref code. id is the prv_… id from search results or the provider page slug.
report_contact(provider_id, ref?, channel, outcome, time?, notes?)
Write. channel: call|text|email|form. outcome: no_answer|quote_given|visit_booked|declined|other. time is ISO 8601 (default now). Returns {status: "recorded", report_id, ref_recognised}. The user can optionally share the outcome of a contact attempt via report_contact (MCP tool, or POST /api/v1/contact-reports), using the provider id and ref code, to keep availability data accurate. Only with the user's agreement.
Errors
- Tool errors are returned as normal MCP results with
isError: trueand a one-line explanation (for example provide location (e.g. 'North York') or postal_code, trade must be 'plumber' or 'electrician', provider prv_x not found, validation messages forreport_contact). A storage outage onreport_contactreturnsisErrorwith a retry message; searches keep working without refs. - JSON-RPC errors:
-32700parse error,-32600invalid request,-32601unknown method,-32602unknown tool or bad arguments. HTTP:405forGET/DELETEon/mcp(stateless: no SSE stream, no sessions),429when rate limited. Never an HTML error page.
Rate limits
Per client IP: 240 requests/minute for anonymous clients, 600/minute for recognised AI-agent user agents; requests from known AI-vendor networks and signed agents (Web Bot Auth / Poppy) are not limited. Over the limit you get HTTP 429 with Retry-After: 30 and a JSON body. Typical response time is under 100 ms. Need more? support@hailtrades.com.
Privacy and logging
We log time, path, user agent, IP/network, the tool name and arguments (trade, area, filters), the providers and refs returned, status and latency (never cookies or credentials). Raw logs are kept up to 90 days. No ads, no sale of data, no model training. See Privacy and Terms. Hailtrades is a directory: no payments, no bookings, no work performed.
Protocol
MCP Streamable HTTP, stateless JSON responses (SSE only if the client asks for it exclusively). Protocol versions 2025-11-25, 2025-06-18, 2025-03-26, 2024-11-05 are accepted. initialize returns instructions; notifications/* return 202. No Mcp-Session-Id needed. CORS open.
Meta Muse: copy-paste prompt
Build a custom connector for Hailtrades using its MCP server at https://hailtrades.com/mcp. It is a public remote MCP server over streamable HTTP and needs no authentication or API key. List the tools, test search_providers with a real query, and save it as a reusable skill. Then use it: I'm in North York and a pipe just burst. Find an emergency plumber who is open now and show their name, phone, call-out fee if known, and whether they are 24/7. Do not contact anyone.
JSON API
GET https://hailtrades.com/api/v1/providers/search?trade=plumber&location=Etobicoke&emergency=true
GET https://hailtrades.com/api/v1/providers/{id}
POST https://hailtrades.com/api/v1/contact-reports {"provider_id":"prv_…","ref":"HT-4F2K","channel":"call","outcome":"quote_given"}
CORS is open. OpenAPI 3.1: /openapi.json. Plain-text summary: /llms.txt, /llms-full.txt.
Bulk data
Every provider and fee record is free to download under CC BY 4.0 (credit Hailtrades with a link to https://hailtrades.com): /data, providers.csv, providers.json, fees.csv.
Areas covered
Toronto, Downtown Toronto, North York, Scarborough, Etobicoke, East York, York, Mississauga, Brampton, Vaughan, Markham, Richmond Hill, Oakville, Burlington, Milton, Pickering, Ajax, Whitby, Oshawa, Newmarket, Aurora, Caledon.
Data notes
Provider details are collected from public sources and checked periodically (see last_verified). Hours and fees may have changed; confirm with the provider. Hailtrades is a directory: we don't take payment or guarantee service.