Skip to main content
Glama

Generate a map of a place

generate_map

Generate a styled map image centered on a single place. Returns a download+link as text, not image bytes. Example: place='Tokyo Station'.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "place": "<place>"
    },
    "name": "generate_map"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoOptional: display name for the map. If omitted, the server derives one automatically from place.
placeYesPlace name to center the map on (geocoded server-side).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Optional: display name for the map. If omitted, the server derives one automatically from place.",
      +  "type": "string"
      +}
  2. Changed12 schema fields changed
    • removedInput schema / $defs
      Removed value: -{
      -  "Location": {
      -    "description": "Explicit coordinates.",
      -    "properties": {
      -      "lat": {
      -        "description": "Latitude.",
      -        "type": "number"
      -      },
      -      "lng": {
      -        "description": "Longitude.",
      -        "type": "number"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "RouteEndpoint": {
      -    "description": "Provide 'location' for explicit coordinates (no geocoding), or only 'label' to geocode server-side. Both may be provided — 'location' takes precedence, 'label' is used for display.",
      -    "properties": {
      -      "label": {
      -        "description": "Place name for geocoding and/or display.",
      -        "type": "string"
      -      },
      -      "location": {
      -        "$ref": "#/$defs/Location"
      -      }
      -    },
      -    "type": "object"
      -  }
      -}
    • addedInput schema / additionalProperties
      Added value: +false
    • removedInput schema / properties / canvas_height
      Removed value: -{
      -  "description": "Canvas height in pixels (default 600).",
      -  "type": "integer"
      -}
    • removedInput schema / properties / canvas_width
      Removed value: -{
      -  "description": "Canvas width in pixels (default 1000).",
      -  "type": "integer"
      -}
    • removedInput schema / properties / color_set
      Removed value: -{
      -  "description": "Background/line color theme (e.g. 'white', 'darkBlue', 'black') — see server instructions for the full list.",
      -  "type": "string"
      -}
    • removedInput schema / properties / format
      Removed value: -{
      -  "description": "'png' (default) or 'svg'.",
      -  "enum": [
      -    "png",
      -    "svg"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / location
      Removed value: -{
      -  "$ref": "#/$defs/Location",
      -  "description": "Explicit coordinates for 'place'. If given, geocoding of 'place' is skipped. Not necessarily the map's final center — see server instructions."
      -}
    • removedInput schema / properties / markers
      Removed value: -{
      -  "description": "List of locations to pin on the map, e.g. [{\"label\": \"Tokyo Station\"}].",
      -  "items": {
      -    "properties": {
      -      "label": {
      -        "description": "Place name for geocoding and/or display.",
      -        "type": "string"
      -      },
      -      "location": {
      -        "$ref": "#/$defs/Location",
      -        "description": "Explicit coordinates. If provided, geocoding of 'label' is skipped."
      -      }
      -    },
      -    "type": "object"
      -  },
      -  "type": "array"
      -}
    • removedInput schema / properties / name
      Removed value: -{
      -  "description": "Map name stored in the data file.",
      -  "type": "string"
      -}
    • changedInput schema / properties / place / description
      Previous value: -"Place name to center the map on (geocoded server-side unless 'location' is also given)."New value: +"Place name to center the map on (geocoded server-side)."
    • removedInput schema / properties / route
      Removed value: -{
      -  "description": "Route to overlay — pass compute_route()'s result through as-is.",
      -  "properties": {
      -    "coords": {
      -      "description": "Ordered list of [lat, lng] pairs along the route.",
      -      "items": {
      -        "items": {
      -          "type": "number"
      -        },
      -        "maxItems": 2,
      -        "minItems": 2,
      -        "type": "array"
      -      },
      -      "type": "array"
      -    },
      -    "from": {
      -      "$ref": "#/$defs/RouteEndpoint",
      -      "description": "Route start point."
      -    },
      -    "mode": {
      -      "description": "'walking' (default) or 'driving'.",
      -      "enum": [
      -        "walking",
      -        "driving"
      -      ],
      -      "type": "string"
      -    },
      -    "to": {
      -      "$ref": "#/$defs/RouteEndpoint",
      -      "description": "Route end point."
      -    }
      -  },
      -  "type": "object"
      -}
    • addedInput schema / required
      Added value: +[
      +  "place"
      +]
  3. Changed8 schema fields changed
    • removedInput schema / properties / lat
      Removed value: -{
      -  "description": "Latitude of the map center. Must be combined with lng.",
      -  "type": "number"
      -}
    • removedInput schema / properties / layers
      Removed value: -{
      -  "description": "Which map layers to draw (roads, railway, POI, etc.) — see server instructions for what each preset includes. Omit for 'default'.",
      -  "enum": [
      -    "default",
      -    "road_and_railway",
      -    "only_driving_road",
      -    "fully_detailed"
      -  ],
      -  "type": "string"
      -}
    • removedInput schema / properties / lng
      Removed value: -{
      -  "description": "Longitude of the map center. Must be combined with lat.",
      -  "type": "number"
      -}
    • addedInput schema / properties / location
      Added value: +{
      +  "$ref": "#/$defs/Location",
      +  "description": "Explicit coordinates for 'place'. If given, geocoding of 'place' is skipped. Not necessarily the map's final center — see server instructions."
      +}
    • changedInput schema / properties / place / description
      Previous value: -"Place name to center the map on. Use this OR lat/lng, not both."New value: +"Place name to center the map on (geocoded server-side unless 'location' is also given)."
    • removedInput schema / properties / radius
      Removed value: -{
      -  "description": "Circular radius in meters. Exclusive with size_ew/size_ns; omit for automatic default.",
      -  "type": "number"
      -}
    • removedInput schema / properties / size_ew
      Removed value: -{
      -  "description": "Rectangular area width (east-west), meters. Pairs with size_ns; exclusive with radius.",
      -  "type": "number"
      -}
    • removedInput schema / properties / size_ns
      Removed value: -{
      -  "description": "Rectangular area height (north-south), meters. Pairs with size_ew.",
      -  "type": "number"
      -}
  4. Changed2 schema fields changed
    • changedInput schema / properties / color_set / description
      Previous value: -"Color theme — see server instructions for the list."New value: +"Background/line color theme (e.g. 'white', 'darkBlue', 'black') — see server instructions for the full list."
    • changedInput schema / properties / layers / description
      Previous value: -"Layer preset — see server instructions for details. Omit for 'default'."New value: +"Which map layers to draw (roads, railway, POI, etc.) — see server instructions for what each preset includes. Omit for 'default'."
  5. Changed17 schema fields changed
    • addedInput schema / $defs
      Added value: +{
      +  "Location": {
      +    "description": "Explicit coordinates.",
      +    "properties": {
      +      "lat": {
      +        "description": "Latitude.",
      +        "type": "number"
      +      },
      +      "lng": {
      +        "description": "Longitude.",
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "RouteEndpoint": {
      +    "description": "Provide 'location' for explicit coordinates (no geocoding), or only 'label' to geocode server-side. Both may be provided — 'location' takes precedence, 'label' is used for display.",
      +    "properties": {
      +      "label": {
      +        "description": "Place name for geocoding and/or display.",
      +        "type": "string"
      +      },
      +      "location": {
      +        "$ref": "#/$defs/Location"
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
    • changedInput schema / properties / color_set / description
      Previous value: -"Color theme. One of: darkBlue, darkGreen, popArt, lightBlue, lightGreen, beige, magenta, white, gray, black, brawn."New value: +"Color theme — see server instructions for the list."
    • removedInput schema / properties / config
      Removed value: -{
      -  "description": "Overrides for automatic layer-visibility defaults. Omit any field to keep the default.",
      -  "properties": {
      -    "patchworked": {
      -      "description": "Auto-color closed areas and building shapes on the drawing. Default true.",
      -      "type": "boolean"
      -    },
      -    "withBuilding": {
      -      "description": "Draw building shapes. Default true when building data is available.",
      -      "type": "boolean"
      -    },
      -    "withSeaRibbon": {
      -      "description": "Draw a band representing the sea along the coastline. Default true when coastline data is available.",
      -      "type": "boolean"
      -    }
      -  },
      -  "type": "object"
      -}
    • changedInput schema / properties / layers / description
      Previous value: -"Preset combination of map layers. 'default': roads + POI icons. 'only_driving_road': car-accessible roads only, nothing else. 'road_and_railway': roads + railway lines, no POI. 'fully_detailed': roads + railway + waterline + greenarea + POI (waterline/greenarea only apply within Japan; ignored elsewhere)."New value: +"Layer preset — see server instructions for details. Omit for 'default'."
    • addedInput schema / properties / markers / items / properties / location / $ref
      Added value: +"#/$defs/Location"
    • removedInput schema / properties / markers / items / properties / location / properties
      Removed value: -{
      -  "lat": {
      -    "description": "Latitude.",
      -    "type": "number"
      -  },
      -  "lng": {
      -    "description": "Longitude.",
      -    "type": "number"
      -  }
      -}
    • removedInput schema / properties / markers / items / properties / location / type
      Removed value: -"object"
    • changedInput schema / properties / radius / description
      Previous value: -"Circular coverage radius in meters (max depends on layers). Mutually exclusive with size_ew/size_ns. Omit this if the user hasn't specified a size — a sensible default is applied automatically."New value: +"Circular radius in meters. Exclusive with size_ew/size_ns; omit for automatic default."
    • changedInput schema / properties / route / description
      Previous value: -"Route to overlay, as returned by compute_route. Pass that object through as-is."New value: +"Route to overlay — pass compute_route()'s result through as-is."
    • addedInput schema / properties / route / properties / from / $ref
      Added value: +"#/$defs/RouteEndpoint"
    • removedInput schema / properties / route / properties / from / properties
      Removed value: -{
      -  "label": {
      -    "description": "Place name for geocoding and/or display.",
      -    "type": "string"
      -  },
      -  "location": {
      -    "description": "Explicit coordinates.",
      -    "properties": {
      -      "lat": {
      -        "description": "Latitude.",
      -        "type": "number"
      -      },
      -      "lng": {
      -        "description": "Longitude.",
      -        "type": "number"
      -      }
      -    },
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / route / properties / from / type
      Removed value: -"object"
    • addedInput schema / properties / route / properties / to / $ref
      Added value: +"#/$defs/RouteEndpoint"
    • removedInput schema / properties / route / properties / to / properties
      Removed value: -{
      -  "label": {
      -    "description": "Place name for geocoding and/or display.",
      -    "type": "string"
      -  },
      -  "location": {
      -    "description": "Explicit coordinates.",
      -    "properties": {
      -      "lat": {
      -        "description": "Latitude.",
      -        "type": "number"
      -      },
      -      "lng": {
      -        "description": "Longitude.",
      -        "type": "number"
      -      }
      -    },
      -    "type": "object"
      -  }
      -}
    • removedInput schema / properties / route / properties / to / type
      Removed value: -"object"
    • changedInput schema / properties / size_ew / description
      Previous value: -"East-west width of a rectangular coverage area in meters. Must be combined with size_ns."New value: +"Rectangular area width (east-west), meters. Pairs with size_ns; exclusive with radius."
    • changedInput schema / properties / size_ns / description
      Previous value: -"North-south height of a rectangular coverage area in meters. Must be combined with size_ew."New value: +"Rectangular area height (north-south), meters. Pairs with size_ew."
  6. Changed7 schema fields changed
    • addedInput schema / properties / markers / items / properties / location / properties / lat / description
      Added value: +"Latitude."
    • addedInput schema / properties / markers / items / properties / location / properties / lng / description
      Added value: +"Longitude."
    • addedInput schema / properties / route / properties / from / properties / location / properties / lat / description
      Added value: +"Latitude."
    • addedInput schema / properties / route / properties / from / properties / location / properties / lng / description
      Added value: +"Longitude."
    • addedInput schema / properties / route / properties / mode / description
      Added value: +"'walking' (default) or 'driving'."
    • addedInput schema / properties / route / properties / to / properties / location / properties / lat / description
      Added value: +"Latitude."
    • addedInput schema / properties / route / properties / to / properties / location / properties / lng / description
      Added value: +"Longitude."
  7. Changed7 schema fields changed
    • changedInput schema / properties / canvas_height / description
      Previous value: -"Canvas height in pixels (default 700)."New value: +"Canvas height in pixels (default 600)."
    • removedInput schema / properties / edge_weight
      Removed value: -{
      -  "description": "Road/line width adjustment. Positive thickens, negative thins.",
      -  "type": "integer"
      -}
    • changedInput schema / properties / layers / description
      Previous value: -"Preset combination of map layers. 'default': roads + POI icons. 'only_driving_road': car-accessible roads only, nothing else. 'road_and_railway': roads + railway lines, no POI. 'fully_detailed': roads + railway + waterline + greenarea + POI."New value: +"Preset combination of map layers. 'default': roads + POI icons. 'only_driving_road': car-accessible roads only, nothing else. 'road_and_railway': roads + railway lines, no POI. 'fully_detailed': roads + railway + waterline + greenarea + POI (waterline/greenarea only apply within Japan; ignored elsewhere)."
    • addedInput schema / properties / markers / items / properties
      Added value: +{
      +  "label": {
      +    "description": "Place name for geocoding and/or display.",
      +    "type": "string"
      +  },
      +  "location": {
      +    "description": "Explicit coordinates. If provided, geocoding of 'label' is skipped.",
      +    "properties": {
      +      "lat": {
      +        "type": "number"
      +      },
      +      "lng": {
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
    • removedInput schema / properties / place_icon
      Removed value: -{
      -  "description": "Custom icon override for the place/center pin.",
      -  "type": "object"
      -}
    • changedInput schema / properties / route / description
      Previous value: -"Route to overlay, as returned by compute_route."New value: +"Route to overlay, as returned by compute_route. Pass that object through as-is."
    • addedInput schema / properties / route / properties
      Added value: +{
      +  "coords": {
      +    "description": "Ordered list of [lat, lng] pairs along the route.",
      +    "items": {
      +      "items": {
      +        "type": "number"
      +      },
      +      "maxItems": 2,
      +      "minItems": 2,
      +      "type": "array"
      +    },
      +    "type": "array"
      +  },
      +  "from": {
      +    "description": "Route start point.",
      +    "properties": {
      +      "label": {
      +        "description": "Place name for geocoding and/or display.",
      +        "type": "string"
      +      },
      +      "location": {
      +        "description": "Explicit coordinates.",
      +        "properties": {
      +          "lat": {
      +            "type": "number"
      +          },
      +          "lng": {
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "mode": {
      +    "enum": [
      +      "walking",
      +      "driving"
      +    ],
      +    "type": "string"
      +  },
      +  "to": {
      +    "description": "Route end point.",
      +    "properties": {
      +      "label": {
      +        "description": "Place name for geocoding and/or display.",
      +        "type": "string"
      +      },
      +      "location": {
      +        "description": "Explicit coordinates.",
      +        "properties": {
      +          "lat": {
      +            "type": "number"
      +          },
      +          "lng": {
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      }
      +    },
      +    "type": "object"
      +  }
      +}
  8. Changed1 schema field changed
    • changedInput schema / properties / layers / enum
      Previous value: -[
      -  "default",
      -  "only_driving_road",
      -  "road_and_railway",
      -  "fully_detailed"
      -]New value: +[
      +  "default",
      +  "road_and_railway",
      +  "only_driving_road",
      +  "fully_detailed"
      +]
  9. Changed6 schema fields changed
    • changedInput schema / properties / layers / description
      Previous value: -"Map layers to render. Default ['road', 'poi']. Valid: road, highway, driving, walking, railway, waterline, greenarea, poi."New value: +"Preset combination of map layers. 'default': roads + POI icons. 'only_driving_road': car-accessible roads only, nothing else. 'road_and_railway': roads + railway lines, no POI. 'fully_detailed': roads + railway + waterline + greenarea + POI."
    • addedInput schema / properties / layers / enum
      Added value: +[
      +  "default",
      +  "only_driving_road",
      +  "road_and_railway",
      +  "fully_detailed"
      +]
    • removedInput schema / properties / layers / items
      Removed value: -{
      -  "type": "string"
      -}
    • changedInput schema / properties / layers / type
      Previous value: -"array"New value: +"string"
    • removedInput schema / properties / poi_types
      Removed value: -{
      -  "description": "Filter POI categories when 'poi' is in layers.",
      -  "items": {
      -    "type": "string"
      -  },
      -  "type": "array"
      -}
    • changedInput schema / properties / radius / description
      Previous value: -"Circular coverage radius in meters (max depends on layers). Mutually exclusive with size_ew/size_ns."New value: +"Circular coverage radius in meters (max depends on layers). Mutually exclusive with size_ew/size_ns. Omit this if the user hasn't specified a size — a sensible default is applied automatically."
  10. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Adds real behavioral information beyond the annotations: the result is a download link as text rather than image bytes, and the place is geocoded server-side. Annotations (readOnlyHint=false, openWorldHint=true, destructiveHint=false) cover the safety profile, so this extra output-format disclosure is genuine added value.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences: purpose first, then the non-obvious output format, then a usage example. Nothing is redundant and the most surprising detail is front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple two-parameter tool with no output schema, the description supplies the essential missing piece — what the return value is. Only the differentiation from the marker and route siblings is left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented in the schema. The description contributes a concrete example value for 'place' but says nothing about 'name' beyond what the schema states, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Generate a styled map image') plus scope ('centered on a single place'). The 'single place' constraint implicitly separates it from marker/route variants, though siblings are never named.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is inferable from 'centered on a single place' — an agent can reason that multi-point or route needs belong elsewhere — but there is no explicit when-to-use or when-not-to-use statement, and no sibling is named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.