Upload a GeoJSON dataset
mapscale_dataset_uploadUpload a small GeoJSON FeatureCollection (WGS84, up to 1000 features and 256 KB inline) as a dataset and serve it as vector tiles at /tiles/v1/ds_/{z}/{x}/{y}.mvt. Larger files: POST to /v1/datasets directly. Requires a secret (sk_) key. Creates a stored dataset, so confirm with the user first.
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": {
"name": "<name>",
"geojson": "<geojson>"
},
"name": "mapscale_dataset_upload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name, 1-120 characters. MCP client UTF-8 budget: 512 bytes. | |
| slug | No | Optional layer name inside the tiles: lowercase letters, digits, - and _. Defaults to a slug of name. MCP client UTF-8 budget: 512 bytes. | |
| public | No | Let any key read the tiles. Default false (private to your account). | |
| geojson | Yes | GeoJSON FeatureCollection, e.g. {"type":"FeatureCollection","features":[...]}. A JSON string is also accepted. |