Developer Tools

Felt MCP

Create, style, query and share Felt maps, layers, annotations and print pages through Felt's hosted MCP server.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Browse data source tables

    List tables and saved queries inside a connected database. Returns table names and descriptions — but not column schemas.

  • Browse felt library

    List Felt's curated public datasets to add to maps. Categories include boundaries, demographics, and infrastructure. Distinct from the workspace library (reusable layers authored in the user's workspace). Returns each layer's layer_id, layer_group_id, name, description, category, region, keywords, geometry type, and whether it's queryable.

  • Browse felt server

    Show the contents of a Felt Server — a named, foldered library of reusable layers in this workspace. Returns layers and layer groups (groups of related layers that share metadata), nested under their containing folders.

  • Export map image

    Export the map as a PNG, JPG, PDF or SVG image file. Use it when the user wants a picture of the map for a slide, document, report or message. Give them the returned `download_url` exactly as written and say that it expires, unless your instructions say the conversation already shows the export. This renders one map view with an automatically placed legend. A map can also have print pages designed in Felt's print editor, which `export_print_page` renders as designed. Don't use this to share the map — share its URL instead. Don't use it to see the map yourself; you cannot view the image it produces.

  • Export print page

    Print a page that someone designed on this map in Felt's print editor. A page is a fixed composition, usually in physical units (Letter, A4, or a custom size in inches or mm, at 150–600 dpi) and sometimes in pixels, arranged by hand by its author. It can hold several maps, each with its own view and visible layers, plus locator maps, legends, text such as titles and notes, and images such as logos. The output (format, size, resolution and every item) is exactly what the author designed: this tool takes no settings and reproduces the page; change the page itself with `update_print_page` and `upsert_print_items`. `list_print_pages` shows what a map has, and `create_print_page` makes one. To print several pages as one multi-page PDF, pass their ids in `page_ids`, in the order they should appear, or `all_pages: true` for every page in the editor's order. Each page keeps its own size and resolution, and the file is a PDF whatever format the pages are set to; a single id in `page_ids` still makes a one-page PDF, while `page_id` prints that page in its own format. Pass only one of `page_id`, `page_ids` and `all_pages`. Only PDF holds several pages: when the user asks for several pages as PNG, JPG or SVG, say so and ask whether they want one PDF or a file per page, without changing the pages' formats first. A multi-page export allows about 10 seconds a page, up to 10 minutes; if it times out, print fewer pages at a time. Give the user the returned `download_url` exactly as written and say that it expires, unless your instructions say the conversation already shows the export.

  • Get credit usage

    Get how many Felt AI credits the workspace has used of its monthly allowance. Only Felt tools that run a model of Felt's spend these credits; your own model's usage isn't metered by Felt, so this doesn't report what the current conversation cost.

  • Get geocoding guidance

    Load the rules for turning addresses, place names, or administrative codes into locations, before locating anything. Two paths exist and the size of the request decides which one, so load this before you pick — the wrong path wastes the turn and can produce misplaced points. Also load it before composing a spreadsheet of addresses for upload: column naming and value shape decide whether Felt geocodes the file at all.

  • Get layer group properties

    Get a layer group's name, caption, legend settings, and its layers. Only works on real layer groups, not on standalone layers.

  • Get layer properties

    Get a layer's properties including its name, caption, geometry type, and current FSL style. Use this to retrieve a layer's current style before modifying it.

  • Get map properties

    Get a map's saved properties: title, description, basemap, `initial_view` (the view every visitor lands on), `constraints` (the limits on where anyone can pan or zoom) and `print_pages` (the pages designed on it in Felt's print editor).

  • Get map sharing

    Read who can access this map: link access, workspace access, the project it lives in, invited people, and whether viewers can duplicate it. A map inside a project gets its workspace access from the project; project sharing is changed in the project's own settings, not by these tools.

  • Get print item guidance

    Load every field a print page item takes (a map's view and layers, a legend's target, text and its type, images, sections, borders) and how to compose a page. Call it before adding or editing items with `create_print_page` or `upsert_print_items`.

  • Get print page

    Get a print page and the items on it: each item's id, type, frame (in the page's units, from its top-left corner), stacking order and settings, plus `warnings` about likely layout problems. Use it before editing a page with `upsert_print_items`.

  • Get project

    Get details about a project, including the maps it contains.

  • Get raster histogram

    Get the distribution of a raster layer's pixel values, per band: a histogram of `{min, max, count}` buckets plus, for integer-valued rasters, `categories` (`{value, count}` per distinct value, most common first — capped at 50, with `categories_total` and `categories_truncated` set when there were more) and the `majority` value. Scope it to a bounding box, polygon, or line, and/or to pixels matching a value condition. Use it to describe the shape of the data (skew, modes, gaps, outliers), to compare land-cover class mix between areas, or to pick sensible class breaks before styling. When the area is a real one — a county, a watershed, a parcel, "inside X" — scope with `boundary_feature`, a SQL query over a vector layer that returns the boundary's geometry (one feature, or several combined with `ST_Union_Agg`), rather than a bounding box; fall back to `bbox` only when no boundary layer exists. Reading the result: - `histogram` buckets are equal-width between the scope's min and max unless you pass `bin_edges`; bucket `count`s are pixel counts, so multiply by `area_m2 / count` for area per bucket. - Rasters with a short `categories` list are classed data (land cover, flood zones…) — report the class counts rather than the histogram, and look up what the codes mean in the layer's legend or description. A truncated list on an integer raster means continuous data stored as integers; use the histogram.

  • Get raster stats

    Summarize the pixel values of a raster layer: count, sum, average, min, max, median, standard deviation, and optional percentiles, per band. Scope the summary to a bounding box, a polygon, or a line, and/or to pixels matching a value condition. Use it to answer questions like "what's the elevation range inside this parcel", "how much area is above 2,000 m", "what's the average slope along this route", or simply to learn a raster's bands and value ranges. When the question names a real area — a parcel, a county, a watershed, a district, "inside X" — don't settle for a bounding box: look for a vector layer that carries that boundary, among the map's layers or in the Felt library, and scope with `boundary_feature`: a SQL query over that layer that returns the boundary's geometry — one feature by predicate, or several combined with `ST_Union_Agg`. Fall back to `bbox` only when no boundary layer exists. This is also the tool for "where" questions — "where is the elevation above 2,000 m", "where does this land-cover class occur", "which part of the map is steepest": express the condition as a `value_filter` and answer from the `bbox` clusters in the result rather than only quoting counts. Name the areas, and show them on the map: draw each box as an upsert_annotations `Rectangle` — a `bbox` of `[west, south, east, north]` becomes corners `[[south, west], [north, east]]` (the coordinate order flips) — labelled with what it holds (e.g. its `area_m2` as km²), then frame the boxes on the map. Present them as roughly where the condition holds: each is the rectangular envelope of a cluster of matching pixels, not an exact outline. A box with west > east crosses the antimeridian — split it into two rectangles at ±180 before drawing. To find hotspots — "where are the highest values", "the hottest / densest / most intense areas" — the condition is relative, so derive the threshold from the data: first query with `percentiles: [95]`, then re-query with the returned value as the filter (`value_filter: ["band:N", "ge", <p95>]`) and the `bbox` clusters of that second call are the hotspots. If they come back as one big box or most of the raster, raise the rank (99); if almost nothing comes back, lower it (90). Handle "cold spots" the same way from the other end (`percentiles: [5]`, `"le"`). Reading the result: - `count` is the number of pixels selected (after the scope and the value filter), `area_m2` their ground area in square metres (÷ 1,000,000 for km²). To express a filtered area as a share of a zone, run the same scope without the filter and divide. - `bbox` is a list of `{"bbox": [west, south, east, north], "area_m2": ...}` entries covering the selected pixels (WGS84) — one entry per cluster, so scattered matches come back as several boxes rather than one that spans the gaps, each with the ground area of its own matching pixels (`area_m2` is omitted for line scopes). With a value filter this is where the matching pixels are: use it to tell the user where each area lies and how large it is, or to centre the map on one. Absent when nothing was selected. - Line scopes report `sample_count` and `sample_spacing_m` instead of `count`/`area_m2`, and have no `sum`. - Values come back in the raster's native units (metres, degrees, class codes, DN…); check the band name and the layer's description for what they mean.

  • Get sql editing guidance

    Load the rules for writing a query that edits features, before writing one. These are what the result set means once it drives writes, and an edit query written without them will be rejected. Load the dialect guidance too — you need both.

  • Get sql guidance

    Load SQL dialect reference and syntax rules before writing queries — quoting, types, dates and schema discovery, plus, for Felt layers, the spatial functions, including buffers and travel-time areas. Pass the layer_ids you intend to query, or the data_source_id. The correct dialect is resolved automatically.

  • Get tabular data from data source

    Execute a read-only SQL query against a connected data source and return tabular results. Use fully schema-qualified table names. The query must be a SELECT statement. Results are returned to the user as rows and columns — this does not render anything on the map. Before calling this, you MUST confirm the exact column names and types of every table you plan to query, and review the SQL dialect guidance for the data source. Don't guess columns or discover them with preview SELECTs.

  • Get tabular data from felt layers

    Execute a read-only SQL query against Felt layer data and return tabular results. Results are returned to the user as rows and columns — this does not render anything on the map. Before calling this, you MUST call `inspect_layer` for each layer you plan to query — that tool returns the fully-qualified table name and column schema. Query each column by the `display_name` it reports, double-quoted; a column's `storage_name` resolves nothing here. Also call `get_sql_guidance` first if you haven't yet — Felt layers have specific spatial functions and syntax quirks you need to know to write correct queries. If you need feature IDs, explicitly opt-in via the hidden "felt:feature" column. `SELECT *` is not enough.

Page 1 / 2Next