Skip to main content
Glama

nexo_learning_apply_retroactively

Scan past decisions to identify conflicts with a learning's prevention rule, enabling retroactive validation of new rules.

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?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It discloses that the tool 'creates deterministic NF-RETRO-L<learning>-D<decision> followups so the helper is idempotent across reruns' and explains the dry_run parameter behavior. It does not mention permissions, side effects, or safety, but the core behavioral traits are covered.

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?

The description is concise and well-structured: a single purpose sentence, followed by a brief implementation detail (Fase 2 item 3), usage guidance, and behavioral note on idempotency. Every sentence adds value, and the total is under four lines. No fluff or repetition.

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?

The tool has 5 parameters and no output schema. The description covers the main intent, usage scenario, and key behavioral traits (idempotency, followup naming). It does not specify the return format (e.g., count of matches or followups created), which would be helpful but is not critical. Overall, it provides sufficient context for an agent to use the tool correctly.

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 does not add significant meaning beyond the schema for individual parameters. It provides overall context but lacks additional detail for each parameter. The schema already describes each parameter with clear names and defaults, so the description's contribution is minimal.

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 clearly states the tool's purpose: 'Scan recent decisions and surface those that conflict with a learning's prevention rule.' It uses a specific verb (scan, surface) and resource (decisions related to a learning's prevention rule). It differentiates from sibling tool nexo_learning_add by noting that the latter automatically invokes this tool when a prevention field is present.

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?

The description explicitly states when to use: 'Use this when you add a new rule and want to retroactively check whether past decisions still hold.' It also explains when not to use manually: '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.' This provides clear guidance on alternatives.

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