{"ok":true,"site":{"host":"webmcp-tools.owid.pages.dev","url":"https://webmcp-tools.owid.pages.dev/grapher/life-expectancy","type":"live","desc":"An interactive visualization from Our World in Data.","tools":[{"name":"find_chart","kind":"answer","impl":"imperative","description":"Search Our World in Data's charts and return candidates as paths. Pass the countries or regions the user asked about so charts that lack them are flagged. Many OWID topics have several charts whose titles differ in ways that matter, and many are different views of the same page — so pass the whole `chart:` path back to open_chart rather than reconstructing a URL. Present the options to the user if more than one fits.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Topic to search for, e.g. 'infant mortality' or 'CO2 emissions per capita'"},"entities":{"type":"array","items":{"type":"string"},"description":"Optional countries/regions the user cares about, e.g. ['Czechia', 'Slovakia']"}},"required":["query"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy","/how-much-subsidies-fossil-fuels","/regimes-of-the-world-data","/democracy","/beef-production-in-brazil-has-been-the-largest-driver-of-global-deforestation-in-recent-decades","/sdgs/responsible-consumption-production"]},{"name":"open_chart","kind":"act","impl":"imperative","description":"Open an Our World in Data chart, optionally pre-configured with specific countries, a time range and a tab. Pass the `chart:` path from find_chart verbatim — it carries the parameters that pick which view of a multi-dimensional chart to show. This navigates the page; once it loads, the chart's own tools become available.","inputSchema":{"type":"object","properties":{"chart":{"type":"string","description":"The `chart:` path from find_chart, e.g. '/grapher/electricity-mix?metric=share_of_generation&source=solar'. A bare slug like 'infant-mortality' also works for simple charts."},"entities":{"type":"array","items":{"type":"string"},"description":"Countries/regions to show, using exact OWID names"},"startYear":{"type":"number"},"endYear":{"type":"number"},"tab":{"type":"string","enum":["line","map","table","discrete-bar","slope"],"description":"Which view to open on. Use 'line' when the user asks for a line chart or a trend over time — charts with a map default to showing the map."}},"required":["chart"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy","/how-much-subsidies-fossil-fuels","/regimes-of-the-world-data","/democracy","/beef-production-in-brazil-has-been-the-largest-driver-of-global-deforestation-in-recent-decades","/sdgs/responsible-consumption-production"]},{"name":"find_article","kind":"answer","impl":"imperative","description":"Search Our World in Data's articles and written research. Use this whenever the user asks what OWID has written about a topic, or for an article, explainer or piece of writing — chart search does not return prose, so answering from memory invents titles that do not exist. Returns real titles and paths; open one with open_article.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Topic to search for, e.g. 'solar energy' or 'battery costs'"}},"required":["query"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy","/how-much-subsidies-fossil-fuels","/regimes-of-the-world-data","/democracy","/beef-production-in-brazil-has-been-the-largest-driver-of-global-deforestation-in-recent-decades","/sdgs/responsible-consumption-production"]},{"name":"open_article","kind":"act","impl":"imperative","description":"Open an Our World in Data article. Use an `article:` path from find_article. This navigates the page; call read_page afterwards to read it.","inputSchema":{"type":"object","properties":{"article":{"type":"string","description":"The `article:` path from find_article, e.g. '/battery-price-decline'"}},"required":["article"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy","/how-much-subsidies-fossil-fuels","/regimes-of-the-world-data","/democracy","/beef-production-in-brazil-has-been-the-largest-driver-of-global-deforestation-in-recent-decades","/sdgs/responsible-consumption-production"]},{"name":"read_page","kind":"answer","impl":"imperative","description":"Read the text of the Our World in Data page currently open — the article body, including its footnotes and references. ALWAYS call this before answering any question about what this page says, what a number on it is, or where a claim on it comes from. OWID articles are written and sourced by our researchers; the study or figure you recall may not be the one on the page.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy","/how-much-subsidies-fossil-fuels","/regimes-of-the-world-data","/democracy","/beef-production-in-brazil-has-been-the-largest-driver-of-global-deforestation-in-recent-decades","/sdgs/responsible-consumption-production"]},{"name":"open_search","kind":"act","impl":"imperative","description":"Open Our World in Data's search results page for a topic, so the user can browse everything we have on it. Use this only when the user wants to browse for themselves — if they asked a question, find_chart or find_article answers it without making them read a results page.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Search terms, e.g. 'population density'"},"resultType":{"type":"string","enum":["all","data","writing"],"description":"'data' for charts and indicators, 'writing' for articles, 'all' (default) for both"}},"required":["query"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy","/how-much-subsidies-fossil-fuels","/regimes-of-the-world-data","/democracy","/beef-production-in-brazil-has-been-the-largest-driver-of-global-deforestation-in-recent-decades","/sdgs/responsible-consumption-production"]},{"name":"get_chart_state","kind":"answer","impl":"imperative","description":"Read the current state of the chart on this page: its title, which entities (countries/regions) are selected, the time range shown, and which view is active. Call this before making a relative change such as adding an entity to the existing selection.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy"]},{"name":"list_chart_entities","kind":"answer","impl":"imperative","description":"List the countries and regions available on this chart. Use the optional query to filter, and always use the exact names returned here when selecting entities.","inputSchema":{"type":"object","properties":{"query":{"type":"string","description":"Case-insensitive substring filter, e.g. 'slov' or 'income'"}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy"]},{"name":"select_entities","kind":"act","impl":"imperative","description":"Set which countries or regions the chart shows, replacing the current selection. Use exact names from list_chart_entities. To add to what is already shown without removing anything, use add_entities instead.","inputSchema":{"type":"object","properties":{"entities":{"type":"array","items":{"type":"string"},"description":"Exact entity names, e.g. ['Czechia', 'Slovakia']"}},"required":["entities"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy"]},{"name":"add_entities","kind":"act","impl":"imperative","description":"Add countries or regions to the chart's current selection, keeping what is already shown. Use this for requests like 'also show Poland' or 'add the EU average'.","inputSchema":{"type":"object","properties":{"entities":{"type":"array","items":{"type":"string"},"description":"Exact entity names to add"}},"required":["entities"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy"]},{"name":"set_time_range","kind":"act","impl":"imperative","description":"Set the time range the chart displays, e.g. for 'since 1990' or 'between 2000 and 2020'. Omit either bound to leave it unchanged.","inputSchema":{"type":"object","properties":{"startYear":{"type":"number","description":"First year to show"},"endYear":{"type":"number","description":"Last year to show"}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy"]},{"name":"set_chart_view","kind":"act","impl":"imperative","description":"Switch which view of the data is shown — a line chart, the world map, the data table, or any other view this chart offers. Use this for 'show it as a line chart' or 'show me the map': many OWID charts open on the map, and switching view does NOT require navigating. Call get_chart_state to see which views are available.","inputSchema":{"type":"object","properties":{"view":{"type":"string","description":"One of the values listed in get_chart_state's 'Available views', or a plain name like 'line', 'line chart', 'map', 'table', 'slope' or 'bar'"}},"required":["view"]},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy"]},{"name":"get_chart_data","kind":"answer","impl":"imperative","description":"Read the actual data values behind the chart on this page, as CSV, for the entities and time range currently shown. ALWAYS call this before stating any number, trend, or comparison — do not answer from memory, because the figures you recall may not match this chart's source, units, or revision.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy"]},{"name":"get_chart_metadata","kind":"answer","impl":"imperative","description":"Read this chart's sources, units, and Our World in Data's own curated notes about how the data should and should not be interpreted. Call this before explaining what a chart means or why values differ between countries — these caveats are written by the researchers who assembled the data.","inputSchema":{"type":"object","properties":{}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy"]},{"name":"get_chart_image_url","kind":"answer","impl":"imperative","description":"Get a URL for a static PNG or SVG image of the chart as it is currently configured, for embedding in a reply or sharing. This returns a link only — it does NOT navigate the page. Never navigate the tab to an image: doing so unloads the chart and all of these tools stop working.","inputSchema":{"type":"object","properties":{"format":{"type":"string","enum":["png","svg"],"description":"Image format, defaults to png"}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy"]},{"name":"download_chart_data","kind":"act","impl":"imperative","description":"Give the user a download link for this chart's data as a CSV file, covering the entities and time range currently shown. Use when the user asks to download, export, or save the data.","inputSchema":{"type":"object","properties":{"scope":{"type":"string","enum":["shown","full"],"description":"'shown' (default) respects the current selection and time range; 'full' downloads every entity and year on the chart"}}},"hasHandler":true,"hasExecute":true,"__source":"spec","executable":true,"handlerField":"execute","page":"/grapher/life-expectancy","pages":["/grapher/life-expectancy"]}],"favicon":"/favicons/webmcp-tools.owid.pages.dev.ico","apiSurface":"spec","category":"Health & Education","toolCount":16}}