ShowMeOnMap
Ask in plain English, get a rendered, shareable map from live public data. 24 geospatial tools.
使うべきか
品質と安全性
ツール定義とプロトコルへの準拠に関する自動分析に基づいています。
コンテキストコスト
これは、サーバーのツールがモデルのコンテキストに読み込まれるたびに消費されるおおよそのトークン数です。数が多いほど、ほかのタスクに使える注意が減ります。
インストール
ワンクリックインストール
これを `claude_desktop_config.json` ファイルに追加してください:
{
"mcpServers": {
"maps": {
"command": "npx",
"args": [
"@showmeonmap/mcp"
]
}
}
}実行可能なパッケージ
0.3.1stdioリモートエンドポイント
https://showmeonmap.com/api/mcpstreamable-httpできること
ツール一覧
ツール(32)
🟢get_map_view(map_id, cursor, op_id, layer_ids)
Used by the ShowMeOnMap map card to load a map version. Not for the model.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$"
},
"cursor": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"op_id": {
"type": "string",
"minLength": 1
},
"layer_ids": {
"maxItems": 50,
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
}
},
"required": [
"map_id"
]
}🟢build_map(query, resume_token, rationale)
Make an interactive, data-driven map from a plain-language request, built from live public data with every value cited to its source. Covers natural hazards (earthquakes, wildfires, volcanoes, tropical storms, floods), weather and air quality, statistics by country, state or region (GDP, population, health, emissions — World Bank, Eurostat, US Census), infrastructure and transit (railways, power plants, transit lines, roads), parks and terrain, and points of interest from OpenStreetMap. The query carries the place, time window and any thresholds — "earthquakes above magnitude 5 near Japan this month", "GDP per capita across Europe" — and the server applies them itself. Returns a shareable link and a map_id for follow-ups (mutate_map, filter_layer, get_state); in clients that support MCP Apps the map also renders interactively in the conversation. Analysis maps (site selection, spatial analysis) can take one to three minutes: when the build outlasts one call it returns status "building" with a resume_token, and calling build_map again with the same query and that resume_token collects the map without spending credits. A request already written as OpenStreetMap tags, a bounding box, or "everything within N m of a coordinate" maps exactly through osm_features, which takes the tags and the area as given. The Op catalog and predicate grammar that downstream tools (mutate_map, filter_layer, etc.) accept are documented in the MCP resource showmeonmap://docs/workspace-ops-spec.
入力スキーマ
{
"type": "object",
"properties": {
"query": {
"type": "string",
"minLength": 1,
"description": "Natural language: \"coffee shops in Tokyo\", \"GDP by country\", \"volcanoes in Indonesia\", etc."
},
"resume_token": {
"description": "Only when a previous build_map returned status \"building\": its resume_token, to collect that map. Collecting spends no credits.",
"type": "string",
"pattern": "^[a-f0-9]{32}$"
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"query"
]
}🟢osm_features(layers, area, limit, rationale)
Map and list OpenStreetMap objects matching exact OSM tags inside an area — a bbox, a point and radius, or a named place. Use when you know the tags ("place=village|hamlet", "amenity=clinic", "railway=tram", "highway=*+name=Rue de Lyon") or need everything near a coordinate with distances; use build_map for natural-language questions and statistics. No model interpretation: tags and area are taken as given, every feature is an OSM object with all its tags. Each layer reports ok / empty (OSM has none matching here) / unavailable (no source answered — says nothing about whether any exist). Returns a shareable map plus a compact table per layer (name, osm id, distance_m for point searches, address, coordinates). Costs 1 credit; refunded when no layer has a feature.
入力スキーマ
{
"type": "object",
"properties": {
"layers": {
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "Legend title for this layer, e.g. \"Health facilities\""
},
"tags": {
"minItems": 1,
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"minLength": 3,
"maxLength": 200
},
"description": "OSM tags, any of which matches: \"amenity=clinic\", \"place=village|town\" (any of the values), \"healthcare=*\" (key present), \"railway=construction+construction=tram\" (+ = AND)"
}
},
"required": [
"title",
"tags"
]
},
"description": "1–5 layers, each drawn and listed separately"
},
"area": {
"type": "object",
"properties": {
"bbox": {
"description": "[west, south, east, north] in degrees",
"minItems": 4,
"maxItems": 4,
"type": "array",
"items": {
"type": "number"
}
},
"point": {
"type": "object",
"properties": {
"lat": {
"type": "number",
"minimum": -90,
"maximum": 90
},
"lon": {
"type": "number",
"minimum": -180,
"maximum": 180
}
},
"required": [
"lat",
"lon"
]
},
"radius_m": {
"description": "With point, or with place (a radius around that place): search radius in metres; results carry distance_m",
"type": "number",
"exclusiveMinimum": 0,
"maximum": 50000
},
"place": {
"description": "A named place whose extent is the area, e.g. \"Lahore, Pakistan\"",
"type": "string",
"minLength": 2,
"maxLength": 200
}
},
"description": "Exactly one of: bbox, point + radius_m, or place (its extent; add radius_m for a radius around it, e.g. an address). Areas up to ~300 km across."
},
"limit": {
"description": "Max features per layer (default 200)",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"layers",
"area"
]
}🟢analyze(map_id, plan, rationale)
One call for a question that combines datasets: "which Asian capitals had the most earthquakes within 300 km this month", "people within 30 km of each volcano in Indonesia", "how much of each African country is desert". Give a plan: acquire steps (ask = a dataset in plain words answered without a model; hazard = USGS / GVP / FIRMS / GDACS; osm = exact OSM tags in an area), then op steps (within, overlap, zonal, join, population, near, rank, filter) that name their inputs by step id. The code computes, no model: returns a shareable map, a table of the answer step (top rows), a ledger naming each number's source and op, and a grounded summary. A step that cannot run fails the whole plan with that step named and why (a source that did not answer is never reported as "none"). Costs 1 credit; refunded when it fails or the answer is empty. Use build_map for a single dataset.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"description": "Optional: run on this map — acquire {layer} reads its layers, and the result is added to it instead of a new map",
"type": "string",
"minLength": 1
},
"plan": {
"type": "object",
"properties": {
"steps": {
"minItems": 1,
"maxItems": 6,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 32,
"description": "Step id (letters, digits, _); later steps name their inputs by it"
},
"acquire": {
"description": "Load a dataset: exactly one of ask, hazard or osm",
"type": "object",
"properties": {
"ask": {
"description": "A dataset in the words a single map takes, answered without a model: \"capitals of Asia\", \"volcanoes in Indonesia\", \"hospitals in Lima\", \"highest mountains in Africa\"",
"type": "string",
"minLength": 3,
"maxLength": 300
},
"layer": {
"description": "With map_id: a layer already on that map, by the id get_state lists",
"type": "string",
"minLength": 1,
"maxLength": 200
},
"hazard": {
"description": "earthquakes = USGS (M4.5+, past 30 days unless min_magnitude / days); volcanoes = Smithsonian GVP; active_fires = NASA FIRMS (1–10 days); disasters = GDACS",
"type": "string",
"enum": [
"earthquakes",
"volcanoes",
"active_fires",
"disasters"
]
},
"place": {
"description": "hazard: country, region or continent; omit for the world",
"type": "string",
"minLength": 1,
"maxLength": 120
},
"min_magnitude": {
"type": "number",
"minimum": 0,
"maximum": 10
},
"days": {
"type": "integer",
"minimum": 1,
"maximum": 365
},
"osm": {
"type": "object",
"properties": {
"tags": {
"minItems": 1,
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"minLength": 3,
"maxLength": 200
},
"description": "As osm_features: \"amenity=hospital\", \"place=town|village\", \"healthcare=*\""
},
"bbox": {
"minItems": 4,
"maxItems": 4,
"type": "array",
"items": {
"type": "number"
}
},
"point": {
"description": "[lon, lat] with radius_m",
"minItems": 2,
"maxItems": 2,
"type": "array",
"items": {
"type": "number"
}
},
"radius_m": {
"type": "number",
"exclusiveMinimum": 0,
"maximum": 50000
},
"place": {
"type": "string",
"minLength": 2,
"maxLength": 200
}
},
"required": [
"tags"
]
}
}
},
"title": {
"description": "acquire: the layer title",
"type": "string",
"minLength": 1,
"maxLength": 80
},
"op": {
"description": "within: count (and sum/max of value_field) of source points within radius_km of each target · overlap: share of each target polygon covered by source polygons · zonal: each polygon of zones gains the count (and stats of value_field) of the points inside it · join: each point of target gains the attributes of the source polygon it falls in · population: WorldPop people in each polygon or within radius_km of each point (≤ 15 features — narrow first with filter or rank) · near: nearest source to each target · rank: sort a step by a field, top n (a later step can read the top n) · filter: keep the features of input matching where",
"type": "string",
"enum": [
"within",
"overlap",
"population",
"near",
"rank",
"filter",
"zonal",
"join"
]
},
"target": {
"description": "within / overlap / near: the step that gets the result",
"type": "string"
},
"source": {
"description": "within / overlap / near: the step counted or measured",
"type": "string"
},
"input": {
"description": "population / rank: the step read",
"type": "string"
},
"zones": {
"description": "zonal: the polygon step",
"type": "string"
},
"points": {
"description": "zonal: the point step",
"type": "string"
},
"stats": {
"description": "zonal: which statistics of value_field",
"type": "array",
"items": {
"type": "string",
"enum": [
"count",
"sum",
"mean",
"min",
"max"
]
}
},
"fields": {
"description": "join: which source fields to copy (default all)",
"type": "array",
"items": {
"type": "string"
}
},
"prefix": {
"description": "join: prefix for the copied fields",
"type": "string"
},
"radius_km": {
"type": "number"
},
"value_field": {
"type": "string"
},
"sum_fields": {
"type": "array",
"items": {
"type": "string"
}
},
"source_field": {
"type": "string"
},
"max_distance_m": {
"type": "number"
},
"by": {
"description": "rank: the field, e.g. \"within_count\", \"overlap_share\", \"population\"",
"type": "string"
},
"where": {
"description": "filter: a query_features predicate, e.g. {op:\"gte\",field:\"magnitude\",value:5}, {op:\"in\",field:\"country\",values:[\"Japan\",\"Chile\"]}, {op:\"and\",children:[…]}",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {}
},
"n": {
"type": "integer",
"minimum": 1,
"maximum": 100
},
"order": {
"type": "string",
"enum": [
"desc",
"asc"
]
}
},
"required": [
"id"
]
},
"description": "1–6 steps, at most 3 acquires, each op after the steps it reads"
},
"answer": {
"type": "string",
"description": "The step whose rows are the table (usually the last, e.g. a rank)"
}
},
"required": [
"steps",
"answer"
],
"description": "Acquire datasets, then compute over them. Example: [{id:\"capitals\",acquire:{ask:\"capitals of Asia\"}},{id:\"quakes\",acquire:{hazard:\"earthquakes\",place:\"Asia\",days:30}},{id:\"x\",op:\"within\",target:\"capitals\",source:\"quakes\",radius_km:300},{id:\"top\",op:\"rank\",input:\"x\",by:\"within_count\",n:10}], answer:\"top\""
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"plan"
]
}🔴mutate_map(map_id, instruction, rationale)
Apply a natural-language instruction to an existing workspace. Valid mutations: filter a layer, remove a layer, change camera, change basemap. For ambiguous instructions the tool emits a clarification field. For unrelated instructions it emits outOfScope — build a new map in that case. The full Op catalog and predicate grammar are documented in the MCP resource showmeonmap://docs/workspace-ops-spec.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1,
"description": "map_id from a prior build_map call"
},
"instruction": {
"type": "string",
"minLength": 1,
"description": "e.g., \"filter to where magnitude is greater than 5\", \"change basemap to dark\""
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"instruction"
]
}🟢get_state(map_id, rationale)
Return the current workspace, map plan, and active filters for a given map_id.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id"
]
}🟡add_layer(map_id, layerPlan, rationale, intent)
Append a fully-constructed LayerPlan to an existing workspace without going through NL. Pass the same shape the workspace pipeline emits — { id, title, source, viz, geometry, ... }. Takes a structured plan; natural-language edits go through mutate_map. The full LayerPlan and Op spec are documented in the MCP resource showmeonmap://docs/workspace-ops-spec.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1,
"description": "map_id from a prior build_map call"
},
"layerPlan": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Full LayerPlan object. Must include id, title, source, viz, geometry."
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"intent": {
"description": "Optional. Which mental model is this add_layer operating under? \"primary-data\" = the layer the user actually asked to see; \"context-overlay\" = supporting data layered on top of a primary; \"reference-boundary\" = admin/geo boundary used as a backdrop; \"annotation\" = caller-placed callout / pin layer; \"comparison\" = a layer added to compare against another; \"other\" = none of the above.",
"type": "string",
"enum": [
"primary-data",
"context-overlay",
"reference-boundary",
"annotation",
"comparison",
"other"
]
}
},
"required": [
"map_id",
"layerPlan"
]
}🟡add_fusion_layer(map_id, layer_a_id, layer_b_id, mode, value_field_a, ...)
Spatially join two existing layers and add a new layer that encodes both values per region as a 3x3 bivariate choropleth. Both layers must already exist in the workspace. Auto-detects the numeric value field from each layer's viz config; pass value_field_a / value_field_b to override. Returns the new layer_id, correlation r, and matched-feature count. Required: map_id, layer_a_id, layer_b_id.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"layer_a_id": {
"type": "string",
"minLength": 1
},
"layer_b_id": {
"type": "string",
"minLength": 1
},
"mode": {
"default": "bivariate",
"type": "string",
"const": "bivariate"
},
"value_field_a": {
"type": "string"
},
"value_field_b": {
"type": "string"
},
"new_layer_id": {
"type": "string"
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"layer_a_id",
"layer_b_id"
]
}🟢correlate_layers(map_id, layer_a_id, layer_b_id, value_field_a, value_field_b, ...)
Spatially join two existing workspace layers and return the Pearson correlation coefficient r, sample size n, two-sided p-value approximation, plus human-readable strength and direction labels. Pure read — no layer is added, no op is committed, no credit charge. Returns numbers only; add_fusion_layer renders the same join as a map layer. Required: map_id, layer_a_id, layer_b_id.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"layer_a_id": {
"type": "string",
"minLength": 1
},
"layer_b_id": {
"type": "string",
"minLength": 1
},
"value_field_a": {
"type": "string"
},
"value_field_b": {
"type": "string"
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"layer_a_id",
"layer_b_id"
]
}⚪filter_layer(map_id, layerId, predicate, append, rationale, ...)
Narrow a layer to features matching a structured predicate. `append:true` (default) conjoins with any existing filter; `append:false` replaces the chain.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"layerId": {
"type": "string",
"minLength": 1,
"description": "id of the layer to filter"
},
"predicate": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Predicate in the Mongo-shape grammar. Examples: {op:\"eq\",field:\"category\",value:\"cafe\"}, {op:\"gt\",field:\"magnitude\",value:5}, {op:\"within\",geometry:{type:\"Polygon\",coordinates:[...]}}, {op:\"and\",children:[...]}. See docs/superpowers/specs/2026-04-17-workspace-ops-log-design.md §6."
},
"append": {
"description": "Default true. false replaces the layer's existing filter chain.",
"type": "boolean"
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"intent": {
"description": "Optional. Which mental model is this filter operating under? \"narrow\" = generic shrink-the-set; \"isolate-outliers\" = pull out anomalies for inspection; \"compare-subset\" = pre-step before a side-by-side compare; \"preview-data\" = exploratory peek; \"other\" = none of the above.",
"type": "string",
"enum": [
"narrow",
"isolate-outliers",
"compare-subset",
"preview-data",
"other"
]
}
},
"required": [
"map_id",
"layerId",
"predicate"
]
}🟢select_within(map_id, sourceLayerId, newLayerId, selection, inheritStyle, ...)
Create a new layer containing the source layer's features that lie within the supplied polygon. The source layer is untouched. Useful for "show me only the X inside this country/bbox/hand-drawn shape."
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"sourceLayerId": {
"type": "string",
"minLength": 1
},
"newLayerId": {
"type": "string",
"minLength": 1,
"description": "Id for the new layer. Must not already be in use in this workspace."
},
"selection": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"Polygon",
"MultiPolygon"
]
},
"coordinates": {
"type": "array",
"items": {}
}
},
"required": [
"type",
"coordinates"
],
"description": "GeoJSON Polygon or MultiPolygon in [lng,lat] coordinate order."
},
"inheritStyle": {
"description": "Default true. false emits a new layer with minimal default styling.",
"type": "boolean"
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"sourceLayerId",
"newLayerId",
"selection"
]
}⚪focus_area(map_id, layerId, areaRef, mode, rationale)
Refine an existing layer to a NAMED area the server resolves from OpenStreetMap — a street corridor ("Broadway from Arbutus Street to Main Street"), a place ("Mount Pleasant"), or an intersection surroundings. Pass names only, never coordinates; unresolvable names return a clarification with real nearby candidates instead of guessed geometry. Emits ordinary undoable ops (filter / new layer + camera) and a grounded summary like "kept 37 of 150 features". Costs 1 credit when a mutation lands; clarifications are refunded.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"layerId": {
"type": "string",
"minLength": 1
},
"areaRef": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "place"
},
"name": {
"type": "string",
"minLength": 1
}
},
"required": [
"kind",
"name"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "corridor"
},
"street": {
"type": "string",
"minLength": 1
},
"from": {
"type": "string",
"minLength": 1
},
"to": {
"type": "string",
"minLength": 1
},
"bufferMeters": {
"type": "number",
"minimum": 30,
"maximum": 1000
}
},
"required": [
"kind",
"street"
]
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "aroundIntersection"
},
"street": {
"type": "string",
"minLength": 1
},
"cross": {
"type": "string",
"minLength": 1
},
"radiusMeters": {
"type": "number",
"minimum": 50,
"maximum": 5000
}
},
"required": [
"kind",
"street",
"cross"
]
}
]
},
"mode": {
"description": "filter (default): hide features outside, reversible. select: copy matches into a new layer. clip: new layer with geometry trimmed at the boundary.",
"type": "string",
"enum": [
"filter",
"select",
"clip"
]
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"layerId",
"areaRef"
]
}🟢run_analysis(map_id, analysis, layerId, valueField, k, ...)
Compute a spatial analysis server-side and append the finished, honestly-legended result as a new layer + camera; the result REPLACES its input layer(s) (undoable). hotspot = Getis-Ord Gi*: hot/cold significance classes (99/95/90%, Benjamini-Hochberg FDR-corrected) on a numeric field, or on hex-binned point density when valueField is omitted. zonal = aggregate points into polygon zones (an existing zone layer OR a generated h3 fishnet): count/sum/mean/min/max per zone as a quantile choropleth where zero and no-data are distinct classes. enrich = join a US Census ACS indicator (median income, home value, rent, …) onto each feature by tract/county/state containment — unmatched features stay null, never zero-filled. join = spatial join (attribute transfer): each point in layerId takes properties from the joinLayerId polygon containing it (collisions prefixed, unmatched points carry NO joined fields, zero overlap is a typed rejection). merge = append two same-geometry-class layers into one dataset with a per-row source column (schemas never null-filled; class mismatch is a typed failure). near = nearest-neighbor distance columns (great-circle meters, stated — never presented as road distance). dissolve = true polygon union per attribute group (missing values form their own group; partial sums reported). Returns a grounded memo + stats payload — every number is computed, never generated; findings keep the map. Costs 1 credit when the result lands; typed failures (unknown layer, too few features, >10,000-feature cap) are refunded.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"analysis": {
"type": "string",
"enum": [
"hotspot",
"zonal",
"enrich",
"join",
"merge",
"near",
"within",
"overlap",
"population",
"dissolve"
],
"description": "Which analysis to run. 'hotspot' = Getis-Ord Gi* with FDR-corrected significance classes. 'zonal' = aggregate a point layer into polygon zones (count/sum/mean/min/max choropleth). 'enrich' = join a US Census indicator onto each feature by containment (tract/county/state). 'join' = spatial join (attribute transfer): each POINT in layerId takes the listed properties from the polygon in joinLayerId that contains it — the aggregate direction (points INTO polygons) is 'zonal'. 'merge' = append layerId + mergeLayerId (same geometry class) into ONE dataset, each row stamped with its source layer. 'near' = each POINT in layerId gains the great-circle distance to (and identity of) its nearest feature in nearLayerId. 'within' = each POINT or POLYGON in layerId gains how many POINTS of withinLayerId lie within radiusKm (great-circle; for a polygon, inside it or within radiusKm of its edge), and with valueField their sum and maximum — e.g. earthquakes within 100 km of each capital; the result is sized by that count. 'overlap' = each POLYGON in layerId gains the area and share of overlapLayerId's POLYGONS inside it, and with sumFields their values apportioned by area (estimates: census tract population inside a fire perimeter). 'population' = each POLYGON in layerId gains the people living inside it, or each POINT the people within radiusKm (WorldPop 2020 100 m estimates; at most 15 features, 7–13 s each) — e.g. people within 30 km of each volcano. 'dissolve' = union POLYGONS sharing a dissolveField value into single features (omit the field to dissolve all into one)."
},
"layerId": {
"type": "string",
"minLength": 1,
"description": "The workspace layer to analyze (geojson-backed; the point source for zonal; the point TARGET for join; the styling donor for merge)."
},
"valueField": {
"description": "Numeric property to analyze. hotspot: omit on point layers for incident-DENSITY mode (hex-binned counts). zonal: omit for count-only aggregation. within: a property of the withinLayerId points to sum and take the maximum of (e.g. mag).",
"type": "string",
"minLength": 1
},
"k": {
"description": "hotspot only: nearest neighbors per feature (default 8).",
"type": "integer",
"minimum": 3,
"maximum": 24
},
"hexMeters": {
"description": "hotspot density mode only: hex cell spacing in meters (default auto from the data extent).",
"type": "number",
"minimum": 100,
"maximum": 50000
},
"zoneLayerId": {
"description": "zonal only: an existing polygon layer to aggregate into. Provide EXACTLY ONE of zoneLayerId or zones.",
"type": "string",
"minLength": 1
},
"zones": {
"description": "zonal only: generate an h3 hex fishnet over the source extent instead of using a zone layer (resolution 3-10, default auto). Provide EXACTLY ONE of zoneLayerId or zones.",
"type": "object",
"properties": {
"kind": {
"type": "string",
"const": "h3"
},
"resolution": {
"type": "integer",
"minimum": 3,
"maximum": 10
}
},
"required": [
"kind"
],
"additionalProperties": false
},
"stats": {
"description": "zonal only: which statistics to attach per zone (default: count, plus sum/mean/min/max when valueField is set).",
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"type": "string",
"enum": [
"count",
"sum",
"mean",
"min",
"max"
]
}
},
"indicator": {
"description": "enrich only (required there): a US Census ACS preset id (e.g. 'median_household_income', 'median_home_value', 'median_rent') or a raw ACS variable code (e.g. 'B19013_001E').",
"type": "string",
"minLength": 1,
"maxLength": 80
},
"geoLevel": {
"description": "enrich only: containment geography (default tract). Tract/county fetch only the states the data touches, capped at 3 — filter first or use state for wider layers.",
"type": "string",
"enum": [
"state",
"county",
"tract"
]
},
"joinLayerId": {
"description": "join only (required there): the POLYGON layer providing the attributes.",
"type": "string",
"minLength": 1
},
"fields": {
"description": "join only: which join-layer properties to transfer (default: auto-select up to 12 non-internal properties, overflow reported).",
"minItems": 1,
"maxItems": 12,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"prefix": {
"description": "join only: prefix for a joined field whose name collides with an existing target property (default \"join_\").",
"type": "string",
"minLength": 1,
"maxLength": 20
},
"mergeLayerId": {
"description": "merge only (required there): the second layer — same geometry class (point/line/polygon) as layerId.",
"type": "string",
"minLength": 1
},
"sourceField": {
"description": "merge only: name of the per-row provenance column naming each row's source layer (default \"merge_source\"; renamed on collision, reported).",
"type": "string",
"minLength": 1,
"maxLength": 40
},
"nearLayerId": {
"description": "near only (required there): the POINT layer to search for each target point's nearest neighbor.",
"type": "string",
"minLength": 1
},
"nearField": {
"description": "near only: property of the nearest feature to copy as its identity (default: first name-like property).",
"type": "string",
"minLength": 1,
"maxLength": 80
},
"maxDistanceM": {
"description": "near only: search radius in meters — a point whose nearest neighbor is farther carries NO near fields (reported).",
"type": "number",
"minimum": 1,
"maximum": 20000000
},
"withinLayerId": {
"description": "within only (required there): the POINT layer to count around each target point.",
"type": "string",
"minLength": 1
},
"radiusKm": {
"description": "within (required there): the radius in km (great-circle) to count within. population: the circle round each POINT (required for points).",
"type": "number",
"minimum": 0.01,
"maximum": 1000
},
"overlapLayerId": {
"description": "overlap only (required there): the POLYGON layer whose area inside each target is measured.",
"type": "string",
"minLength": 1
},
"dissolveField": {
"description": "dissolve only: group-by property (omit = dissolve ALL into one footprint); missing values form their own \"(no value)\" group.",
"type": "string",
"minLength": 1,
"maxLength": 80
},
"sumFields": {
"description": "dissolve: numeric properties to SUM per group — skipped values reported, a group with none present carries NO sum. overlap: numeric properties of overlapLayerId to apportion by area into each target.",
"minItems": 1,
"maxItems": 5,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 80
}
},
"annotate": {
"description": "Opt-in: place ONE callout annotation at the headline feature (hottest cluster / top zone / highest value). Label text comes only from computed values.",
"type": "boolean"
},
"story": {
"description": "Opt-in: persist the shared map with a 2-step story rail (grounded overview + analysis memo isolating the result layer) — the /m/ link opens with it.",
"type": "boolean"
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"analysis",
"layerId"
]
}🟢query_features(map_id, layerId, predicate, limit, rationale)
Evaluate a predicate against a layer's inline features and return the matching subset. No Op is emitted and the workspace is not mutated. Handy for introspection ("how many X match Y?") before deciding whether to filter, subset, or build a new layer.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"layerId": {
"type": "string",
"minLength": 1
},
"predicate": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {},
"description": "Predicate in the Mongo-shape grammar. Examples: {op:\"eq\",field:\"category\",value:\"cafe\"}, {op:\"gt\",field:\"magnitude\",value:5}, {op:\"within\",geometry:{type:\"Polygon\",coordinates:[...]}}, {op:\"and\",children:[...]}. See docs/superpowers/specs/2026-04-17-workspace-ops-log-design.md §6."
},
"limit": {
"description": "Default 100, max 1000. Response sets `truncated:true` when clipped.",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 1000
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"layerId",
"predicate"
]
}🔴remove_layer(map_id, layerId, rationale, confirmed)
Drop a layer from the workspace by id. Strict: removing an already-removed or never-added layer fails. Layer ids do NOT recycle — a removed id cannot be re-added later in the same workspace. GATED: this tool is destructive. Pass confirmed:true to proceed; otherwise a needs_confirmation envelope is returned.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"layerId": {
"type": "string",
"minLength": 1
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"confirmed": {
"description": "Set to true to confirm this destructive action. If omitted or false, the call returns a needs_confirmation envelope. Layer ids are tombstoned — once removed, the same id cannot be re-added later in this workspace.",
"type": "boolean"
}
},
"required": [
"map_id",
"layerId"
]
}🔴clear_filters(map_id, layerId, rationale, confirmed)
Wipe every predicate currently applied to a layer's filter chain, making every source feature visible again. Inverse of filter_layer. No-op on layers that have no existing filter. GATED: pass confirmed:true to proceed; otherwise a needs_confirmation envelope is returned.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"layerId": {
"type": "string",
"minLength": 1
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"confirmed": {
"description": "Set to true to confirm this sensitive action. If omitted or false, the call returns a needs_confirmation envelope. A cleared filter chain can be restored with undo.",
"type": "boolean"
}
},
"required": [
"map_id",
"layerId"
]
}🟡rename_layer(map_id, oldLayerId, newLayerId, rationale)
Change a layer's id from oldLayerId to newLayerId. Re-keys any existing filter chain and preserves insertion order among sibling layers. Strict: newLayerId must not already be in use (current OR tombstoned) in this workspace. Subsequent ops must reference the layer by its new id.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"oldLayerId": {
"type": "string",
"minLength": 1
},
"newLayerId": {
"type": "string",
"minLength": 1,
"description": "New id. Must be unique within the workspace."
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"oldLayerId",
"newLayerId"
]
}⚪restyle_layer(map_id, layerId, color, opacity, rationale)
Adjust a layer's color and/or opacity. Within-palette changes only — the renderer silently ignores fields the current viz variant doesn't support. Pass at least one of color / opacity; passing neither is an accepted no-op.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"layerId": {
"type": "string",
"minLength": 1
},
"color": {
"description": "CSS color string: hex (#RRGGBB), rgb/rgba, or named color.",
"type": "string",
"minLength": 1
},
"opacity": {
"description": "0 (transparent) to 1 (opaque).",
"type": "number",
"minimum": 0,
"maximum": 1
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"layerId"
]
}🟡set_camera(map_id, camera, rationale)
Override the workspace camera. Latest set_camera op wins during replay. Two modes: `fitBounds` with a [w,s,e,n] bbox (plus optional padding/animateMs), or `flyTo` with [lng,lat] center + zoom (plus optional pitch/bearing/animateMs). Covers requests like "zoom to Japan", "center on Paris at z=10", or framing a filtered layer. Equivalent to the camera move mutate_map would emit, but skips the NL roundtrip.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"camera": {
"oneOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "fitBounds"
},
"bounds": {
"minItems": 4,
"maxItems": 4,
"type": "array",
"items": {
"type": "number"
},
"description": "[west, south, east, north] bbox in WGS84 degrees."
},
"padding": {
"description": "Pixel padding around the bbox. Default is the renderer default.",
"type": "number",
"minimum": 0
},
"animateMs": {
"description": "Animation duration in ms. 0 = instant jump.",
"type": "number",
"minimum": 0
}
},
"required": [
"mode",
"bounds"
]
},
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"const": "flyTo"
},
"center": {
"minItems": 2,
"maxItems": 2,
"type": "array",
"items": {
"type": "number"
},
"description": "[lng, lat] in WGS84."
},
"zoom": {
"type": "number"
},
"pitch": {
"description": "Tilt in degrees, 0-60.",
"type": "number"
},
"bearing": {
"description": "Rotation in degrees, 0-360.",
"type": "number"
},
"animateMs": {
"description": "Animation duration in ms. 0 = instant jump.",
"type": "number",
"minimum": 0
}
},
"required": [
"mode",
"center",
"zoom"
]
}
]
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"camera"
]
}🟡set_time(map_id, field, rangeStart, rangeEnd, format, ...)
Override the current time-range filter. Latest set_time op wins during replay. Covers requests like "filter to 2020-2024" or "show only the last 7 days". Not yet consumed by the renderer — the UI drives the slider directly — but the value is captured in the ops log and queryable via get_state.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"field": {
"type": "string",
"minLength": 1,
"description": "Feature property carrying the time value (e.g. \"date\", \"year\", \"timestamp\")."
},
"rangeStart": {
"type": "number",
"description": "Inclusive lower bound of the visible window."
},
"rangeEnd": {
"type": "number",
"description": "Inclusive upper bound of the visible window."
},
"format": {
"description": "How rangeStart/rangeEnd encode time. Default: unix_ms at render time.",
"type": "string",
"enum": [
"unix_ms",
"iso",
"integer"
]
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"field",
"rangeStart",
"rangeEnd"
]
}⚪tag(map_id, name, rationale)
Label the current workspace state with a user-supplied name. The label is mirrored into workspace.meta.tags so UIs can render a named-revision history. Tagging the same label twice is idempotent — no error, no duplicate entry.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"name": {
"type": "string",
"minLength": 1,
"description": "Checkpoint label, e.g. \"before EV layer added\" or \"v1.0\"."
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"name"
]
}🟡add_annotation(map_id, id, coords, label, color, ...)
Add a user-placed label at a specific coordinate. Annotations are independent of layers and live in their own id namespace. Strict: the id must not already be in use by another CURRENTLY-placed annotation (removed ids can be recycled).
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"id": {
"type": "string",
"minLength": 1,
"description": "Stable id for this annotation — caller-supplied."
},
"coords": {
"minItems": 2,
"maxItems": 2,
"type": "array",
"items": {
"type": "number"
},
"description": "[lng, lat] in WGS84."
},
"label": {
"description": "Optional text rendered at the point.",
"type": "string"
},
"color": {
"description": "Optional CSS color for the marker + label.",
"type": "string",
"minLength": 1
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"id",
"coords"
]
}🔴remove_annotation(map_id, annotationId, rationale)
Drop a previously-placed annotation by id. Strict: removing an already-removed or never-placed id fails. After removal, the id CAN be re-used by a later add_annotation (unlike layer ids, which are tombstoned for the session).
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"annotationId": {
"type": "string",
"minLength": 1
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"annotationId"
]
}🟢export_workspace(map_id, rationale)
Return the current workspace document (ops log + cursor + meta) plus the materialized mapPlan and layerFilters, in a shape suitable for save-to-file / share-by-URL / inspection. Pure read — no mutation, no credit charge. This is the full raw state for serialization; get_state returns a compact summary for display.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id"
]
}🟢export_layer_data(map_id, layer_id, format, rationale)
Export a single layer's features as a downloadable file. Returns a URL with Content-Disposition: attachment so the user's browser downloads it. CSV drops geometry beyond a (lng, lat) centroid — for full polygon/line geometry, use format: "geojson". The URL is an unguessable capability link that does NOT expire: anyone with the link can download the file. Required: map_id, layer_id, format.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"layer_id": {
"type": "string",
"minLength": 1
},
"format": {
"type": "string",
"enum": [
"csv",
"geojson"
]
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id",
"layer_id",
"format"
]
}🟢export_image(map_id, format, legend, rationale)
Returns a deep-link URL that opens the map in the user's browser and automatically triggers a PNG download. The user clicks the link, the browser renders the map at full resolution with the legend composited (if legend: true), and the file downloads. There is no server-side rendering; the user's browser is the renderer. Required: map_id. Optional: format (png default), legend (true default).
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"format": {
"default": "png",
"type": "string",
"enum": [
"png",
"jpeg",
"pdf"
]
},
"legend": {
"default": true,
"type": "boolean"
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id"
]
}🔴undo(map_id, rationale, confirmed)
Rewind the workspace cursor by one, re-materializing the state as it was before the last mutation. Does NOT delete any ops — redo will fast-forward. Calling undo at the workspace genesis (cursor === 0, only the CreateWorkspace op is in scope) is a no-op that surfaces an error rather than silently doing nothing. GATED: pass confirmed:true to proceed; otherwise a needs_confirmation envelope is returned.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"confirmed": {
"description": "Set to true to confirm this sensitive action. If omitted or false, the call returns a needs_confirmation envelope. Undo rewinds the most recent change; redo restores it.",
"type": "boolean"
}
},
"required": [
"map_id"
]
}🟡redo(map_id, rationale)
Advance the workspace cursor by one toward the tail of the ops log, replaying the next op that was previously undone. Calling redo when the cursor is already at the tail (no undone ops to fast-forward) fails rather than silently no-op. Note: any new op applied via apply-op / mutate-map after an undo truncates the redo tail (standard edit-stack semantics).
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"type": "string",
"minLength": 1
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"map_id"
]
}🟡report_blocker(map_id, what_i_was_trying, what_i_tried, where_i_got_stuck, suggested_capability, ...)
Send the ShowMeOnMap team a report about a request this server could not complete — an unsupported intent, a missing tool, an unclear schema, or an op that failed in a confusing way. Records the report to a server-side log for future capability work; it does not change the current map or session. map_id is optional, so a report can be filed before any map exists.
入力スキーマ
{
"type": "object",
"properties": {
"map_id": {
"description": "Optional. The map_id you were working on, if any.",
"type": "string",
"minLength": 1
},
"what_i_was_trying": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "High-level intent in one or two sentences. e.g. \"merge two filtered choropleths into a fused bivariate map\"."
},
"what_i_tried": {
"type": "string",
"minLength": 1,
"maxLength": 1000,
"description": "Which tools / inputs you attempted, in order. Be specific — tool name + key arg shape is ideal."
},
"where_i_got_stuck": {
"type": "string",
"minLength": 1,
"maxLength": 500,
"description": "The specific failure: what came back, what was missing, why you could not proceed."
},
"suggested_capability": {
"description": "Optional. A new tool, op, or schema field that would have unblocked you.",
"type": "string",
"minLength": 1,
"maxLength": 300
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"what_i_was_trying",
"what_i_tried",
"where_i_got_stuck"
]
}🟡save_workflow(name, steps, params, rationale)
Save a re-runnable, parameterized workflow: an ordered list of natural-language instructions (step 1 builds, later steps mutate). Wrap values in {braces} and declare them in params. Running it later re-executes the instructions on FRESH data and bills per step like typing.
入力スキーマ
{
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "Workflow name."
},
"steps": {
"minItems": 1,
"maxItems": 12,
"type": "array",
"items": {
"type": "object",
"properties": {
"instruction": {
"type": "string",
"minLength": 1,
"maxLength": 4000
}
},
"required": [
"instruction"
]
},
"description": "Ordered NL instructions. Step 1 builds the map; later steps mutate it. Wrap values in {braces} to declare parameters."
},
"params": {
"description": "Declared parameters — every {slot} used in steps must be declared here.",
"maxItems": 8,
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 40
},
"label": {
"type": "string",
"minLength": 1,
"maxLength": 80
},
"kind": {
"type": "string",
"enum": [
"place",
"number",
"text",
"timerange"
]
},
"default": {
"type": "string",
"maxLength": 200
}
},
"required": [
"name",
"label",
"kind"
]
}
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"name",
"steps"
]
}🟢list_workflows(rationale)
List the caller's saved workflows with their parameters and per-run credit estimates.
入力スキーマ
{
"type": "object",
"properties": {
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
}
}🟢run_workflow(workflow_id, params, batch, rationale)
Execute a saved workflow with parameter values. PAID: bills ~1 credit per step through the normal build/mutate paths (the estimate is in list_workflows). Optional batch mode sweeps ONE param across 2–20 values — each value is a full independent run (steps × values credits); failed/paused values are reported per value and the batch continues. A clarification pauses a single run (status "paused" + the question); failures stop at the failing step. On success the result is a live map with a shareable URL (batch: the last successful value's map).
入力スキーマ
{
"type": "object",
"properties": {
"workflow_id": {
"type": "string",
"minLength": 1,
"description": "From save_workflow or list_workflows."
},
"params": {
"description": "Values for the workflow's declared parameters.",
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "string"
}
},
"batch": {
"description": "Batch mode: run the workflow once per value (\"each of the 12 districts\"). Bills steps × values.",
"type": "object",
"properties": {
"param": {
"type": "string",
"minLength": 1,
"description": "The ONE declared param to sweep (must not also be in params)."
},
"values": {
"minItems": 2,
"maxItems": 20,
"type": "array",
"items": {
"type": "string",
"minLength": 1
},
"description": "2–20 values; each is a FULL independent billed run."
}
},
"required": [
"param",
"values"
]
},
"rationale": {
"description": "Optional short label (≤300 chars) for the map edit history, e.g. \"add wildfire layer\". Omit it to send nothing beyond the tool arguments.",
"type": "string",
"minLength": 1,
"maxLength": 300
}
},
"required": [
"workflow_id"
]
}コミュニティ
エビデンス