Skip to main content
Glama

lesson_save

Save a one-line lesson about a specific tool so future agents read it in that tool's description, preventing repeated failures and preserving site-specific guidance.

Instructions

Save a one-line lesson about a specific tool, so every future agent reads it in that tool's own description without having to look it up. Use it the moment you work out WHY something failed or what this site needs doing differently — e.g. topic="seo_meta", lesson="Rank Math is the SEO plugin here, not Yoast." The topic is normally a tool name; use "general" for something true of the whole site. Max 300 characters, plain text, no markup. The owner can read, edit and delete every lesson, and it is recorded as having come from the agent.

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": {
      "topic": "<topic>",
      "lesson": "<lesson>"
    },
    "name": "lesson_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
topicYesA tool name, or "general" for the whole site.
lessonYesOne sentence, 300 characters or fewer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.2

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses where the lesson surfaces (the target tool's own description), storage constraints (max 300 characters, plain text, no markup), ownership (the owner can read, edit and delete every lesson) and attribution (recorded as coming from the agent). What it does not disclose is the conflict behavior — whether saving a second lesson for the same topic replaces, appends to, or errors against the existing one.

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?

Front-loaded with the purpose, then the trigger, then an example, then the constraints — a sensible priority order. Slight redundancy in repeating the 300-character limit already present in the schema, but the payload is otherwise dense and free of filler.

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?

For a two-parameter, annotation-free write tool with no output schema, this covers what, when, limits, visibility and attribution. The single material omission is duplicate-handling semantics for an existing topic, which matters because the lesson is injected into another tool's description and a silent overwrite would be destructive.

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 100%, so the baseline is 3; the description earns above that by adding the convention that topic is "normally a tool name" with "general" as the site-wide fallback, and by restating the plain-text/no-markup constraint that the schema omits. The worked example (topic="seo_meta", lesson="Rank Math is the SEO plugin here, not Yoast.") makes the expected granularity concrete in a way the schema does not.

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 ("Save a one-line lesson about a specific tool") plus the downstream effect ("every future agent reads it in that tool's own description"). The phrase "without having to look it up" implicitly distinguishes this write tool from the retrieval-oriented sibling lesson_list.

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?

Gives an explicit trigger condition: "Use it the moment you work out WHY something failed or what this site needs doing differently." That is clear positive guidance. It stops short of naming alternatives (lesson_list, memory_save, skill_save, snippet_save) or stating when not to use it, leaving the agent to infer the boundary between a lesson and a memory/skill/snippet.

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