Psa Ph Get Data
psa_ph_get_dataGet figures from a Philippine Statistics Authority (PSA) table as labelled rows (dimension labels, value, unit text from the table title, period, data_as_of). select maps a dimension (code or label) to what you want: a value label or code, an array of them, "*" for all, "first", "last", or "last:N" for the final N. Matching is by exact code, exact label, then label text. Any dimension you leave out is defaulted, time dimensions to their latest value, every other to its first value (usually the total), and every default is listed in selection_resolved and note. Selections above 1,500 cells are refused with the sizes so you can narrow them.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"select": {
"Year": "2026",
"Period": [
"Sep",
"Oct"
],
"Commodity Description": "0 - ALL ITEMS"
},
"table_id": "2M/PI/CPI/2018NEW/0012M4ACP22.px"
},
"name": "psa_ph_get_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| select | No | Map of dimension code/label to value(s), e.g. {"Commodity Description":"0 - ALL ITEMS","Year":"2025","Period":["Oct","Nov"]}. | |
| table_id | Yes | Native table id from psa_ph_search_tables. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| rows | No | ||
| cells | No | ||
| title | No | ||
| source | No | ||
| table_id | No | ||
| unit_note | No | ||
| data_as_of | No | ||
| selection_resolved | No |