get_db_record_count
Count database records for a specific commodity, location, and time to quickly check data availability before retrieval.
Instructions
Get the number, or count, of database records of a given commodity for a location and time.
Args:
query: Dictionary with three keys, "commodity", "location", and "time", each with a dictionary of parameter and value pairs.
Returns:
A JSON string containing one key, "count", and a value of the number of records or an error message.
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": "get_db_record_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |