Get Opendatasoft dataset schema & licence
get_portal_datasetFetch schema and metadata for a Swiss Opendatasoft dataset to identify field names, types, record counts, and geo fields before querying its records.
Instructions
Schema and metadata of one dataset on a Swiss Opendatasoft portal (SBB, Basel, St. Gallen, Thurgau…): fields (name, label, type, description, facet), record count, licence, publisher, attributions, themes, last modified, and the geo_point field usable for radius search. Call this before query_portal_records to learn field names for where/select/order_by. Example: {portal:'sbb', dataset_id:'passagierfrequenz'}.
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": {
"portal": "<portal>",
"dataset_id": "<dataset_id>"
},
"name": "get_portal_dataset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| portal | Yes | Portal id, alias or domain: 'sbb' (data.sbb.ch), 'basel-stadt' (data.bs.ch), 'basel-landschaft' (data.bl.ch), 'st-gallen' (daten.sg.ch), 'stadt-st-gallen' (daten.stadt.sg.ch), 'graubuenden' (data.gr.ch), 'thurgau' (data.tg.ch); any other '<tenant>.opendatasoft.com' host also works | |
| dataset_id | Yes | Dataset id from search_portal_datasets, e.g. 'passagierfrequenz' (SBB) or '100088' (Basel-Stadt ids are numeric) |