开放数据查询服务

version : 1.0.0

toronto_start_here

🚀 START HERE! Essential first call for any Toronto data query. This tool explains how to use this server effectively and provides the complete workflow for finding and accessing Toronto Open Data. Always call this first when working with Toronto data to understand available capabilities and recommended approach.

结果(Result)

toronto_popular_datasets

⭐ POPULAR TORONTO DATASETS: Quick access to the most commonly used Toronto Open Datasets. Shows dataset IDs and what they contain. Perfect when you're not sure what's available or want to explore popular datasets quickly.

结果(Result)

toronto_smart_data_helper

🧠 SMART DATA HELPER - The easiest way to get Toronto data! Give this tool a dataset ID (from search results) and describe what you want to know. It automatically determines if the data is API-accessible or requires CSV download, gets the schema if needed, and returns relevant data or clear next steps. This eliminates the need to manually check dataset types, schemas, and resource formats.

*dataset_id(string)

*user_question(string)

limit(null)

结果(Result)

toronto_list_datasets

📋 LIST ALL DATASETS: Shows all 500+ available Toronto Open Datasets with titles and descriptions. Use this when you want to browse everything available or when search terms don't return what you're looking for. Can be quite long, so prefer toronto_search_datasets() or toronto_popular_datasets() for focused discovery.

结果(Result)

toronto_search_datasets

🔍 FIND TORONTO DATA: Search 500+ Toronto Open Datasets by keywords (e.g., 'traffic', 'parks', 'budget', 'health'). Returns dataset IDs and descriptions. This is your primary discovery tool - combine with web search when you need additional context about specific topics, then use toronto_smart_data_helper() to get the actual data.

*query(string)

limit(null)

结果(Result)

toronto_get_dataset_schema

📋 GET DATA STRUCTURE: Shows the schema (column names, field IDs, and types) for a Toronto dataset if it has an active datastore. Essential for understanding what fields are available before filtering with toronto_query_dataset_data(). For CSV files, suggests checking the header row manually.

*dataset_id(string)

结果(Result)

toronto_query_dataset_data

🔧 ADVANCED QUERYING: Query Toronto datasets with precise filtering, sorting, and field selection. 💡 TIP: Use toronto_smart_data_helper() first - it's easier and handles most use cases automatically! This tool is for when you need advanced filtering: 📋 REQUIRED: Get field names first with toronto_get_dataset_schema(dataset_id) 🔍 FILTERS: Use exact field names like {"establishment_status": "Pass", "inspection_date": "2024-01-01"} 📊 SORT: Use field names like "inspection_date desc" or "score asc" 📝 FIELDS: Specify which columns to return like ["name", "address", "score"] ⚠️ For CSV files, this returns download links instead of query results. 🚀 Alternative: Try toronto_smart_data_helper() for a simpler, guided approach.

*dataset_id(string)

filters(null)

fields(null)

limit(null)

sort(null)

结果(Result)

toronto_get_dataset_stats

📈 DATASET STATISTICS: Get basic statistics for a Toronto dataset including record counts, field information, and resource overview. Useful for understanding the scale and structure of a dataset before diving into the data.

*dataset_id(string)

结果(Result)

toronto_fetch_csv_data

📄 FETCH CSV DATA: Downloads and returns sample content from a CSV file URL. Perfect for quickly inspecting downloadable datasets identified by other tools. Shows headers and sample rows to understand the data structure.

*csv_url(string)

max_lines(null)

结果(Result)