Skip to main content
Glama

lesson_append

Append or overwrite a lesson section in the shared lessons file using a stable slug from the title. Accepts body, optional summary, and source tag for provenance.

Instructions

Materialize a class-level lesson into ~/.threadkeeper/lessons.md.

title is sluggified to a stable key — repeated calls with the same title overwrite the existing section (idempotent).

body is markdown; goes verbatim into the section body.

summary is an optional one-liner rendered as a blockquote right after the header. Use when the body is long and a TL;DR helps the next agent decide whether to read further.

source is a provenance tag — typically a thread id ("Tabc123") when written by review_thread, or "shadow" when written by the shadow_review observer. Empty is fine.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleYes
bodyYes
summaryNo
sourceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
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. It discloses file path, idempotent overwrite, markdown body, optional summary as blockquote, and provenance tag. This is thorough for a write operation, though it omits permissions or side effects beyond overwriting.

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?

The description is well-structured and front-loaded with the primary action. However, it is slightly verbose with line breaks that could be more concise or formatted as bullet points. Every sentence adds value, but there is room for tighter phrasing.

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?

Given the existence of an output schema (not shown), the description need not explain return values. It covers the core behaviors (overwrite, markdown, optional summary, provenance) but could mention potential errors or the fact that it overwrites previous lessons with the same title. Overall, it is sufficiently complete for a straightforward mutation tool.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, making the description critical. It adds detailed meaning for all four parameters: title is sluggified to a stable key, body is verbatim markdown, summary is an optional blockquote for TL;DR, and source is a provenance tag. This fully compensates for the missing schema descriptions.

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 action: 'Materialize a class-level lesson into ~/.threadkeeper/lessons.md.' It specifies the resource (lessons), the destination file, and the idempotent overwrite behavior. This distinguishes it from siblings like lesson_get, lesson_list, lesson_remove.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description does not explicitly state when to use this tool versus alternatives. It only hints at contexts (review_thread, shadow_review observer) but provides no direct guidance on when to choose lesson_append over other lesson-related tools or when not to use it.

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/po4erk91/thread-keeper'

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