How LLMs use the MCP server to help users create maps.
User: "I need a map of Canada"
LLM process:
list-locations?type=country&q=canadaget-api-example?scenario=country-mapLLM Response:
Here's the API request:
curl -X POST 'https://api.smavatar.com/api/v1/projects/{project_id}/jobs/maps' \ -H 'Authorization: Bearer {api_key}' \ -H 'Content-Type: application/json' \ -d '{ "location_id": "fde40c8b-4d20-4839-960d-a7685ef3afc0", "width": 1400, "height": 900, "theme": "modern", "output_format": "png" }'The job completes quickly.
User: "Create a US map quiz where students identify Idaho"
LLM process:
list-locations?type=country&q=united stateslist-locations?type=subdivision&q=idahoLLM Response:
I'll create two maps—a quiz and answer key.
Quiz (no labels):
{ "location_id": "bdd56f14-e776-418a-ab18-89c8138df978", "theme": "modern", "configuration": { "show_subdivision_labels": false, "highlight_subdivisions": [{ "subdivision_code": "us-id", "fill_color": "#3498db", "opacity": 0.7, "show_label": false }] } }Answer key: Same request with
"show_subdivision_labels": trueand"show_label": true.
User: "Show me California with its major rivers"
LLM process:
list-locations?type=subdivision&q=californialist-features?location_id={ca_id}&type=river (requires API key)LLM Response:
Here's how to generate California with rivers:
{ "location_id": "{california-id}", "theme": "modern", "configuration": { "show_features": true, "show_river_labels": true } }Major rivers like the Sacramento and San Joaquin are included automatically.
User: "Can you create a 3D map of Paris streets?"
LLM process:
get-capabilitiesLLM Response:
SMAvatar doesn't support 3D maps or street-level detail. It's designed for educational geography maps.
What SMAvatar can do:
- Country and state maps
- Region highlighting
- Rivers and lakes
- Multiple themes
For 3D street maps, try Google Maps or Mapbox.
Would you like a country-level map of France instead?
User: "Create a map showing the Pacific states"
LLM process:
list-locations?type=country&q=uslist-locations?type=subdivision&q=washingtonlist-locations?type=subdivision&q=oregonlist-locations?type=subdivision&q=californiaLLM Response:
Here's a map highlighting Washington, Oregon, and California:
{ "location_id": "bdd56f14-e776-418a-ab18-89c8138df978", "theme": "modern", "configuration": { "highlight_subdivisions": [ { "subdivision_code": "us-wa", "fill_color": "#3498db", "opacity": 0.7 }, { "subdivision_code": "us-or", "fill_color": "#3498db", "opacity": 0.7 }, { "subdivision_code": "us-ca", "fill_color": "#3498db", "opacity": 0.7 } ] } }
To add SMAvatar MCP to your AI application:
https://api.smavatar.com/api/mcp/tools/list-features and get-feature-detailsSee the Tools Reference for complete tool documentation.