Skip to main content
Glama

learn

Save a distilled rule, convention, or how-to insight as a retrievable lesson so related searches rank it above ordinary results; use for durable guidance, not one-off facts.

Instructions

Use learn to save a distilled lesson for preferential retrieval.

Use learn to save a distilled lesson that should outrank ordinary results for related queries -- a rule, a convention, a "do it this way" insight, not a one-off fact.

remember = a specific durable fact, ingest = a URL, learn = a distilled lesson that gets retrieval preference.

The daemon scrubs secrets/PII before indexing, same as remember. Lessons are capped at 500 characters -- use remember for anything longer. Returns immediately -- the daemon indexes in the background.

Args: lesson: The distilled lesson text (<= 500 chars). topic: Optional domain tag (e.g. "testing", "release-process"). name: Optional user-visible slug for later reference.

Returns: The admission status and task ID; lesson indexing runs in the background. Input refusals, daemon errors, and unexpected failures return Error: ... text. Connection failures include recovery guidance.

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

Input Schema

NameRequiredDescriptionDefault
nameNo
topicNo
lessonYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.2.0

TDQS

A4.8/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses secret/PII scrubbing by the daemon, the 500-character cap with an escalation path (remember), asynchronous return with background indexing, and error-surface behavior including 'Error: ...' refusals and recovery guidance on connection failures.

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 core purpose and a clean rule/alternatives/constraints/returns progression. Minor waste: the opening sentence is essentially repeated across the first two lines, and the Returns section partially restates what the output schema already provides.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An agent knows what to send, what gets refused, what gets scrubbed, size limits, that indexing is async, and where to go for longer content. Covering async admission and error surfaces is thorough for a three-parameter write tool, even with an output schema present.

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 0%, so the description must compensate, and it largely does: lesson is bounded (<=500 chars), topic is a domain tag with examples ('testing', 'release-process'), and name is a user-visible slug. Only the name parameter lacks a concrete example or format constraint.

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 first line states a specific verb and resource: 'save a distilled lesson for preferential retrieval'. It also defines the distinctive trait that separates it from siblings — lessons get retrieval preference over ordinary results — so an agent can tell it apart from remember and ingest immediately.

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?

Explicit when-to-use ('a rule, a convention, a do-it-this-way insight') and when-not ('not a one-off fact'), plus a direct routing triad: remember = durable fact, ingest = URL, learn = distilled lesson. Alternatives and exclusions are both named.

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