Skip to main content
Glama

fenbs_apply_lesson

Destructive

Apply a lesson. asNote turns it into an AI context note (category "Lessons learned") -- for a fact or a trap. asRule proposes a rule (a decision with standingRule, status proposed), which binds only once a person decides it. Either or both. The lesson is then marked applied and links to what it became. Needs permission to change tasks.

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": {
      "ref": "<ref>"
    },
    "name": "fenbs_apply_lesson"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYes
asNoteNotrue: add an AI context note from it.
asRuleNotrue: propose a rule from it, for a person to decide.
noteBodyNoThe note's words. Left out: built from the lesson.
ruleTextNoThe rule as it should read. Left out: built from the lesson.
noteCategoryNoDefaults to "Lessons learned".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (destructiveHint=true, readOnlyHint=false), the description discloses that the lesson is marked applied and links to the created artifact, that a proposed rule 'binds only once a person decides it', and that permission to change tasks is required. It does not cover what happens on a repeat call, which matters given idempotentHint=false.

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?

Purpose comes first, parameter semantics next, side effects and permission requirement last — a sensible front-loaded order with little wasted text. The fragment 'Either or both.' is terse but functional.

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 six-parameter mutating tool with no output schema, the description covers the two mode flags and the permission requirement well but says nothing about the response shape, error behavior, or what 'marked applied' does to an already-applied lesson.

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 already 83%, and the description still adds real meaning: asNote creates a note with category 'Lessons learned', asRule creates a decision with standingRule and status 'proposed'. The default-fill behavior when noteBody/ruleText are omitted is also hinted at ('built from the lesson'), reinforcing the schema.

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?

The description states a specific verb and resource ('Apply a lesson') and describes the resulting artifacts: an AI context note or a proposed rule. It is clear what the tool does, though it never names a sibling alternative to distinguish itself from fenbs_add_lesson or fenbs_update_lesson.

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?

'asNote ... for a fact or a trap' and 'Either or both' give usable guidance on parameter combinations, and 'Needs permission to change tasks' states a prerequisite. It does not say when to choose apply_lesson over update_lesson or add_lesson, leaving the main routing decision to inference.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources