Px Execute Query
px_execute_queryTranslates natural language selections into a validated PxWeb query, fetches the data, and returns a clean Markdown or CSV table with mandatory CC BY 4.0 attribution. Consumes 1 query from the weekly quota (official Live Demo presets are quota-exempt).
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": {
"table_uid": "<table_uid>"
},
"name": "px_execute_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | fi | |
| format | No | markdown | |
| table_uid | Yes | ||
| selections | No | ||
| access_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||