search_history
Retrieve past procurement searches from a Postgres log or cache, newest first, to review query history or reuse unexpired cached results.
Instructions
Read past searches from the Postgres search log or cache, newest first.
Needs DATABASE_URL. Without a database the server keeps no history.
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": "search_history"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Cap on rows returned | |
| source | No | log: every past search with its result count and time. cache: unexpired cached results. | log |
| since_hours | No | How far back to look | |
| include_offers | No | cache only: include the cached offers in each row. Default: counts only. | |
| query_contains | No | Keep only searches whose query contains this text |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |