search_datasets
Search across Ontario, Toronto, and Ottawa open data portals to find datasets by keyword, organization, format, or update frequency.
Instructions
Search for datasets across all open data portals (Ontario, Toronto, Ottawa).
Results include portal-prefixed IDs (e.g. toronto:abc123). Use these IDs with get_dataset_info to view full metadata, then download_resource to cache locally. Use get_resource_schema to check column types before writing queries.
Searches fan out to all portals by default. Narrow to one portal with the portal param.
Args: query: Search terms (e.g. "covid cases", "housing prices", "school enrollment") organization: Filter by ministry/org (e.g. "health", "education") resource_format: Filter by file format (e.g. "CSV", "JSON", "SHP") update_frequency: Filter by frequency (e.g. "yearly", "monthly", "daily") sort_by: Sort order (default: relevance) limit: Max results per portal (1-50) portal: Narrow to one portal (e.g. "ontario", "toronto"). Default: all portals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| organization | No | ||
| resource_format | No | ||
| update_frequency | No | ||
| sort_by | No | relevance asc, metadata_modified desc | |
| limit | No | ||
| portal | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |