PokéAPI Frankfurter Postcodes.io
Postcodes.io: the tools an agent sees
The same API, four ways. Each column is the tool list the eval's agent received over MCP, with estimated tokens for the whole list, and how often it solved this API's 20 tasks.
Try a tool, live
Runs the generated server's tool over MCP against the real API, exactly as the eval's agent called it. No model is involved. Only read-only (GET) tools, and a few calls a minute.
Returns detailed information for one UK postcode. Case and spacing do not matter. A 404 for a postcode no longer in use includes a terminated property; use terminated_postcode_lookup for those. To look up several postcodes at once, use bulk_postcodes.
All four tool lists
A. OpenAPI direct
11 tools · ~2,175 tokens · 90.0% solved
lookup_postcode
Lookup Postcode ### Postcode Data Lookup a UK postcode against the ONS Postcode Directory (ONSPD). The response is a fully resolved record — every administrative, electoral, statistical and health geography that ONSPD ships for the postcode is returned at the top level by its human-readable name, with the equivalent GSS / official codes mirrored under the `codes` object. The same shape is returned by `/postcodes` (bulk + search) and the reverse-geocoding endpoints. `/outcodes` returns a separate, aggregated [Outcode](#tag/Outward-Codes) shape — one row per outward code, with admin / parish / constituency arrays summarising the postcodes inside. Returns `404` if the postcode does not exist or is not valid.
postcode(required) string
postcode_lookup
Autocomplete Search a Postcode Query for a postcode either by: - The postcode itself (with `query=`) or by, - A geolocation (`lat=` and `lon=`). ## Query with Postcode Submit a postcode query and receive a complete list of postcode matches and all associated postcode data. This is triggered when `query=` is supplied. This is essentially a postcode search which prefix matches and returns postcodes in sorted order (case insensitive). This method is space sensitive, i.e. it detects for spaces between outward and inward parts of the postcode (some examples detailed in this [issue](https://github.com/ideal-postcodes/postcodes.io/issues/44)). The result set can either be empty or populated with up to 100 postcode entities. Either way it will always return a 200 response code. ## Query with Geolocation Returns nearest postcodes for a given longitude and latitude. This is triggered when `lat=` and `lon=` are supplied.
querystringlimitintegerlongitudenumberlatitudenumberradiusintegerwidesearchbooleanfilterstring
bulk_postcode_lookup
Bulk Postcode Lookup Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data. Be sure to submit JSON requests setting `Content-Type` to `application/json`. Accepts up to 100 postcodes. ### Post Data This method requires a JSON object containing an array of postcodes to be posted, e.g. ```json { "postcodes": ["PR3 0SG", "M45 6GN", "EX16 5BL"] } ``` ## Bulk Reverse Geocoding Bulk translates geolocations into Postcodes. Accepts up to 100 geolocations.
No arguments.
nearest_postcode
Find the Nearest Postcodes Returns a list of postcodes geographically nearest to the specified postcode, ordered by proximity (closest first).
postcode(required) string
random_postcode
Get a Random Postcode Returns a randomly selected postcode along with comprehensive geographic, administrative, and statistical data associated with that postcode.
outcodestring
lookup_terminated_postcode
Lookup Terminated Postcodes Lookup a terminated postcode. If the terminated postcode exists, this API returns the year and month of termination plus its last known WGS84 coordinates. Channel Islands and Isle of Man postcodes do not carry coordinates — `longitude` and `latitude` will be `null` for those. Returns `404` if the postcode does not exist in our database of terminated postcodes or is not valid. Source: ONS Postcode Directory (ONSPD). Live and terminated postcodes share the same underlying table; a postcode is terminated when `date_of_termination` is set.
postcode(required) string
get_scottish_postcode
Lookup Scottish Postcode Lookup a Scottish postcode. Returns Scottish Postcode Directory (SPD) data associated with the postcode. The response covers the full SPD field set: council area, electoral ward, Scottish and UK parliamentary geographies, health board, integration authority, data zone, intermediate zone, output area, locality, settlement, civil parish, island, national park, travel-to-work area, ITL/LAU, urban-rural classification, SIMD rank, ROA, census counts, and the corresponding GSS / official codes under the `codes` object. Top-level fields hold the latest (canonical) value for each datapoint. Year-suffixed fields surface prior versions where the SPD publishes them. Returns `404` if the postcode does not exist in SPD or is not valid. For postcodes not in SPD but present in ONSPD (i.e. non-Scottish postcodes), a `404` is returned with the error message "Postcode exists in ONSPD but not in SPD." Source: Scottish Postcode Directory (National Records of Scotland).
postcode(required) string
find_outcode
Find an Outward Code Returns aggregated information for postcodes grouped by their shared outward code. The outward code is the first half of any postcode (3-4 characters and followed by a space). E.g. `SW1A` is the outward code for `SW1A 1AA`.
outcode(required) string
place_query
Find a Place Submit a place query and receive a complete list of places matches and associated data.
No arguments.
find_place
Find a Place by ID Submit a place query and receive a complete list of place matches and associated data. This API uses the Ordnance Survey Open Names Dataset. Places are not available for Northern Ireland.
code(required) string
random_place
Retrieve a Random Place Returns a randomly selected place from the database along with all its associated geographical and administrative data. Useful for testing or displaying sample location data.
No arguments.
B. docs2mcp direct
14 tools · ~2,241 tokens · 95.0% solved
lookup_postcode
Retrieve detailed information about a UK postcode. Returns 404 if the postcode is not found; a terminated postcode's 404 response includes a terminated property.
postcode(required) string
bulk_lookup_postcodes
Retrieve data for up to 100 postcodes in one request. Send a JSON body with a postcodes array and Content-Type application/json. Postcodes not found return a null result. Also: Find the nearest postcodes for up to 100 coordinate pairs in one request. Each geolocation object takes longitude and latitude, and may override limit, radius, widesearch and filter.
postcodeslist of stringsfilterstringgeolocationslistlimitintegerradiusintegerwidesearchboolean
query_postcodes
Search for postcodes matching a query string. Also: Find the nearest postcodes to a longitude and latitude pair. Each result includes a distance field in metres from the given coordinates.
qstringquerystringlimitintegerlonnumberlatnumberradiusintegerwidesearchboolean
get_nearest_postcodes
Find postcodes nearest to a given postcode, ordered by distance. Each result includes a distance field in metres. Returns 404 if the input postcode is not found.
postcode(required) stringlimitintegerradiusinteger
autocomplete_postcode
Return a list of postcodes matching a partial postcode.
postcode(required) stringlimitinteger
get_random_postcode
Returns a random postcode with all its available data. Optionally filter by outcode; an invalid outcode returns null.
outcodestring
lookup_outcode
Returns detailed information about a UK outward code. Matching is case-insensitive. Returns 404 if the outward code is not found.
outcode(required) string
reverse_geocode_outcodes
Returns the nearest outcodes to a longitude and latitude, ordered by proximity. Each result has the same shape as an outcode lookup.
lon(required) numberlat(required) numberlimitintegerradiusinteger
find_nearest_outcodes
Returns the outcodes nearest to the given outcode, ordered by proximity. Returns 404 if the input outcode is not found.
outcode(required) stringlimitintegerradiusinteger
lookup_place
Retrieves detailed information about a GB place by its OSGB code. Returns 404 if the place is not found.
code(required) string
query_places
Searches for places whose names match a query string. Full-text matches primary and secondary names case-insensitively, falling back to prefix matching when there is no full-text hit. Returns an empty array or up to 100 places.
q(required) stringquerystringlimitinteger
get_random_place
Returns a random place with all available data for that place.
No arguments.
lookup_terminated_postcode
Retrieves information about a UK postcode that is no longer in use. Matches inputs regardless of case or spacing, e.g. E1W 1UU or e1w1uu. Returns 404 if the terminated postcode is not found.
postcode(required) string
lookup_scottish_postcode
Returns the full Scottish Postcode Directory record for a Scottish postcode. Matches inputs regardless of case or spacing, e.g. AB10 1XG or ab101xg. Returns 404 if the postcode is not in the SPD, with a specific message if it exists in ONSPD only.
postcode(required) string
C. docs2mcp task-shaped
12 tools · ~2,159 tokens · 95.0% solved
postcode_lookup
Returns detailed information for one UK postcode. Case and spacing do not matter. A 404 for a postcode no longer in use includes a terminated property; use terminated_postcode_lookup for those. To look up several postcodes at once, use bulk_postcodes.
postcode(required) string
bulk_postcodes
Looks up up to 100 UK postcodes in one request, or finds the nearest postcodes for up to 100 longitude and latitude pairs in one request. Send postcodes for lookups or geolocations for nearest searches. Postcodes not found return a null result. Geolocation objects may override limit, radius, widesearch and filter.
postcodeslist of stringsgeolocationslistfilterstringlimitintegerradiusintegerwidesearchboolean
postcode_search
Searches UK postcodes in three ways: by text in q, by a longitude and latitude pair, or to find postcodes nearest to a given postcode. Pass postcode to get the nearest postcodes to it, ordered by distance. Nearest searches return a distance field in metres. Use postcode_lookup when the full postcode is known.
postcodestringqstringlonnumberlatnumberlimitintegerradiusintegerwidesearchboolean
postcode_autocomplete
Returns a list of UK postcodes matching a partial postcode. Use it when only part of a postcode is known; use postcode_lookup for a full postcode.
partial_postcode(required) stringlimitinteger
random_postcode
Returns a random UK postcode with all its available data. Pass outcode to restrict the result to one outward code; an invalid outcode returns null.
outcodestring
terminated_postcode_lookup
Returns information about a UK postcode that is no longer in use. Case and spacing do not matter. Returns 404 if the terminated postcode is not found.
postcode(required) string
scottish_postcode_lookup
Returns the full Scottish Postcode Directory record for a Scottish postcode. Case and spacing do not matter. A 404 with a specific message means the postcode exists in ONSPD only and not in the SPD.
postcode(required) string
outcode_lookup
Returns detailed information for one UK outward code. Matching is case-insensitive; returns 404 if the outward code is not found. To find outward codes near a point or another outward code, use nearest_outcodes.
outcode(required) string
nearest_outcodes
Finds UK outward codes nearest to an outward code or to a longitude and latitude pair, ordered by proximity. Pass lon and lat for a coordinate search, or outcode to search from an outward code (404 if it is not found). Coordinate search results have the same shape as outcode_lookup results.
outcodestringlonnumberlatnumberlimitintegerradiusinteger
place_lookup
Returns detailed information for one GB place by its OSGB code. Returns 404 if the place is not found. To find places by name, use place_search.
code(required) string
place_search
Searches GB places by name. Matches primary and secondary names case-insensitively, falling back to prefix matching when there is no full-text hit. Returns an empty array or up to 100 places.
q(required) stringlimitinteger
random_place
Returns a random GB place with all available data for that place. Takes no arguments.
No arguments.
D. FastMCP from OpenAPI
11 tools · ~2,033 tokens · 80.0% solved
LookupPostcode
### Postcode Data Lookup a UK postcode against the ONS Postcode Directory (ONSPD). The response is a fully resolved record — every administrative, electoral, statistical and health geography that ONSPD ships for the postcode is returned at the top level by its human-readable name, with the equivalent GSS / official codes mirrored under the `codes` object. The same shape is returned by `/postcodes` (bulk + search) and the reverse-geocoding endpoints. `/outcodes` returns a separate, aggregated [Outcode](#tag/Outward-Codes) shape — one row per outward code, with admin / parish / constituency arrays summarising the postcodes inside. Returns `404` if the postcode does not exist or is not valid.
postcode(required) any
Postcode_Lookup
Query for a postcode either by: - The postcode itself (with `query=`) or by, - A geolocation (`lat=` and `lon=`). ## Query with Postcode Submit a postcode query and receive a complete list of postcode matches and all associated postcode data. This is triggered when `query=` is supplied. This is essentially a postcode search which prefix matches and returns postcodes in sorted order (case insensitive). This method is space sensitive, i.e. it detects for spaces between outward and inward parts of the postcode (some examples detailed in this [issue](https://github.com/ideal-postcodes/postcodes.io/issues/44)). The result set can either be empty or populated with up to 100 postcode entities. Either way it will always return a 200 response code. ## Query with Geolocation Returns nearest postcodes for a given longitude and latitude. This is triggered when `lat=` and `lon=` are supplied.
queryanylimitanylongitudenumberlatitudenumberradiusintegerwidesearchbooleanfilterstring
Bulk_Postcode_Lookup
Accepts a JSON object containing an array of postcodes. Returns a list of matching postcodes and respective available data. Be sure to submit JSON requests setting `Content-Type` to `application/json`. Accepts up to 100 postcodes. ### Post Data This method requires a JSON object containing an array of postcodes to be posted, e.g. ```json { "postcodes": ["PR3 0SG", "M45 6GN", "EX16 5BL"] } ``` ## Bulk Reverse Geocoding Bulk translates geolocations into Postcodes. Accepts up to 100 geolocations.
No arguments.
Nearest_Postcode
Returns a list of postcodes geographically nearest to the specified postcode, ordered by proximity (closest first).
postcode(required) any
randomPostcode
Returns a randomly selected postcode along with comprehensive geographic, administrative, and statistical data associated with that postcode.
outcodestring
LookupTerminatedPostcode
Lookup a terminated postcode. If the terminated postcode exists, this API returns the year and month of termination plus its last known WGS84 coordinates. Channel Islands and Isle of Man postcodes do not carry coordinates — `longitude` and `latitude` will be `null` for those. Returns `404` if the postcode does not exist in our database of terminated postcodes or is not valid. Source: ONS Postcode Directory (ONSPD). Live and terminated postcodes share the same underlying table; a postcode is terminated when `date_of_termination` is set.
postcode(required) string
getScottishPostcode
Lookup a Scottish postcode. Returns Scottish Postcode Directory (SPD) data associated with the postcode. The response covers the full SPD field set: council area, electoral ward, Scottish and UK parliamentary geographies, health board, integration authority, data zone, intermediate zone, output area, locality, settlement, civil parish, island, national park, travel-to-work area, ITL/LAU, urban-rural classification, SIMD rank, ROA, census counts, and the corresponding GSS / official codes under the `codes` object. Top-level fields hold the latest (canonical) value for each datapoint. Year-suffixed fields surface prior versions where the SPD publishes them. Returns `404` if the postcode does not exist in SPD or is not valid. For postcodes not in SPD but present in ONSPD (i.e. non-Scottish postcodes), a `404` is returned with the error message "Postcode exists in ONSPD but not in SPD." Source: Scottish Postcode Directory (National Records of Scotland).
postcode(required) string
FindOutcode
Returns aggregated information for postcodes grouped by their shared outward code. The outward code is the first half of any postcode (3-4 characters and followed by a space). E.g. `SW1A` is the outward code for `SW1A 1AA`.
outcode(required) string
Place_Query
Submit a place query and receive a complete list of places matches and associated data.
No arguments.
FindPlace
Submit a place query and receive a complete list of place matches and associated data. This API uses the Ordnance Survey Open Names Dataset. Places are not available for Northern Ireland.
code(required) string
randomPlace
Returns a randomly selected place from the database along with all its associated geographical and administrative data. Useful for testing or displaying sample location data.
No arguments.