Skip to main content
Glama
@dwlf/mcp-server

@dwlf/mcp-server

by andywilliams

dwlf_get_evaluation_status

Get the status and result summary of a custom event or strategy evaluation by requestId, and poll it until the evaluation completes.

Instructions

Get the status and result summary of a specific evaluation by requestId. Poll this after calling dwlf_evaluate_custom_event or dwlf_evaluate_strategy until status === "completed". ⚠️ IMPORTANT — summary.totalItems / summary.processedItems count the eval-JOB items (one per strategy or one per custom event), NOT the per-symbol fan-out inside the job. A strategy eval across 37 symbols will show totalItems: 1, processedItems: 1 when done — that just means "the strategy job finished," NOT "37 symbols were processed." For the per-symbol count: the request body itself carries symbols: [...] (or empty = all activated). When the symbols array is present this tool surfaces symbolsRequested: <count> next to summary so you can see both numbers; otherwise inspect the request shape directly. When status is "completed", query the fires it produced via dwlf_get_events(type: "custom_event") or dwlf_get_recent_signals (for strategies) — if you see fewer fires than expected across many symbols, that confirms the eval reached all of them (worker would not have written status=completed without finishing the loop).

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": {
      "requestId": "<requestId>"
    },
    "name": "dwlf_get_evaluation_status"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestIdYesEvaluation request ID returned by dwlf_evaluate_custom_event / dwlf_evaluate_strategy

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.77.0

TDQS

A4.4/5.0
Behavior5/5

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

No annotations are supplied, so the description carries the full burden and does so with a non-obvious semantic warning: summary.totalItems/processedItems count eval-JOB items, not per-symbol fan-out, with a concrete 37-symbol example. That is exactly the kind of detail an agent could not infer from schema or annotations.

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

Conciseness3/5

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

The purpose and polling condition are correctly front-loaded, but the second half is dense and rambling, and the closing sentence's logic ('if you see fewer fires than expected ... that confirms the eval reached all of them') is convoluted enough to mislead rather than clarify. Similarly, the confusing witness details distract from the key gotcha.

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

Completeness4/5

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

Strong for a one-parameter tool with no output schema: it explains the shape of the returned summary and the symbolsRequested field. It never states what other status values exist (pending/failed/expired), how long requestIds persist, or what happens with an unknown ID, which are the remaining gaps.

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

Parameters3/5

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

Schema coverage is 100% and the single requestId parameter is already described as the ID returned by the two evaluate tools; the prose mostly repeats that. The mention of a `symbols` array refers to the request body, not this tool's input, so it adds no new input semantics here.

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?

States a specific verb and resource ('Get the status and result summary of a specific evaluation by requestId'), and the siblings it pairs with (dwlf_evaluate_custom_event / dwlf_evaluate_strategy) are named, so an agent can distinguish this poller from the evaluation starters and from the downstream fire queries.

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

Usage Guidelines5/5

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

Explicit lifecycle guidance: call the evaluate tools first, then poll this until status === 'completed', then switch to dwlf_get_events(type: "custom_event") or dwlf_get_recent_signals for results. It names the exact trigger, the exit condition, and the successor tools.

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

Deploy Server

Other Tools