File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -598,19 +598,27 @@ <h1 class="serif text-4xl md:text-5xl mb-2 gradient-text">
598598Available MCP tools:
599599${ toolList }
600600
601- Choose the most appropriate tool and generate its arguments.
602- Respond ONLY with JSON in this format:
601+ CRITICAL RULES FOR TOOL SELECTION:
602+ 1. If user asks about ORGANIZATIONS (like "which organizations", "organizations with most datasets", "list organizations"):
603+ → Use ckan_organization_list with all_fields=true and sort="package_count desc"
604+
605+ 2. If user asks about DATASETS (like "find datasets about X", "datasets on topic Y"):
606+ → Use ckan_package_search or ckan_find_relevant_datasets
607+
608+ 3. If user asks about TAGS:
609+ → Use ckan_tag_list
610+
611+ 4. NEVER use ckan_package_search with faceting to get organizations - use ckan_organization_list instead!
612+
613+ Respond ONLY with JSON in this exact format:
603614{
604615 "tool": "tool_name",
605616 "arguments": {
606617 "server_url": "CKAN_SERVER",
607- ...other params based on tool schema
618+ ...other params
608619 }
609620}
610621
611- For dataset searches use ckan_package_search or ckan_find_relevant_datasets.
612- For organization queries use ckan_organization_list, ckan_organization_show, or ckan_organization_search.
613- For tags use ckan_tag_list.
614622Always include server_url parameter.
615623Use conversation context to refine queries.` ;
616624
You can’t perform that action at this time.
0 commit comments