{"openapi":"3.1.0","info":{"title":"MapQuest (BYOK) API","version":"0.1.0","description":"MapQuest (BYOK) lets an AI assistant read your own MapQuest data through the MapQuest API with a key you supply (MapQuest consumer key). Read-only: 6 tools (geocode_address, reverse_geocode, get_route, search_ahead, traffic_incidents, get_usage). The BYOK key travels with each request, is used for that one call only and is never stored, logged or cached; it is only ever sent to...\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://byok-mapquest.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"agent@connectorbay.com","url":"https://connectorbay.com/byok-mapquest/docs"},"termsOfService":"https://connectorbay.com/byok-mapquest/terms"},"servers":[{"url":"https://byok-mapquest.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/byok-mapquest/docs"},"security":[{"upstreamKey":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."},"upstreamKey":{"type":"apiKey","in":"header","name":"X-Upstream-Key","description":"Your own key for the service this connector wraps (bring your own key). Used for that one call only; never stored, logged or cached."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/geocode_address":{"post":{"operationId":"geocode_address","summary":"Convert an address or place name into coordinates, address parts and a geocode quality level. Each call counts as a tran","description":"Convert an address or place name into coordinates, address parts and a geocode quality level. Each call counts as a transaction against the key's monthly plan allowance. Use for \"What are the coordinates of Washington, DC\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"location":{"description":"The address or place to geocode, as a single line.","maxLength":300,"title":"Location","type":"string"},"max_results":{"anyOf":[{"maximum":50,"minimum":-1,"type":"integer"},{"type":"null"}],"default":null,"description":"Maximum number of locations to return (-1 for all).","title":"Max Results"},"bounding_box":{"anyOf":[{"maxLength":80,"type":"string"},{"type":"null"}],"default":null,"description":"Rank matches inside this box first: upper-left lat,lng then lower-right lat,lng.","title":"Bounding Box"},"intl_mode":{"anyOf":[{"enum":["5BOX","1BOX","AUTO"],"type":"string"},{"type":"null"}],"default":null,"description":"How to handle 5-box international queries.","title":"Intl Mode"},"thumb_maps":{"anyOf":[{"const":"false","type":"string"},{"type":"null"}],"default":"false","description":"Fixed by this tool (no static map links, which would carry the key); do not change.","title":"Thumb Maps"}},"required":["location"],"title":"geocode_addressArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/reverse_geocode":{"post":{"operationId":"reverse_geocode","summary":"Convert a latitude and longitude into the nearest address, optionally with the nearest intersection and road metadata (s","description":"Convert a latitude and longitude into the nearest address, optionally with the nearest intersection and road metadata (speed limit, toll). Each call counts as a transaction against the key's monthly plan allowance. Use for \"What address is at 40.039401,-76.307078\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"location":{"description":"Latitude,longitude of the point.","maxLength":40,"title":"Location","type":"string"},"include_nearest_intersection":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to return the nearest cross streets.","title":"Include Nearest Intersection"},"include_road_metadata":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to return speed limit and toll road data when available.","title":"Include Road Metadata"},"thumb_maps":{"anyOf":[{"const":"false","type":"string"},{"type":"null"}],"default":"false","description":"Fixed by this tool (no static map links, which would carry the key); do not change.","title":"Thumb Maps"}},"required":["location"],"title":"reverse_geocodeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_route":{"post":{"operationId":"get_route","summary":"Driving, walking or bicycle route between two addresses: distance, time, fuel use, route flags and turn-by-turn legs. Ea","description":"Driving, walking or bicycle route between two addresses: distance, time, fuel use, route flags and turn-by-turn legs. Each call counts as a transaction against the key's monthly plan allowance. Use for \"How do I drive from Clarendon Blvd, Arlington VA to 2400 S Glebe Rd, Arlington VA\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"origin":{"description":"Start as a single-line address or latitude,longitude.","maxLength":300,"title":"Origin","type":"string"},"destination":{"description":"End as a single-line address or latitude,longitude.","maxLength":300,"title":"Destination","type":"string"},"unit":{"anyOf":[{"enum":["m","k"],"type":"string"},{"type":"null"}],"default":null,"description":"Distance unit: m for miles (default) or k for kilometers.","title":"Unit"},"route_type":{"anyOf":[{"enum":["fastest","shortest","pedestrian","bicycle"],"type":"string"},{"type":"null"}],"default":null,"description":"fastest (default), shortest, pedestrian or bicycle.","title":"Route Type"},"narrative_type":{"anyOf":[{"enum":["none","text","html","microformat"],"type":"string"},{"type":"null"}],"default":null,"description":"Narrative style: text (default), html, microformat or none.","title":"Narrative Type"},"avoids":{"anyOf":[{"maxLength":200,"type":"string"},{"type":"null"}],"default":null,"description":"Road attributes to try to avoid, comma-separated: Limited Access, Toll Road, Ferry, Unpaved, Approximate Seasonal Closure, Country Border Crossing, Bridge, Tunnel.","title":"Avoids"},"toll_cost":{"anyOf":[{"type":"boolean"},{"type":"null"}],"default":null,"description":"True to include the estimated toll cost in USD when the route has tolls.","title":"Toll Cost"},"man_maps":{"anyOf":[{"const":"false","type":"string"},{"type":"null"}],"default":"false","description":"Fixed by this tool (no per-maneuver map links, which would carry the key); do not change.","title":"Man Maps"}},"required":["origin","destination"],"title":"get_routeArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/search_ahead":{"post":{"operationId":"search_ahead","summary":"Type-ahead suggestions for addresses, places, categories, franchises, airports and administrative areas, ranked near a p","description":"Type-ahead suggestions for addresses, places, categories, franchises, airports and administrative areas, ranked near a point. Each call counts as a transaction against the key's monthly plan allowance. Use for \"Suggest places starting with 'den'\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"q":{"description":"Query text, 2 to 100 characters; addresses must begin with a street number.","maxLength":100,"title":"Q","type":"string"},"collection":{"description":"Comma-separated collections: address, adminArea, airport, category, franchise, poi.","maxLength":100,"title":"Collection","type":"string"},"limit":{"anyOf":[{"maximum":15,"minimum":1,"type":"integer"},{"type":"null"}],"default":10,"description":"Maximum results (1 to 15, default 10).","title":"Limit"},"location":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Search context point as longitude,latitude (note the order).","title":"Location"},"country_code":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only these countries, ISO 3166-1 alpha-2 codes comma-separated.","title":"Country Code"}},"required":["q","collection"],"title":"search_aheadArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/traffic_incidents":{"post":{"operationId":"traffic_incidents","summary":"Traffic incidents, construction, events and congestion inside a bounding box, with severity, times and delay. Each call ","description":"Traffic incidents, construction, events and congestion inside a bounding box, with severity, times and delay. Each call counts as a transaction against the key's monthly plan allowance. Use for \"Which traffic incidents are around Denver\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"bounding_box":{"description":"Area as upper-left lat,lng then lower-right lat,lng.","maxLength":80,"title":"Bounding Box","type":"string"},"filters":{"anyOf":[{"maxLength":60,"type":"string"},{"type":"null"}],"default":null,"description":"Comma-separated types: incidents, construction, event, congestion (default incidents,construction).","title":"Filters"}},"required":["bounding_box"],"title":"traffic_incidentsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_usage":{"post":{"operationId":"get_usage","summary":"Your account's transaction counts per service over a date range, bucketed by hour, day, week, month, quarter or year. Do","description":"Your account's transaction counts per service over a date range, bucketed by hour, day, week, month, quarter or year. Does not use up your allowance. Use for \"How many MapQuest transactions did I use in January 2026\".","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"start_date":{"description":"Start of the window, inclusive, as YYYY-MM-DD or an ISO date-time (UTC if no zone).","maxLength":30,"title":"Start Date","type":"string"},"end_date":{"description":"End of the window, exclusive, after the start date.","maxLength":30,"title":"End Date","type":"string"},"time_unit":{"anyOf":[{"enum":["year","quarter","month","week","day","hour"],"type":"string"},{"type":"null"}],"default":null,"description":"Bucket size (default day; hour allows at most 1 week).","title":"Time Unit"},"service":{"anyOf":[{"maxLength":40,"type":"string"},{"type":"null"}],"default":null,"description":"Only this service, for example directions or geocoding.","title":"Service"}},"required":["start_date","end_date"],"title":"get_usageArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}