get_variable_from_database
Retrieve a stored variable from the agent's database, choosing between the most recent value or historical records with configurable time range and count.
Instructions
The variable to retrieve from the agent's database.
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": {
"variable": "<variable>",
"variable_retrieval_depth": "<variable_retrieval_depth>"
},
"name": "get_variable_from_database"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variable | Yes | The variable to retrieve. | |
| variable_retrieval_depth | Yes | How far back to retrieve data. | most_recent_value |
| agent_db_historical_values | No | Historical data interval. | |
| agent_db_variable_retrieval_count | No | Number of items to retrieve (default: 10). |