call_api
Call data.go.kr open APIs by passing a URL or saved endpoint alias with query params; it attaches the service key, corrects double-encoding, and parses JSON or XML responses.
Instructions
공공데이터포털 오픈API 를 호출한다. url(또는 저장된 endpoint 별칭)과 params 를 주면 서비스키를 자동으로 붙이고(이중 인코딩 자동 보정) 응답(JSON/XML)을 해석해 돌려준다.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "call_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | 오픈API 엔드포인트 URL (http...). endpoint 를 주면 생략 가능 | |
| method | No | HTTP 메서드 (기본 GET) | |
| params | No | 쿼리 파라미터 (serviceKey 제외) | |
| keyName | No | 사용할 저장된 키 이름 (없으면 기본 키) | |
| endpoint | No | 저장해 둔 엔드포인트 별칭 (save_endpoint 로 등록) | |
| serviceKey | No | 키를 직접 넘길 때 (저장 키 대신) |