Skip to main content
Glama

Assess similar situations

assess
Read-only

How 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

NameRequiredDescriptionDefault
kNo
likeNo
eventNosuccess
latestNo
device_idNo
situationNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond readOnlyHint=true and openWorldHint=false, it discloses the 8-resolved-outcome minimum, that no estimate is given below that threshold, that the estimator is fitted and validated on unseen sources with fallback to raw counts, and that notes, pending items, and unclear-origin outcomes are never counted. Those are exactly the non-obvious behavioral facts an agent cannot get from annotations or schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the answer-shape and the read-only constraint, then device-vs-text usage, then the estimation caveat, then an Args block. A few passages are heavier than needed (the estimator-fitting paragraph, and 'It is not a forecast, and it does not say what caused an outcome' is partly restating the previous sentence), but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a six-parameter tool with an output schema and zero schema-level descriptions, the definition covers both input paths, the minimum-sample gate, the model-vs-counts switch with its signal field, and the return packet's composition. An agent can decide whether to call it, pick the right parameter mode, and interpret the answer without further context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and the schema exposes only bare names with defaults, so the description carries the whole burden — and it does: it defines situation, the success/failure values for event, k's default of 20 and cap of 50, device_id's override semantics, like's reading-id meaning, and latest's baseline-standardisation behavior. It also states the mutual exclusivity that situation is unnecessary when like or latest is supplied.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific question ('How did similar past situations turn out?') and states exactly what comes back: a share of RESOLVED similar situations, a 95% range, a confidence word, counts, and warnings. That is a distinct verb+resource profile (retrospective base-rate lookup on stored memory) that separates it cleanly from recall, remember, and record_outcome.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives real routing guidance inside the tool: use like=<reading id> or latest=true for numeric devices, describe in words for notes and decisions, and it frames the output as 'evidence for a decision (act or hold), not the decision itself.' What it does not do is name a sibling or state when to prefer recall/await_pending over this, so it stops short of explicit when-not-to-use guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.