Skip to main content
Glama
justguy

ct-mcp

by justguy

detect_drift

Detect drift in numeric sequences using CUSUM analysis. Identify when values deviate from the baseline and assess monotonic progress as improving, stalling, or declining.

Instructions

Detect drift in a numeric sequence using CUSUM (Cumulative Sum) analysis with monotonic progress tracking.

REQUIRED INPUT FORMAT — copy this structure exactly: {"sequence":[0.72, 0.74, 0.73, 0.85, 0.91, 0.93],"drift_sensitivity":0.5}

CUSUM formula: S_i = max(0, S_{i-1} + x_i - omega). Drift detected when S_i > 5 * std(sequence). Also reports monotonic progress: is_improving, is_stalling, is_declining.

Optional field: "drift_sensitivity" (number, default 0.5).

Optionally pass "context" with prior iteration data for escalation and stall detection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contextNoOptional caller-provided context for iterative enforcement. Include prior failure counts, iteration history, and previous response data to enable escalation and stall detection. Omit for one-shot usage.
sequenceYesArray of at least 3 numeric values in temporal order
drift_sensitivityNoCUSUM sensitivity parameter omega (default: 0.5)
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses the CUSUM formula (S_i = max(0, S_{i-1} + x_i - omega)), the drift threshold (S_i > 5 * std(sequence)), and the output of monotonic progress (is_improving, is_stalling, is_declining). However, it does not explicitly state the return format or side effects (e.g., read-only), though the analysis-oriented nature is clear.

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 description is well-structured: it begins with a clear purpose, then provides a required input format example, then the formula, then optional fields. It is somewhat long but every sentence contributes, and it is front-loaded with the key information.

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?

Without an output schema, the description should explain what the tool returns. It mentions 'reports monotonic progress' and lists the fields, and states when drift is detected, but it does not provide the exact output structure (e.g., a JSON object with drift_detected, is_improving, etc.). The context parameter is also complex, but the description gives only a high-level hint. Given the complexity, this is a notable gap.

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 description coverage is 100%, so the baseline is 3. The description adds a concrete example with values, notes the default for drift_sensitivity (0.5), and explains context's purpose (escalation and stall detection). However, the schema already provides detailed descriptions for all parameters, so the description adds marginal value beyond the schema.

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 starts with 'Detect drift in a numeric sequence using CUSUM (Cumulative Sum) analysis with monotonic progress tracking.' This clearly states the specific verb (detect), resource (numeric sequence), and method (CUSUM), and distinguishes it from sibling tools like validate_confidence and check_numeric_claims, which focus on validation rather than drift detection.

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?

The description provides a required input format example and explicitly notes optional fields (drift_sensitivity, context) with their defaults and purpose. It clearly implies when to use it (for drift detection in numeric sequences) but does not explicitly mention alternatives or exclusion scenarios. This is clear context without formal exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/justguy/Critical-Thinking-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server