Skip to main content
Glama

Evaluate a signal session

evaluate

Runs a stateful session's evaluation and returns its JSON result verbatim, accepting cohort-window or as-of timestamp options for advisory verdicts in demos and integration checks.

Instructions

Runs the session instance's evaluate() and returns its JSON result verbatim. args are forwarded as the evaluate options object: { cohortWindowMs } for herd-phase / activity-phase (scoping is part of the law for room streams - use 86400000), { asOfTs } for the other kinds. Omit args to evaluate with defaults. Every result is advisory (enforcement: "none").

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": {
      "sessionId": "<sessionId>"
    },
    "name": "evaluate"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoEvaluate options forwarded verbatim, e.g. { cohortWindowMs: 86400000 } or { asOfTs: 1730000000000 }.
sessionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.8.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose two valuable traits: the result is returned verbatim and is always advisory (enforcement: "none"), so there is no enforcement side effect. It is silent on whether evaluate mutates session state, whether it requires an open session, and what happens on invalid args or errors, which are material gaps for an unannotated tool.

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?

The opening sentence front-loads the core behavior and return type, followed by argument guidance and a closing caveat about advisory results. Sentences are dense but each carries information; the parenthetical "scoping is part of the law for room streams" is jargon-heavy but still earns its place as a constraint.

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

Completeness3/5

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

For a two-parameter tool with no output schema, the description covers return shape, argument conventions, and the advisory nature of results. What remains missing is the domain vocabulary it depends on (what the "kinds" are and how an agent knows which kind a session is) and any failure or precondition behavior, which an agent would need to call this correctly.

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

Parameters4/5

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

Schema coverage is only 50% and args is a free-form object, so the schema alone gives little. The description compensates well by mapping option keys to session kinds, specifying the concrete 86400000 requirement for room streams, and explaining that omitting args uses defaults. sessionId itself is not elaborated, keeping this short of a 5.

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

Purpose4/5

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

"Runs the session instance's evaluate() and returns its JSON result verbatim" names a specific verb (evaluate) and resource (a signal session identified by sessionId), and the advisory-result note clarifies the nature of the output. It does not explicitly contrast itself with siblings like observe or create_signal, so the reader must infer the boundary, but the purpose is unambiguous.

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

Usage Guidelines3/5

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

The description gives conditional guidance on arguments (cohortWindowMs for herd-phase/activity-phase, asOfTs for other kinds) and says to omit args for defaults, which is real when-to-do-what context. However, it never states when to call evaluate versus the sibling tools (observe, close_signal, etc.) or any precondition such as the session needing to be open, so usage is only implied.

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