bcn.plan_query
bcn_plan_queryTranslate natural language questions about Barcelona into structured data queries on Open Data BCN. Get recommended resources, place resolution, and workflow steps without executing the query.
Instructions
Plan a natural-language Barcelona city question into an explainable Open Data BCN workflow. Returns recommended resources, optional source-bounded place resolution, final tool arguments, and citation guidance without running the final data query.
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": {
"query": "<query>"
},
"name": "bcn_plan_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | ||
| sort | No | ||
| task | No | ||
| limit | No | Rows to return. Server maximum: 100. | |
| query | Yes | ||
| fields | No | ||
| offset | No | ||
| filters | No | ||
| group_by | No | ||
| radius_m | No | ||
| place_kind | No | ||
| place_query | No | ||
| resource_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| error | No | ||
| provenance | Yes |