Skip to main content
Glama

nexo_learning_apply_retroactively

Scan recent decisions for conflicts with a learning's prevention rule and create deterministic followups to retroactively apply the rule, correcting past mismatches.

Instructions

Scan recent decisions and surface those that conflict with a learning's prevention rule.

Closes Fase 2 item 3 of NEXO-AUDIT-2026-04-11. Use this when you add a new rule and want to retroactively check whether past decisions still hold. Creates deterministic NF-RETRO-L-D followups so the helper is idempotent across reruns. nexo_learning_add invokes this automatically when the new learning has a prevention field — call this tool manually only when you want to re-scan with a longer window or a different threshold.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
learning_idYesID of the learning to apply.
lookback_daysNoHow many days back to scan decisions (default 14).
max_matchesNoCap on followups created per call (default 5).
min_scoreNoMatch threshold in [0.0, 1.0] (default 0.4).
dry_runNoIf True, scores matches but does not create followups.
Behavior4/5

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

Describes creation of deterministic followups and idempotency, plus dry_run behavior. However, lacks explicit statement about mutability or required permissions, which is partially compensated by no annotations.

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

Conciseness5/5

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

Two well-structured paragraphs, front-loaded with main purpose. No wasted words; every sentence adds value.

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?

Covers usage, parameters, and behavior. Without output schema, could be more explicit about return value (e.g., list of conflicts). But overall complete for practical use.

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?

All parameters are described in schema (100% coverage). Description adds extra context like followup naming convention and idempotency, going beyond schema definitions.

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?

Description clearly states the tool scans recent decisions for conflicts with a learning's prevention rule, using specific verbs 'scan' and 'surface'. It distinguishes from sibling nexo_learning_add, which invokes this automatically.

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?

Explicitly states when to use manually (longer window/different threshold) vs. automatic invocation by nexo_learning_add. Provides clear context and alternative tool.

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/wazionapps/nexo'

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