extract_keyword_history_args
Extracts country code, keyword, start date, and end date from a user query to prepare keyword history requests; returns None when required values are missing.
Instructions
Extracts country_code, keyword, start_date, and end_date from a user query. Returns a dict with the extracted values, or None if not all are found.
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": "<query>"
},
"name": "extract_keyword_history_args"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |