get_available_values
Retrieve distinct values of a specific field from KOSIS statistical data to identify available filter options and determine filtering criteria.
Instructions
데이터에서 특정 필드의 사용 가능한 값을 조회합니다.
필터링 옵션을 확인하거나, 어떤 값으로 필터링할지 결정할 때 사용합니다.
Args: data_json: KOSIS 데이터 JSON 문자열 (get_statistics_data 결과) field: 필드명 (예: "C1_NM", "PRD_DE", "ITM_NM") - C1_NM: 분류1 (보통 지역명) - PRD_DE: 기간 - ITM_NM: 항목명
Returns: { "field": "C1_NM", "field_description": "분류1 (지역/카테고리)", "count": 17, "values": ["강원도", "경기도", ...], "filter_example": "filter_statistics(data, regions='서울특별시,부산광역시')" }
Example: >>> get_available_values(data, "C1_NM")
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": {
"data_json": "<data_json>",
"field": "<field>"
},
"name": "get_available_values"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | ||
| data_json | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||