Assess similar situations
assessHow did similar past situations turn out? Read only. Returns a short evidence packet to decide from: the share of RESOLVED similar situations in which the event happened, a 95% range, a confidence word (provisional), what was counted and what was not, and warnings. The counting is done by the service. The packet is evidence for a decision (act or hold), not the decision itself.
For a device that reports numbers (sensors, machines), situations are matched on the readings themselves: like= or latest=true for the device's newest reading (standardised against that device's own baseline and smoothed over the last few readings). For notes and decisions, describe the situation in words.
When the device has enough resolved outcomes, the service fits an estimator to it and checks it on sources it has not seen; if it passes, the estimate comes from that model (answer.estimate_source says "fitted model") and the counts of the closest situations stay in the packet as evidence. If it does not pass, the packet says why and the counts are the answer. This happens automatically.
It reports how often similar recorded situations were followed by recorded outcomes. It is not a forecast, and it does not say what caused an outcome. With fewer than 8 resolved outcomes it gives no estimate and says so. Notes, pending items and outcomes of unclear origin are never counted as results.
Args: situation: short description of the situation you are about to act on (words). Not needed with like or latest. event: "success" (default: how often similar situations worked) or "failure" (how often they failed). k: how many similar situations to look at (default 20, at most 50). device_id: assess a different named memory on this account instead of the account's default one. like: the id of a stored reading; find the situations whose readings are closest to it. latest: true to use the device's newest stored reading instead of giving an id.
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": "assess"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| k | No | ||
| like | No | ||
| event | No | success | |
| latest | No | ||
| device_id | No | ||
| situation | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |