create_map
Creates a data-collection map programmatically with custom fields, geometry, and AI photo modes, then auto-registers its admin link for managing contributions.
Instructions
Optional: create a collect map programmatically. Most maps are made online at collect.bharatlas.com (no key needed) — prefer that and register_map the link. This path needs COLLECT_API_KEY (the request-only anti-abuse gate) and auto-registers the new admin link.
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>",
"purpose": "<purpose>",
"geometry": "<geometry>",
"fields": "<fields>"
},
"name": "create_map"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | how people collect: form (default); form_ai = form plus notes a model writes from the photo, for the owner to check; photos_ai = people only take photos and the model fills the form (places only). AI modes need a photo field. | |
| name | Yes | 3-120 chars | |
| fields | Yes | the form for each record (see collect.bharatlas.com/schema/v1.json); a field of type "photo" (max_photos 1-3) asks for photos | |
| basemap | No | ||
| license | No | open licence id; default CC-BY-4.0 | |
| purpose | Yes | shown to contributors | |
| category | No | ||
| geometry | Yes | what contributors may add | |
| data_year | No | ||
| moderation | No | default true — points wait for approval | |
| description | No |