palace_gain
Reports how much value Palace MCP tools deliver from local usage logs—hits, tokens saved, duplicate skips, recall, latency, and per-project totals—so users can assess ROI.
Instructions
Report how much value Palace's MCP tools have delivered, from a local usage log: hits, estimated tokens saved, skipped duplicates, recall rate, latency, and per-project totals. Use it when the user asks whether Palace is paying off; for database or model health use palace_verify instead. Read-only by default. Three options change it: history=true returns raw recent events instead of the summary; record={...} stores feedback on one search hit (a write); reset=true permanently deletes usage events (for one project, or all projects when project is omitted), so only reset when the user asks.
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": "palace_gain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of events when history=true (default: 20) | |
| reset | No | Irreversibly delete usage events for `project`, or for all projects if `project` is omitted | |
| since | No | Time window like 7d, 24h, 30d, or all (default: 30d) | |
| record | No | Feedback on one search result. When omitted, palace_gain returns the normal read-only summary. | |
| history | No | Return the most recent usage events instead of the summary | |
| project | No | Project to filter by (optional; default is every project) |