{"name":"Geocode AI","description":"Get the boundary of any country, state, county, city, district or postcode as a polygon, by name or by point. Or describe an area in plain words and get one validated polygon back. Works in ChatGPT and Claude, and from code over REST, MCP and a CLI.","docs":"https://geocodeai.dev/docs","openapi":"https://geocodeai.dev/openapi.json","mcp":"https://geocodeai.dev/mcp","llms":"https://geocodeai.dev/llms.txt","auth":"Authorization: Bearer geo_… (free key at https://geocodeai.dev/dashboard)","instructions":"Geocode AI. The exact boundary of any place on Earth. Boundaries come from OpenStreetMap, cached so repeat lookups are instant.\n\nWorkflow:\n1. A named place (country, state, county, city, district, postcode): search_boundaries with the name (add the country or parent to disambiguate), pick the result whose admin level and parents match, then get_boundary with its id for the polygon. Never guess an id.\n2. A coordinate: reverse_boundaries returns every boundary containing it (search_boundaries already returns them for an address).\n3. Everything inside a boundary (states of a country, counties of a state): list_children with the parent's id.\n4. Which zone each of many points falls in: contains_points (one batch call).\n5. Several boundaries as one shape: union_boundaries with their ids.\n6. A described area that is not one named place (\"the Bay Area minus San Francisco\", a service area clause from a contract): create_area with the text. It runs an AI agent for 30 s to a few minutes and costs 50 units, so use it only when search + get cannot answer.\n\nFirst conversation: if the human just connected or asks what this can do, show a place: search_boundaries for their city, then get_boundary at detail=low (or list_children of their state). Not account tools.\n\nIds: r<OSM relation id> (r396499), w<way id>, zcta-11249, tz-america-new_york, eez-8456, ons-E05013809 (UK); R62422 and osm.org URLs work, the canonical form comes back. Reuse ids in the conversation.\n\nCosts: one unit per boundary geometry, reverse lookup or point batch; searching and browsing are free; a described area is 50 units. The Free plan includes 100 units a month. On a 402 (quota) or 429 stop and tell the human: the error carries upgrades and checkout_url; never upgrade a plan on your own. get_pricing has the current plans, limits and features; get_account the plan in force and what is left this month.\n\nWithout a key only the public tools work (20 calls a minute per IP). A free key (geo_…) from https://geocodeai.dev/dashboard?ref=mcp or `npx @meterapp/geocode login` unlocks the rest.\n\nBuying a plan, when the human asks: create_checkout_link with the plan from get_pricing returns a Stripe page for the human to pay on (without a key, Checkout collects their email and creates the account); give them the url with the plan and price (yearly: true bills ten months' price once a year), then get_account shows when it is active. get_billing_link: invoices, card, switching, cancelling. You never pay, switch or cancel yourself, and never take card details.\n\nAccounts are organizations: a key or connection acts in one organization (get_account names it and your role: viewer, member, admin or owner), and its plan, units, API keys and file library are shared by every member. Viewers can only read; billing needs an admin. To hand a boundary to the human's team: list_files, else save_file (1 unit), then share_file with a team from list_teams. Inviting or removing people and changing roles is done by a person at https://geocodeai.dev/dashboard/org?ref=mcp; never try to do it yourself.\n\nResults are GeoJSON (WGS84, lon/lat order). When you show a polygon to a human, say which boundary it is (name, admin level, parent) so they can confirm it is the right one.\n\nFeedback: a failed tool result names its request_id; with the human's OK pass it to report_issue (with the op) so we can find the call, or request_feature for something missing; on `similar` matches upvote_feedback instead. Issues are private to the human and our team; feature requests and comments are public, so never include keys or personal data. Filing, voting and commenting email the human a thank-you and every status change. list_my_feedback follows up on what they filed or voted for. submit_review posts the human's review of the product: only with their own rating and words, never invented.\n\nTools:\n- search_boundaries (free, no key needed): Search boundaries.\n- suggest_boundaries (free, no key needed): Suggest boundaries (autocomplete).\n- get_boundary (1 unit, no key needed): Get boundary polygon.\n- export_boundary (1 unit): Export boundary file.\n- reverse_boundaries (1 unit): Boundaries at a point.\n- list_children (free, no key needed): List subdivisions.\n- contains_points (units vary with the input): Points in boundary.\n- union_boundaries (units vary with the input): Merge boundaries.\n- create_area (50 units): Create area from a description.\n- get_account (free): Get account.\n- update_profile (free): Update profile.\n- get_usage (free): Get usage.\n- list_api_keys (free): List API keys.\n- create_api_key (free): Create API key.\n- revoke_api_key (free): Revoke API key.\n- get_email_preferences (free): Get email preferences.\n- update_email_preferences (free): Update email preferences.\n- list_orgs (free): List organizations.\n- list_members (free): List members.\n- list_teams (free): List teams.\n- list_invites (free): List invites.\n- list_audit_log (free): List audit log.\n- save_file (1 unit): Save boundary file to the library.\n- list_files (free): List library files.\n- get_file (free): Get library file.\n- update_file (free): Rename or change visibility.\n- delete_file (free): Remove from the library.\n- share_file (free): Share library file.\n- unshare_file (free): Stop sharing library file.\n- get_subscription (free): Get subscription.\n- create_checkout_link (free, no key needed): Create checkout link.\n- get_billing_link (free): Get billing link.\n- list_feedback (free, no key needed): List feature requests and issues.\n- get_feedback (free, no key needed): Get a feature request or issue.\n- list_my_feedback (free): List my feedback and subscriptions.\n- request_feature (free): Request a feature.\n- report_issue (free): Report an issue.\n- upvote_feedback (free): Upvote a feature request or issue.\n- remove_feedback_vote (free): Remove an upvote.\n- comment_on_feedback (free): Comment on a feature request or issue.\n- list_reviews (free, no key needed): Read reviews.\n- get_my_review (free): Get my review.\n- submit_review (free): Post or edit a review.\n- get_pricing (free, no key needed): Get plans and prices.\n\nREST: https://geocodeai.dev/openapi.json · Docs for agents: https://geocodeai.dev/llms.txt","ops":[{"name":"search_boundaries","group":"boundaries","title":"Search boundaries","description":"Finds administrative boundaries (countries, states, counties, cities, districts), postcode areas and airports by name, in any language; an airport also by its IATA or ICAO code (\"JFK\", \"EGLL\"), returned first with kind airport, an outline you can pass to get_boundary like any boundary. Filter by country, kind or admin_level; bias toward a point with near. Free and public. A name we hold (the place's own name or a translation, optionally followed by \", <where it lies>\" such as \"Paris, France\" or \"Springfield, IL\") is answered from our own index with no upstream call; anything else is looked up in OpenStreetMap. A US ZIP code (\"11249\", \"11249-1234\", \"ZIP 11249\") returns its ZIP code area first, id zcta-<code> and kind postal_code, from the Census Bureau's ZCTAs (OpenStreetMap does not map US ZIP codes); without a country, other countries' postcodes with the same digits follow it. A ZIP code with no area of its own (a PO box) is answered as a located point. A neighbourhood OpenStreetMap maps only as a point (\"Williamsburg, Brooklyn\") returns its outline from Who's On First (id wof-…, kind neighbourhood), after any boundaries of the same name. Time zones and maritime zones are boundaries too, from our own copy with no upstream call: an IANA name (\"America/New_York\") or \"time zone Berlin\" returns the time zone (id tz-…, kind timezone, from timezone-boundary-builder), and \"EEZ France\" or kind=eez with a country name the Exclusive Economic Zones (id eez-…, kind eez, from Marine Regions); kind=timezone with any word of a zone name searches time zones. US Census areas are boundaries too, from our own copy (source us_census): a congressional district by its code (\"NY-10\", \"CA-AL\", kind congressional_district), and metro areas (\"Austin metro area\", \"New York-Newark-Jersey City\", kinds metro_area, micro_area, combined_statistical_area), school districts (\"Los Angeles Unified School District\", kind school_district) and census-designated places (unincorporated communities such as \"Brandon, FL\", kind census_place) by name; naming the family or passing its kind returns only those, while a plain place name lists them after the boundaries OpenStreetMap names so, never ahead of a city. The UK's electoral wards, Westminster constituencies and 2021 census areas (LSOA, MSOA) come from the ONS (id ons-<GSS code>, kinds ward, constituency, census_area): a GSS code (\"E14001290\"), \"<name> constituency\" or \"<name> ward\", or kind=constituency|ward|census_area with a name or its start, answers them; a plain name lists at most three of them named exactly so after the places it found, never instead of them. Returns candidates with id, kind, admin_level, country, parents, bbox, centroid and population, but no polygon: pass the id to get_boundary for that. Choose by kind: admin_level is OpenStreetMap's number and is null for a result whose level we do not hold. A street address or a landmark is not a boundary: when nothing is named that but the text matched one, located gives its point (name, kind, lat, lon) and results are the boundaries containing that point, most local first, with matched: \"containing\" (country, state, county, city: no reverse_boundaries call needed), or empty with a hint to call reverse_boundaries where we hold none there; for the shape of a park, reef or region with no boundary, use create_area. When nothing at all matched, results is empty with a hint naming the call that gets somewhere instead (a city or district name, reverse_boundaries, create_area); do not retry other spellings of a shop or street. A city OpenStreetMap maps only as a point under another name (\"Christchurch\" inside \"Christchurch City\") returns the boundaries containing it with matched: \"containing\" and a hint; check the first result is the area meant. Searches we do not hold (every street address, a name nobody asked before) share OpenStreetMap's one request a second with every caller: send them one at a time, not in parallel. While OpenStreetMap's search is down or that queue is full, a name nobody searched before is answered from the boundaries already cached under it, marked partial: true with retry_after and a hint (others with the same name may be missing), or 503 upstream_unavailable or upstream_busy with retry_after when none is cached.","read_only":true,"annotations":{"title":"Search boundaries","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":true,"units":0,"http":{"method":"GET","path":"/v1/boundaries/search"},"rpc":{"method":"POST","path":"/v1/ops/search_boundaries"},"input_schema":{"type":"object","properties":{"q":{"type":"string","minLength":1,"maxLength":200,"description":"A place name, e.g. \"Berlin\", \"Alameda County\", \"75011\". A street address returns located (its point) and the boundaries containing it as results."},"country":{"description":"Limit to countries: ISO 3166-1 alpha-2, comma-separated (e.g. US or de,at,ch).","type":"string","pattern":"^[A-Za-z]{2}(,[A-Za-z]{2})*$"},"kind":{"description":"Only this kind (normalized across countries): country, state, region, province, county, district, municipality, city, borough, ward, neighbourhood, postal_code, airport, timezone (IANA time zones), eez (Exclusive Economic Zones), and in the US metro_area, micro_area, combined_statistical_area, congressional_district, school_district, census_place (census-designated places, unincorporated communities), and in the UK constituency (Westminster constituencies) and census_area (LSOAs and MSOAs).","type":"string","enum":["country","state","region","province","county","district","municipality","city","borough","ward","neighbourhood","postal_code","airport","timezone","eez","metro_area","micro_area","combined_statistical_area","congressional_district","school_district","census_place","constituency","census_area"]},"admin_level":{"description":"Only this OSM admin_level (2 = country; meaning varies by country below that). Leaves out results whose level we do not hold; prefer kind.","type":"integer","minimum":1,"maximum":12},"near":{"description":"lat,lon to prefer results near, e.g. 37.77,-122.42.","type":"string","pattern":"^\\s*-?\\d+(\\.\\d+)?\\s*,\\s*-?\\d+(\\.\\d+)?\\s*$"},"limit":{"default":10,"description":"At most this many results (1–40, default 10).","type":"integer","minimum":1,"maximum":40}},"required":["q"]},"example":{"q":"Alameda County","country":"US"}},{"name":"suggest_boundaries","group":"boundaries","title":"Suggest boundaries (autocomplete)","description":"Autocomplete for a search box: the best-known boundaries and airports whose name starts with what has been typed so far, in any language and without accents or case (\"munc\" finds München, \"new y\" New York); an airport also by a word in its name from three letters (\"kenn\" finds John F. Kennedy International) or by its IATA/ICAO code (\"jfk\"). Answered from our own index in milliseconds with no upstream call, so call it on every keystroke. Free and public. Returns up to limit candidates, most prominent first (countries and states, then by population), each with id, name, type (the division's level: country, region, county, localadmin, locality, macrohood, neighborhood; or airport), country_code, region (ISO 3166-2), population, area_km2 and centroid, but no polygon: pass the id to get_boundary. From three letters it also finds villages, hamlets and neighbourhoods that have no outline of their own: such a candidate is the nearest boundary containing the place and carries via {name, kind}, the place that matched, so its id and name are the containing boundary's, not the place's. It matches the start of a name only. For a complete name, a postcode, an address, a filter by kind or admin_level, or parents in the result, use search_boundaries.","read_only":true,"annotations":{"title":"Suggest boundaries (autocomplete)","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":true,"units":0,"http":{"method":"GET","path":"/v1/boundaries/suggest"},"rpc":{"method":"POST","path":"/v1/ops/suggest_boundaries"},"input_schema":{"type":"object","properties":{"q":{"type":"string","minLength":1,"maxLength":100,"description":"What the user has typed so far, e.g. \"berl\". One character is enough."},"country":{"description":"Limit to countries: ISO 3166-1 alpha-2, comma-separated (e.g. US or de,at,ch).","type":"string","pattern":"^[A-Za-z]{2}(,[A-Za-z]{2})*$"},"limit":{"default":8,"description":"At most this many suggestions (1–20, default 8).","type":"integer","minimum":1,"maximum":20}},"required":["q"]},"example":{"q":"berl"}},{"name":"get_boundary","group":"boundaries","title":"Get boundary polygon","description":"Returns one boundary as a GeoJSON Feature: its polygon at a chosen detail plus properties (name, kind, admin_level, parents, bbox, area_km2, population, wikidata). The polygon is OpenStreetMap's outline (territorial waters included; for an airport id from search_boundaries or suggest_boundaries, the airport grounds; for tz-… a time zone's area, eez-… an Exclusive Economic Zone, zcta-… a US ZIP code area, cbsa-, csa-, cd-, sd- and cdp-… the U.S. Census Bureau's TIGER/Line polygon, ons-… a UK ward, constituency or census area from the ONS, wof-… a neighbourhood outline from Who's On First), served from our own copy; only a boundary missing from it is fetched from OpenStreetMap the first time anyone asks. admin_level is null where we do not hold OpenStreetMap's level: choose by kind. Costs 1 unit; detail=low is also public without a key (for map previews). include=parents adds the full hierarchy, include=children the direct subdivisions. If the polygon is too big for one response, geometry is null and download_url points to the file.","read_only":true,"annotations":{"title":"Get boundary polygon","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":true,"units":1,"http":{"method":"GET","path":"/v1/boundaries/{id}"},"rpc":{"method":"POST","path":"/v1/ops/get_boundary"},"input_schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200,"description":"Boundary id: r<OSM relation id> (e.g. r62422 for Berlin), w<way id>, zcta-<code> for a US ZIP code area (e.g. zcta-11249), tz-<zone> for a time zone (e.g. tz-america-new_york) eez-<Marine Regions id> for an Exclusive Economic Zone (e.g. eez-8456), or a US Census area: cbsa-<code> a metro area (cbsa-35620), csa-<code> a combined statistical area, cd-<state FIPS><district> a congressional district (cd-3610 is NY-10), sd-<LEA id> a school district (sd-0622710), cdp-<GEOID> a census-designated place (cdp-1208150); ons-<GSS code> for a UK ward, Westminster constituency or census area (e.g. ons-E05013809); wof-<Who's On First id> for a neighbourhood outline (e.g. wof-85857853). Also accepts R62422, relation/62422, -62422, an openstreetmap.org URL, wikidata:Q64, iso:US-CA, zip:11249, an IANA time zone name (America/New_York) mrgid:8456 a bare GSS code (E05013809) or wof:85857853."},"detail":{"description":"Simplification relative to the boundary's size: low (~1,000 points across; the default without a key), medium (the default with a key, ~5,000), high (~25,000), full (unsimplified OSM).","type":"string","enum":["low","medium","high","full"]},"precision":{"description":"Coordinate decimals (3–7). Defaults to what the detail level needs.","type":"integer","minimum":3,"maximum":7},"include":{"description":"Comma-separated extras: parents, children.","type":"array","items":{"type":"string","enum":["parents","children"]}}},"required":["id"]},"example":{"id":"r62422","detail":"low","include":["parents"]}},{"name":"export_boundary","group":"boundaries","title":"Export boundary file","description":"Builds a boundary's polygon as a file (geojson, kml, wkt, svg or gml) at a detail level and returns a permanent public URL on our CDN; the REST route redirects straight to it. Use it for large polygons, GIS tools and bulk downloads. Costs 1 unit; each file is built once and then shared.","read_only":true,"annotations":{"title":"Export boundary file","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"public":false,"units":1,"http":{"method":"GET","path":"/v1/boundaries/{id}.{format}"},"rpc":{"method":"POST","path":"/v1/ops/export_boundary"},"input_schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200,"description":"Boundary id: r<OSM relation id> (e.g. r62422 for Berlin), w<way id>, zcta-<code> for a US ZIP code area (e.g. zcta-11249), tz-<zone> for a time zone (e.g. tz-america-new_york) eez-<Marine Regions id> for an Exclusive Economic Zone (e.g. eez-8456), or a US Census area: cbsa-<code> a metro area (cbsa-35620), csa-<code> a combined statistical area, cd-<state FIPS><district> a congressional district (cd-3610 is NY-10), sd-<LEA id> a school district (sd-0622710), cdp-<GEOID> a census-designated place (cdp-1208150); ons-<GSS code> for a UK ward, Westminster constituency or census area (e.g. ons-E05013809); wof-<Who's On First id> for a neighbourhood outline (e.g. wof-85857853). Also accepts R62422, relation/62422, -62422, an openstreetmap.org URL, wikidata:Q64, iso:US-CA, zip:11249, an IANA time zone name (America/New_York) mrgid:8456 a bare GSS code (E05013809) or wof:85857853."},"format":{"default":"geojson","description":"geojson (a Feature), kml, wkt, svg or gml.","type":"string","enum":["geojson","kml","wkt","svg","gml"]},"detail":{"default":"medium","description":"Simplification relative to the boundary's size: low (~1,000 points across, maps and previews), medium (default, ~5,000), high (~25,000), full (unsimplified OSM).","type":"string","enum":["low","medium","high","full"]}},"required":["id"]},"example":{"id":"r62422","format":"kml","detail":"medium"}},{"name":"reverse_boundaries","group":"boundaries","title":"Boundaries at a point","description":"Every administrative boundary containing a point, country first down to the smallest district. Use it to tag an address, a store or a delivery with its country, state, county and city in one call. Costs 1 unit. Returns ids you can pass to get_boundary. Answered from our own polygons in well under a second for any point on land or in territorial waters; postcode areas are not included in such an answer, except US ZIP code areas (Census ZCTAs, ids zcta-…), which are listed after the chain for a point in the US, followed there by its US Census areas (source us_census): combined statistical area, metro or micro area, congressional district (kind congressional_district), school districts (kind school_district, up to one per level) and census-designated place. In the UK the Westminster constituency, electoral ward and census areas (MSOA, LSOA; ids ons-…, from the ONS) follow the chain. Last come the Exclusive Economic Zone (kind eez, id eez-…) for a point at sea within one, then the time zone (kind timezone, id tz-…, its IANA name as name): the time zone of any point on Earth, the open sea included. Choose levels by kind: admin_level is OpenStreetMap's number and is null where we do not hold it. Only a point no division contains (open sea, Antarctica) is looked up in OpenStreetMap; when that is slow or down, the call answers the boundaries already cached with polygons, marked partial: true with retry_after and a hint (city, district or postcode may be missing), or 503 upstream_unavailable with retry_after when none is cached. A slow lookup keeps running, so the same call after retry_after is served complete from the cache.","read_only":true,"annotations":{"title":"Boundaries at a point","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":false,"units":1,"http":{"method":"GET","path":"/v1/boundaries/reverse"},"rpc":{"method":"POST","path":"/v1/ops/reverse_boundaries"},"input_schema":{"type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90,"description":"Latitude, -90 to 90."},"lon":{"type":"number","minimum":-180,"maximum":180,"description":"Longitude, -180 to 180."}},"required":["lat","lon"]},"example":{"lat":52.52,"lon":13.405}},{"name":"list_children","group":"boundaries","title":"List subdivisions","description":"The direct subdivisions of a boundary: a country's states, a state's counties, a city's districts. Without admin_level it picks the next level that exists. Free and public. Use it to build drill-down pickers or to cover a region with its parts. While OpenStreetMap is down it may answer partial: true with retry_after: children listed from Overture divisions, some with only id and name (get_boundary fetches them).","read_only":true,"annotations":{"title":"List subdivisions","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":true,"units":0,"http":{"method":"GET","path":"/v1/boundaries/{id}/children"},"rpc":{"method":"POST","path":"/v1/ops/list_children"},"input_schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200,"description":"Boundary id: r<OSM relation id> (e.g. r62422 for Berlin), w<way id>, zcta-<code> for a US ZIP code area (e.g. zcta-11249), tz-<zone> for a time zone (e.g. tz-america-new_york) eez-<Marine Regions id> for an Exclusive Economic Zone (e.g. eez-8456), or a US Census area: cbsa-<code> a metro area (cbsa-35620), csa-<code> a combined statistical area, cd-<state FIPS><district> a congressional district (cd-3610 is NY-10), sd-<LEA id> a school district (sd-0622710), cdp-<GEOID> a census-designated place (cdp-1208150); ons-<GSS code> for a UK ward, Westminster constituency or census area (e.g. ons-E05013809); wof-<Who's On First id> for a neighbourhood outline (e.g. wof-85857853). Also accepts R62422, relation/62422, -62422, an openstreetmap.org URL, wikidata:Q64, iso:US-CA, zip:11249, an IANA time zone name (America/New_York) mrgid:8456 a bare GSS code (E05013809) or wof:85857853."},"admin_level":{"description":"Subdivision admin_level; default: the next level below the parent that exists.","type":"integer","minimum":3,"maximum":12}},"required":["id"]},"example":{"id":"r165475"}},{"name":"contains_points","group":"boundaries","title":"Points in boundary","description":"Tests up to 10,000 points ([lon, lat] pairs) against one boundary and returns a boolean per point plus the inside count. Use it for geofencing, service-area checks and filtering customer lists. Costs 1 unit per 1,000 points.","read_only":true,"annotations":{"title":"Points in boundary","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":false,"units":"varies","http":{"method":"POST","path":"/v1/boundaries/{id}/contains"},"rpc":{"method":"POST","path":"/v1/ops/contains_points"},"input_schema":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200,"description":"Boundary id: r<OSM relation id> (e.g. r62422 for Berlin), w<way id>, zcta-<code> for a US ZIP code area (e.g. zcta-11249), tz-<zone> for a time zone (e.g. tz-america-new_york) eez-<Marine Regions id> for an Exclusive Economic Zone (e.g. eez-8456), or a US Census area: cbsa-<code> a metro area (cbsa-35620), csa-<code> a combined statistical area, cd-<state FIPS><district> a congressional district (cd-3610 is NY-10), sd-<LEA id> a school district (sd-0622710), cdp-<GEOID> a census-designated place (cdp-1208150); ons-<GSS code> for a UK ward, Westminster constituency or census area (e.g. ons-E05013809); wof-<Who's On First id> for a neighbourhood outline (e.g. wof-85857853). Also accepts R62422, relation/62422, -62422, an openstreetmap.org URL, wikidata:Q64, iso:US-CA, zip:11249, an IANA time zone name (America/New_York) mrgid:8456 a bare GSS code (E05013809) or wof:85857853."},"points":{"minItems":1,"maxItems":10000,"type":"array","items":{"type":"array","prefixItems":[{"type":"number","minimum":-180,"maximum":180},{"type":"number","minimum":-90,"maximum":90}],"items":false,"minItems":2,"maxItems":2},"description":"Points as [lon, lat] (GeoJSON order)."}},"required":["id","points"]},"example":{"id":"r62422","points":[[13.405,52.52],[2.35,48.86]]}},{"name":"union_boundaries","group":"boundaries","title":"Merge boundaries","description":"Merges boundaries into one polygon: the union of include minus the union of exclude (e.g. three counties minus one city). Use it for sales territories, delivery zones and service areas. Up to 50 boundaries; costs 1 unit per boundary. Returns a GeoJSON Feature with area_km2. To describe an area in words instead, use create_area.","read_only":true,"annotations":{"title":"Merge boundaries","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":false,"units":"varies","http":{"method":"POST","path":"/v1/boundaries/union"},"rpc":{"method":"POST","path":"/v1/ops/union_boundaries"},"input_schema":{"type":"object","properties":{"include":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200,"description":"Boundary id: r<OSM relation id> (e.g. r62422 for Berlin), w<way id>, zcta-<code> for a US ZIP code area (e.g. zcta-11249), tz-<zone> for a time zone (e.g. tz-america-new_york) eez-<Marine Regions id> for an Exclusive Economic Zone (e.g. eez-8456), or a US Census area: cbsa-<code> a metro area (cbsa-35620), csa-<code> a combined statistical area, cd-<state FIPS><district> a congressional district (cd-3610 is NY-10), sd-<LEA id> a school district (sd-0622710), cdp-<GEOID> a census-designated place (cdp-1208150); ons-<GSS code> for a UK ward, Westminster constituency or census area (e.g. ons-E05013809); wof-<Who's On First id> for a neighbourhood outline (e.g. wof-85857853). Also accepts R62422, relation/62422, -62422, an openstreetmap.org URL, wikidata:Q64, iso:US-CA, zip:11249, an IANA time zone name (America/New_York) mrgid:8456 a bare GSS code (E05013809) or wof:85857853."},"description":"Boundary ids to merge."},"exclude":{"default":[],"description":"Boundary ids to cut out.","maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200,"description":"Boundary id: r<OSM relation id> (e.g. r62422 for Berlin), w<way id>, zcta-<code> for a US ZIP code area (e.g. zcta-11249), tz-<zone> for a time zone (e.g. tz-america-new_york) eez-<Marine Regions id> for an Exclusive Economic Zone (e.g. eez-8456), or a US Census area: cbsa-<code> a metro area (cbsa-35620), csa-<code> a combined statistical area, cd-<state FIPS><district> a congressional district (cd-3610 is NY-10), sd-<LEA id> a school district (sd-0622710), cdp-<GEOID> a census-designated place (cdp-1208150); ons-<GSS code> for a UK ward, Westminster constituency or census area (e.g. ons-E05013809); wof-<Who's On First id> for a neighbourhood outline (e.g. wof-85857853). Also accepts R62422, relation/62422, -62422, an openstreetmap.org URL, wikidata:Q64, iso:US-CA, zip:11249, an IANA time zone name (America/New_York) mrgid:8456 a bare GSS code (E05013809) or wof:85857853."}},"detail":{"default":"medium","description":"Simplification relative to the boundary's size: low (~1,000 points across, maps and previews), medium (default, ~5,000), high (~25,000), full (unsimplified OSM).","type":"string","enum":["low","medium","high","full"]}},"required":["include"]},"example":{"include":["r396499","r396479"],"exclude":["r2833530"],"detail":"low"}},{"name":"create_area","group":"areas","title":"Create area from a description","description":"Turns a plain-language description of an area (\"Alameda and Contra Costa counties excluding San Jose, plus SFO\") or wording from a contract or policy into one validated land-only polygon. An AI agent plans includes/excludes from real administrative boundaries; you get GeoJSON plus each part's source, or a 422 explaining what could not be mapped. Takes 30 s to a few minutes. For a single named place use search_boundaries + get_boundary instead: it is instant and costs 1 unit.","read_only":false,"annotations":{"title":"Create area from a description","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"public":false,"units":50,"http":{"method":"POST","path":"/v1/areas"},"rpc":{"method":"POST","path":"/v1/ops/create_area"},"input_schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":3000,"description":"The description of the area."},"country":{"description":"ISO 3166-1 alpha-2 country code, if known.","type":"string","minLength":2,"maxLength":2},"source":{"description":"Who wrote the description (agency, company). Optional context.","type":"string","maxLength":200},"seed":{"description":"A point that must be inside the area.","type":"object","properties":{"lat":{"type":"number","minimum":-90,"maximum":90},"lon":{"type":"number","minimum":-180,"maximum":180}},"required":["lat","lon"]}},"required":["text"]},"example":{"text":"Alameda and Contra Costa counties, excluding the City of Oakland","country":"US"}},{"name":"get_account","group":"account","title":"Get account","description":"The signed-in account and the organization the call acts in: email and profile, the organization (id, slug, name, personal or shared) and the caller's role in it (viewer, member, admin or owner), how the call is authenticated (api_key, oauth or session), the organization's plan in force (status, renewal date, set to cancel or not), this month's use of every limit (units used and remaining, described areas remaining, API keys, requests a minute, when units reset), and what the next plan adds with its checkout_url. Plan, usage and limits belong to the organization and are shared by its members and keys. Free. Call it before a large batch to check it fits, and after a human pays to see the new plan.","read_only":true,"annotations":{"title":"Get account","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/account"},"rpc":{"method":"POST","path":"/v1/ops/get_account"},"input_schema":{"type":"object","properties":{}},"example":null},{"name":"update_profile","group":"account","title":"Update profile","description":"Sets the account's name, company, use case (what you are building) and language (the language for emails and the dashboard). Send only the fields to change; an empty string clears a text field. Free. Returns the updated profile.","read_only":false,"annotations":{"title":"Update profile","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"public":false,"units":0,"http":{"method":"POST","path":"/v1/account"},"rpc":{"method":"POST","path":"/v1/ops/update_profile"},"input_schema":{"type":"object","properties":{"name":{"description":"Your name, used in emails (\"Hey {first name},\").","type":"string","maxLength":120},"company":{"description":"Company or project.","type":"string","maxLength":120},"use_case":{"description":"What you are building with boundaries and areas.","type":"string","maxLength":1000},"locale":{"description":"The language for emails and the dashboard: one of en, es, de, fr, ja, pt-BR. A language that isn't published yet reads in English until it is.","type":"string","enum":["en","es","de","fr","ja","pt-BR"]}}},"example":{"name":"Ada Lovelace","company":"Analytical Engines","use_case":"Delivery zones from postcodes"}},{"name":"get_usage","group":"usage","title":"Get usage","description":"The organization's daily usage for the last N days (default 30), by op, with cache hit counts, across every member and key. Use it to explain a bill or spot a runaway client.","read_only":true,"annotations":{"title":"Get usage","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/usage"},"rpc":{"method":"POST","path":"/v1/ops/get_usage"},"input_schema":{"type":"object","properties":{"days":{"default":30,"description":"How many days back.","type":"integer","minimum":1,"maximum":90}}},"example":null},{"name":"list_api_keys","group":"keys","title":"List API keys","description":"The organization's API keys (prefix, name, who created it, last use; never the secret). Members see the keys they created; admins and owners see every key, including those of people who left.","read_only":true,"annotations":{"title":"List API keys","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/keys"},"rpc":{"method":"POST","path":"/v1/ops/list_api_keys"},"input_schema":{"type":"object","properties":{"include_revoked":{"default":false,"type":"boolean"}}},"example":null},{"name":"create_api_key","group":"keys","title":"Create API key","description":"Creates an API key for the organization and returns the secret once. Store it in an environment variable (GEOCODE_API_KEY); it cannot be shown again. The key acts in this organization only, with its creator's role (at most admin), and keeps working if the creator leaves until an admin revokes it.","read_only":false,"annotations":{"title":"Create API key","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"public":false,"units":0,"http":{"method":"POST","path":"/v1/keys"},"rpc":{"method":"POST","path":"/v1/ops/create_api_key"},"input_schema":{"type":"object","properties":{"name":{"default":"Default key","description":"A label, e.g. the app or environment.","type":"string","minLength":1,"maxLength":80}}},"example":{"name":"production"}},{"name":"revoke_api_key","group":"keys","title":"Revoke API key","description":"Revokes an API key by id. Requests with it fail with 401 immediately. Members revoke the keys they created; admins and owners revoke any key in the organization.","read_only":false,"annotations":{"title":"Revoke API key","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"public":false,"units":0,"http":{"method":"DELETE","path":"/v1/keys/{id}"},"rpc":{"method":"POST","path":"/v1/ops/revoke_api_key"},"input_schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The key's id from list_api_keys."}},"required":["id"]},"example":null},{"name":"get_email_preferences","group":"account","title":"Get email preferences","description":"Which automated emails the account receives: the global subscription and one switch per kind (getting-started notes, first boundary, usage milestones, quota warnings, check-ins, monthly digest). Free. Sign-in codes are always sent.","read_only":true,"annotations":{"title":"Get email preferences","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/account/email-preferences"},"rpc":{"method":"POST","path":"/v1/ops/get_email_preferences"},"input_schema":{"type":"object","properties":{}},"example":null},{"name":"update_email_preferences","group":"account","title":"Update email preferences","description":"Turns automated emails on or off: `subscribed: false` stops all of them (the same as the unsubscribe link), `subscribed: true` resubscribes, and `kinds` switches individual kinds. Kinds not named keep their setting. Free. Returns the preferences after the change.","read_only":false,"annotations":{"title":"Update email preferences","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"public":false,"units":0,"http":{"method":"POST","path":"/v1/account/email-preferences"},"rpc":{"method":"POST","path":"/v1/ops/update_email_preferences"},"input_schema":{"type":"object","properties":{"subscribed":{"description":"false = unsubscribe from every automated email; true = resubscribe.","type":"boolean"},"kinds":{"description":"Per-kind switches, e.g. {\"digest\": false}.","type":"object","properties":{"journey":{"description":"A few short notes in your first month, each with the next step.","type":"boolean"},"connector":{"description":"One note with a prompt to try if you connect ChatGPT or Claude and haven't looked anything up yet.","type":"boolean"},"first_boundary":{"description":"One note when you fetch your first boundary.","type":"boolean"},"search_ready":{"description":"A note when a search of yours that found nothing starts finding the place.","type":"boolean"},"milestone":{"description":"When your account passes 100, 1,000, 10,000 or 100,000 requests.","type":"boolean"},"quota":{"description":"When you have used 80% and 100% of this month's plan.","type":"boolean"},"winback":{"description":"A note if your API keys go quiet for a few weeks.","type":"boolean"},"digest":{"description":"On the 1st: last month's requests, cache hits and top operations.","type":"boolean"},"feedback":{"description":"Thanks and status changes for feature requests, issues and reviews you filed, upvoted or commented on.","type":"boolean"}}}}},"example":{"kinds":{"digest":false}}},{"name":"list_orgs","group":"orgs","title":"List organizations","description":"The organizations you belong to, with your role in each and which one this call acts in (current). Personal is the one made for you at signup. An API key acts in its own organization only, so with a key this lists that one. Free.","read_only":true,"annotations":{"title":"List organizations","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/orgs"},"rpc":{"method":"POST","path":"/v1/ops/list_orgs"},"input_schema":{"type":"object","properties":{}},"example":null},{"name":"list_members","group":"orgs","title":"List members","description":"The people in the organization: email, name, role (viewer, member, admin, owner), when they joined and their teams. Free. Use it to find who to share a file with. Inviting, removing and changing roles is done by a person on the dashboard.","read_only":true,"annotations":{"title":"List members","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/orgs/members"},"rpc":{"method":"POST","path":"/v1/ops/list_members"},"input_schema":{"type":"object","properties":{}},"example":null},{"name":"list_teams","group":"orgs","title":"List teams","description":"The organization's teams: slug, name, description and members with their team role (maintainer or member). Free. Pass a team's slug to share_file to share a library file with everyone in it.","read_only":true,"annotations":{"title":"List teams","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/orgs/teams"},"rpc":{"method":"POST","path":"/v1/ops/list_teams"},"input_schema":{"type":"object","properties":{}},"example":null},{"name":"list_invites","group":"orgs","title":"List invites","description":"Invitations to the organization: email, role, teams, status (pending, accepted, expired, revoked) and when they expire. Admins and owners only. Free. Sending, resending and revoking invites is done on the dashboard.","read_only":true,"annotations":{"title":"List invites","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/orgs/invites"},"rpc":{"method":"POST","path":"/v1/ops/list_invites"},"input_schema":{"type":"object","properties":{"include_closed":{"default":false,"description":"Also list accepted, expired and revoked invites.","type":"boolean"}}},"example":null},{"name":"list_audit_log","group":"orgs","title":"List audit log","description":"The organization's audit log, newest first: who (a person, an API key, an OAuth client or the system) changed membership, roles, teams, invites, API keys, billing or file sharing, and when. Admins and owners only. Free.","read_only":true,"annotations":{"title":"List audit log","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/orgs/audit-log"},"rpc":{"method":"POST","path":"/v1/ops/list_audit_log"},"input_schema":{"type":"object","properties":{"limit":{"default":20,"description":"Page size, at most 100.","type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"action":{"description":"Only this action, e.g. member.remove or api_key.create.","type":"string","maxLength":60}}},"example":null},{"name":"save_file","group":"files","title":"Save boundary file to the library","description":"Exports a boundary (like export_boundary) and saves it in the organization's file library, so teammates find it on the dashboard and through list_files. visibility org (default) shares it with every member at their role; restricted keeps it to you, admins and whoever you share it with (share_file). Saving the same boundary, format and detail again returns the existing entry. Costs 1 unit. Returns the library entry with its permanent download url.","read_only":false,"annotations":{"title":"Save boundary file to the library","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"public":false,"units":1,"http":{"method":"POST","path":"/v1/files"},"rpc":{"method":"POST","path":"/v1/ops/save_file"},"input_schema":{"type":"object","properties":{"boundary_id":{"type":"string","minLength":1,"maxLength":200,"description":"Boundary id, as get_boundary accepts it (r62422, wikidata:Q64, iso:US-CA…)."},"format":{"default":"geojson","type":"string","enum":["geojson","kml","wkt","svg","gml"]},"detail":{"default":"medium","type":"string","enum":["low","medium","high","full"]},"name":{"description":"A label for the library; default: the boundary's name, format and detail.","type":"string","minLength":1,"maxLength":200},"visibility":{"default":"org","type":"string","enum":["org","restricted"]}},"required":["boundary_id"]},"example":{"boundary_id":"r62422","format":"geojson","detail":"medium","visibility":"org"}},{"name":"list_files","group":"files","title":"List library files","description":"The boundary files in the organization's library that you can see, newest first: org-visible ones plus restricted ones shared with you or a team you are in. Each has your access (read, write or admin). Free.","read_only":true,"annotations":{"title":"List library files","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/files"},"rpc":{"method":"POST","path":"/v1/ops/list_files"},"input_schema":{"type":"object","properties":{"limit":{"default":20,"description":"Page size, at most 100.","type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}},"example":null},{"name":"get_file","group":"files","title":"Get library file","description":"One library file: its boundary, format, detail, visibility, your access, the permanent download url and, when you can manage it, who it is shared with. Free.","read_only":true,"annotations":{"title":"Get library file","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/files/{id}"},"rpc":{"method":"POST","path":"/v1/ops/get_file"},"input_schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The file's id from list_files or save_file."}},"required":["id"]},"example":null},{"name":"update_file","group":"files","title":"Rename or change visibility","description":"Renames a library file (write access) or sets its visibility (admin access on the file): org shares it with every member at their role, restricted keeps it to its creator, admins and explicit shares. Free.","read_only":false,"annotations":{"title":"Rename or change visibility","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"public":false,"units":0,"http":{"method":"POST","path":"/v1/files/{id}"},"rpc":{"method":"POST","path":"/v1/ops/update_file"},"input_schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The file's id from list_files or save_file."},"name":{"type":"string","minLength":1,"maxLength":200},"visibility":{"type":"string","enum":["org","restricted"]}},"required":["id"]},"example":{"id":"00000000-0000-4000-8000-000000000000","visibility":"restricted"}},{"name":"delete_file","group":"files","title":"Remove from the library","description":"Removes a file from the organization's library and its shares (admin access on the file). The exported file itself stays in the public cache; export_boundary rebuilds the url any time. Free.","read_only":false,"annotations":{"title":"Remove from the library","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"public":false,"units":0,"http":{"method":"DELETE","path":"/v1/files/{id}"},"rpc":{"method":"POST","path":"/v1/ops/delete_file"},"input_schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The file's id from list_files or save_file."}},"required":["id"]},"example":null},{"name":"share_file","group":"files","title":"Share library file","description":"Shares a library file with a team (by slug or id) or a person in the organization (by email or user id) at read, write or admin access; sharing again changes the access. Needs admin access on the file (its creator, an org admin, or an admin share). Viewers are capped at read whatever the share says. Free. Returns the file's shares.","read_only":false,"annotations":{"title":"Share library file","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"public":false,"units":0,"http":{"method":"POST","path":"/v1/files/{id}/shares"},"rpc":{"method":"POST","path":"/v1/ops/share_file"},"input_schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The file's id from list_files or save_file."},"team":{"description":"Team slug or id.","type":"string","minLength":1,"maxLength":100},"user":{"description":"A member's email or user id.","type":"string","minLength":1,"maxLength":254},"access":{"default":"read","type":"string","enum":["read","write","admin"]}},"required":["id"]},"example":{"id":"00000000-0000-4000-8000-000000000000","team":"gis","access":"read"}},{"name":"unshare_file","group":"files","title":"Stop sharing library file","description":"Removes one share of a library file by its grant id (from get_file). Needs admin access on the file. Org-visible files stay visible to every member; make it restricted with update_file to limit it to its shares. Free.","read_only":false,"annotations":{"title":"Stop sharing library file","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"public":false,"units":0,"http":{"method":"DELETE","path":"/v1/files/{id}/shares/{grant_id}"},"rpc":{"method":"POST","path":"/v1/ops/unshare_file"},"input_schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The file's id from list_files or save_file."},"grant_id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["id","grant_id"]},"example":null},{"name":"get_subscription","group":"billing","title":"Get subscription","description":"The organization's plan and subscription: plan, status, when the period renews or ends, whether it is set to cancel, the price, this month's use of every limit (units, described areas, API keys, rate) and what the next plan adds, with its checkout_url. Free. The same as get_account without the profile. Call it before suggesting an upgrade, and after handing a human a checkout link to see when the payment went through (plan changes from free to the plan bought, usually within seconds).","read_only":true,"annotations":{"title":"Get subscription","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":false,"units":0,"http":{"method":"GET","path":"/v1/billing/subscription"},"rpc":{"method":"POST","path":"/v1/ops/get_subscription"},"input_schema":{"type":"object","properties":{}},"example":{}},{"name":"create_checkout_link","group":"billing","title":"Create checkout link","description":"A link a human opens to buy a plan (pro or business) on a Stripe page branded Geocode AI. Free, and charges nothing: the person enters or confirms the card (never pass card details to a tool). With a key, the link is a Checkout page for that account (or, on a paid plan already, a page that confirms the switch, prorated). Without a key it is a Checkout page that collects the human's email and creates their account when they pay (kind guest_checkout), so an agent with no account can still hand its human one link. Give the url to the human as is, say the plan and price (monthly by default; yearly: true bills ten months' price once a year), then call get_account to see when it is paid. Never open or pay it yourself, and only call it when the human asked to buy or upgrade.","read_only":false,"annotations":{"title":"Create checkout link","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"public":true,"units":0,"http":{"method":"POST","path":"/v1/billing/checkout"},"rpc":{"method":"POST","path":"/v1/ops/create_checkout_link"},"input_schema":{"type":"object","properties":{"plan":{"type":"string","enum":["starter","pro","business"],"description":"The plan to buy. get_pricing lists them with prices, limits and features."},"yearly":{"default":false,"description":"Bill once a year: ten months' price (two months free). get_pricing shows price.yearly.","type":"boolean"}},"required":["plan"]},"example":{"plan":"pro"}},{"name":"get_billing_link","group":"billing","title":"Get billing link","description":"A link for the account's owner to open Stripe's Customer Portal: download invoices, change the card or billing details, switch plans, or cancel (at the end of the period already paid for). Free. The link does not expire; it asks the person to sign in to Geocode AI, then opens the portal. Fails with no_subscription when the account never had a paid plan.","read_only":false,"annotations":{"title":"Get billing link","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"public":false,"units":0,"http":{"method":"POST","path":"/v1/billing/portal"},"rpc":{"method":"POST","path":"/v1/ops/get_billing_link"},"input_schema":{"type":"object","properties":{}},"example":{}},{"name":"list_feedback","group":"feedback","title":"List feature requests and issues","description":"The feedback board: feature requests and published issues with their status and upvotes, most upvoted first (with a key, also your own private issues, and whether you voted). Free and needs no key. Call it before request_feature or report_issue to find an existing item to upvote instead of filing a duplicate, or when the human asks what is planned or shipped.","read_only":true,"annotations":{"title":"List feature requests and issues","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":true,"units":0,"http":{"method":"GET","path":"/v1/feedback"},"rpc":{"method":"POST","path":"/v1/ops/list_feedback"},"input_schema":{"type":"object","properties":{"kind":{"default":"all","description":"feature = feature requests, issue = bug reports.","type":"string","enum":["feature","issue","all"]},"status":{"default":"active","description":"active = open, planned or in progress; closed = done, declined or duplicate.","type":"string","enum":["active","closed","all","open","planned","in_progress","done","declined","duplicate"]},"sort":{"default":"top","description":"top = most upvoted, new = most recent, recent_activity = latest vote, comment or change.","type":"string","enum":["top","new","recent_activity"]},"q":{"description":"Words to find in the title or description.","type":"string","maxLength":100},"mine":{"description":"Only items you filed (needs a key); list_my_feedback also lists what you follow.","anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]},"limit":{"default":20,"description":"Page size, at most 100.","type":"integer","minimum":1,"maximum":100},"cursor":{"description":"next_cursor from the previous page.","type":"string","pattern":"^\\d+$"},"offset":{"default":0,"description":"Same as cursor, as a number.","type":"integer","minimum":0,"maximum":9007199254740991}}},"example":{"kind":"feature","q":"postcode"}},{"name":"get_feedback","group":"feedback","title":"Get a feature request or issue","description":"One feedback item with its status, upvotes, comments (official team responses marked) and timeline of status changes. Free and needs no key for public items; a private issue is visible to its reporter and the team.","read_only":true,"annotations":{"title":"Get a feature request or issue","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":true,"units":0,"http":{"method":"GET","path":"/v1/feedback/{id}"},"rpc":{"method":"POST","path":"/v1/ops/get_feedback"},"input_schema":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The item's id from list_feedback, request_feature or report_issue (e.g. 42)."}},"required":["id"]},"example":{"id":1}},{"name":"list_my_feedback","group":"feedback","title":"List my feedback and subscriptions","description":"What you filed (including private issues), what you follow because you voted or commented, and your review, each with its current status. Free; needs a key. Use it to check on an issue you reported or a feature you asked for.","read_only":true,"annotations":{"title":"List my feedback and subscriptions","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":false,"units":0,"http":{"method":"GET","path":"/v1/feedback/mine"},"rpc":{"method":"POST","path":"/v1/ops/list_my_feedback"},"input_schema":{"type":"object","properties":{"limit":{"default":50,"description":"Items per list, at most 100.","type":"integer","minimum":1,"maximum":100}}},"example":{}},{"name":"request_feature","group":"feedback","title":"Request a feature","description":"Files a feature request on the public board and upvotes it for you. Use it when the human wishes the API did something it cannot (a boundary type, export format, op or option). It first looks for similar requests: if any match it files nothing and returns them in `similar`, so you can upvote_feedback the right one; pass force: true to file anyway. Free; needs a key; 10 new items per account a day. The human gets a thank-you email and an email on every status change. Feature requests are public (never the author's email); issues are private to you and the team. Do not include API keys, personal data or customer data.","read_only":false,"annotations":{"title":"Request a feature","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"public":false,"units":0,"http":{"method":"POST","path":"/v1/feedback/features"},"rpc":{"method":"POST","path":"/v1/ops/request_feature"},"input_schema":{"type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":140,"description":"What you want, in one line."},"details":{"default":"","description":"Why you need it and what you are building; concrete examples help it get planned.","type":"string","maxLength":5000},"force":{"description":"File even when similar requests exist.","anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]}},"required":["title"]},"example":{"title":"Export boundaries as Shapefile","details":"Our GIS team imports zones into ArcGIS, which wants .shp."}},{"name":"report_issue","group":"feedback","title":"Report an issue","description":"Reports a problem with Geocode AI: a failing or wrong API call, a wrong or missing boundary, a docs error. Call it after a call fails in a way that looks like our bug (5xx, a wrong polygon, a boundary that should exist), with the failing call's request_id (X-Request-Id header or the error's request_id) and op; add query, boundary_id and the error in context. Issues are private to you and the team. It first returns similar issues you can see, filing nothing; upvote_feedback the same one or pass force: true. Free; needs a key; 10 new items per account a day. The human gets an email with the reference and on every status change.","read_only":false,"annotations":{"title":"Report an issue","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"public":false,"units":0,"http":{"method":"POST","path":"/v1/feedback/issues"},"rpc":{"method":"POST","path":"/v1/ops/report_issue"},"input_schema":{"type":"object","properties":{"title":{"type":"string","minLength":3,"maxLength":140,"description":"What is wrong, in one line."},"details":{"default":"","description":"What you did, what you expected and what happened.","type":"string","maxLength":5000},"request_id":{"description":"The request_id of the failing call (same as context.request_id).","type":"string","maxLength":128},"op":{"description":"The op the failing call used, e.g. get_boundary (same as context.op).","type":"string","maxLength":80},"context":{"type":"object","properties":{"request_id":{"description":"X-Request-Id of the failing call (or the error body's request_id).","type":"string","maxLength":128},"op":{"description":"The op or endpoint, e.g. get_boundary or GET /v1/boundaries/{id}.","type":"string","maxLength":80},"query":{"description":"The search text or input that misbehaved.","type":"string","maxLength":500},"boundary_id":{"description":"The boundary concerned (r62422, R62422, an osm.org URL…).","type":"string","maxLength":200},"error":{"description":"The error you got: its code, HTTP status and message.","anyOf":[{"type":"string","maxLength":2000},{"type":"object","properties":{"code":{"type":"string","maxLength":80},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"message":{"type":"string","maxLength":2000}}}]},"status":{"description":"HTTP status of the failing call.","type":"integer","minimum":100,"maximum":599},"client":{"description":"What made the call: geocode-cli, an MCP host, your app.","type":"string","maxLength":120},"version":{"description":"Its version.","type":"string","maxLength":40},"input":{"description":"The op input you sent (no secrets).","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"description":"What we need to reproduce it. Only you and the team see it."},"force":{"description":"File even when similar issues exist.","anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]}},"required":["title"]},"example":{"title":"get_boundary returns 404 for r62422","details":"Berlin by relation id: 404 not_found since this morning.","request_id":"5f0c…","op":"get_boundary","context":{"boundary_id":"r62422","error":{"code":"not_found","status":404}}}},{"name":"upvote_feedback","group":"feedback","title":"Upvote a feature request or issue","description":"Adds your upvote to a feature request or issue (a \"me too\"); votes decide what gets built and fixed first, and you get an email when its status changes. Idempotent: one vote per account. A vote on a duplicate goes to the original. Free; needs a key. Returns the item with its new vote count.","read_only":false,"annotations":{"title":"Upvote a feature request or issue","readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"public":false,"units":0,"http":{"method":"POST","path":"/v1/feedback/{id}/votes","aliases":["/v1/feedback/{id}/vote"]},"rpc":{"method":"POST","path":"/v1/ops/upvote_feedback"},"input_schema":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The item's id from list_feedback, request_feature or report_issue (e.g. 42)."}},"required":["id"]},"example":{"id":1}},{"name":"remove_feedback_vote","group":"feedback","title":"Remove an upvote","description":"Takes back your upvote on a feature request or issue, and stops its emails unless you filed or commented on it. Free; needs a key. Returns the item with its new vote count.","read_only":false,"annotations":{"title":"Remove an upvote","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"public":false,"units":0,"http":{"method":"DELETE","path":"/v1/feedback/{id}/votes","aliases":["/v1/feedback/{id}/vote"]},"rpc":{"method":"POST","path":"/v1/ops/remove_feedback_vote"},"input_schema":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The item's id from list_feedback, request_feature or report_issue (e.g. 42)."}},"required":["id"]},"example":{"id":1}},{"name":"comment_on_feedback","group":"feedback","title":"Comment on a feature request or issue","description":"Adds context to an existing feature request or issue: your use case, another failing request id, a workaround. Prefer it (with upvote_feedback) over filing a near-duplicate. You then get its status emails; its author gets a daily digest of comments. Free; needs a key; 50 comments per account a day. Feature requests are public (never the author's email); issues are private to you and the team. Do not include API keys, personal data or customer data.","read_only":false,"annotations":{"title":"Comment on a feature request or issue","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"public":false,"units":0,"http":{"method":"POST","path":"/v1/feedback/{id}/comments"},"rpc":{"method":"POST","path":"/v1/ops/comment_on_feedback"},"input_schema":{"type":"object","properties":{"id":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The item's id from list_feedback, request_feature or report_issue (e.g. 42)."},"body":{"type":"string","minLength":1,"maxLength":5000,"description":"The comment."}},"required":["id","body"]},"example":{"id":1,"body":"Same for us: we need this for French départements."}},{"name":"list_reviews","group":"feedback","title":"Read reviews","description":"Published reviews of Geocode AI with the average rating and the distribution, and the team's response under each. Free and needs no key. Use it when the human asks what other users think.","read_only":true,"annotations":{"title":"Read reviews","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":true,"units":0,"http":{"method":"GET","path":"/v1/reviews"},"rpc":{"method":"POST","path":"/v1/ops/list_reviews"},"input_schema":{"type":"object","properties":{"sort":{"default":"new","description":"new = newest, helpful = most detailed, highest / lowest = by rating.","type":"string","enum":["new","helpful","highest","lowest"]},"rating":{"description":"Only reviews with this many stars.","type":"integer","minimum":1,"maximum":5},"limit":{"default":20,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991}}},"example":{"sort":"helpful"}},{"name":"get_my_review","group":"feedback","title":"Get my review","description":"Your review of the product, if you posted one, with its status (published, pending a check, or hidden with the reason) and the team's response. Free; needs a key.","read_only":true,"annotations":{"title":"Get my review","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":true},"public":false,"units":0,"http":{"method":"GET","path":"/v1/reviews/me"},"rpc":{"method":"POST","path":"/v1/ops/get_my_review"},"input_schema":{"type":"object","properties":{}},"example":{}},{"name":"submit_review","group":"feedback","title":"Post or edit a review","description":"Posts the human's public review of Geocode AI (1–5 stars, what they like and dislike, what they use it for), or replaces their existing one; each account has one review and earlier versions are kept. Only call it with the human's own rating and words, never invented ones. Published at once unless it holds links or the account is under a day old (then pending). Free; needs a key; one edit an hour. The human gets a thank-you email.","read_only":false,"annotations":{"title":"Post or edit a review","readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"public":false,"units":0,"http":{"method":"PUT","path":"/v1/reviews/me"},"rpc":{"method":"POST","path":"/v1/ops/submit_review"},"input_schema":{"type":"object","properties":{"rating":{"type":"integer","minimum":1,"maximum":5,"description":"Stars, 1 to 5."},"title":{"default":"","description":"A headline.","type":"string","maxLength":120},"body":{"default":"","description":"The review.","type":"string","maxLength":2000},"likes":{"default":"","description":"What works well.","type":"string","maxLength":1000},"dislikes":{"default":"","description":"What should be better.","type":"string","maxLength":1000},"use_case":{"default":"","description":"What they use it for.","type":"string","maxLength":200},"display_name":{"description":"Name shown with the review (default: first name).","type":"string","minLength":1,"maxLength":80},"display_company":{"description":"Company shown with it, if they want.","type":"string","maxLength":80},"marketing_consent":{"description":"May we quote it on our site and in marketing?","anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]}},"required":["rating"]},"example":{"rating":5,"title":"Boundaries without the GIS work","likes":"One call for any county polygon.","dislikes":"Wish it had Shapefile export.","use_case":"Delivery zones","marketing_consent":true}},{"name":"get_pricing","group":"billing","title":"Get plans and prices","description":"Every plan with its monthly price, included units, limits (units, described areas, requests a minute, API keys), features and checkout_url, plus what each call costs in units and what works without a key. Free and needs no key. Call it before a large batch, when the human asks what something costs, or before create_checkout_link; never quote prices from memory.","read_only":true,"annotations":{"title":"Get plans and prices","readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"public":true,"units":0,"http":{"method":"GET","path":"/v1/pricing"},"rpc":{"method":"POST","path":"/v1/ops/get_pricing"},"input_schema":{"type":"object","properties":{}},"example":{}}]}