get_sql_generation_prompt
Generate an LLM prompt that converts natural language queries into SQL for JRA horse racing data. Returns schema info and a prompt; execute the resulting SQL via the data search tool.
Instructions
自然言語クエリをSQLに変換するためのLLMプロンプトを生成
このツールはSQLを直接実行しません。LLMにSQLを生成させるためのプロンプトを返します。
生成されたSQLは keiba_data_search ツールで実行してください。
Args:
query_text: 自然言語のクエリ
例: "過去3年で東京競馬場の芝1600mで1番人気だった馬の成績を教えて"
例: "ディープインパクト産駒の距離別成績を集計して"
Returns:
LLM用プロンプトとスキーマ情報
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_text": "<query_text>"
},
"name": "get_sql_generation_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query_text | Yes |