Skip to main content
Glama

Generate lesson

generate_lesson

Generate a structured AI lesson (summary, key takeaways, sections) from a completed transcription. Requires the episode to have transcription_status "completed". Requires an active subscription or available credits; no credit is deducted. Subsequent calls for the same episode return the cached lesson.

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": {
      "episode_id": "<episode_id>"
    },
    "name": "generate_lesson"
  }
}

Input Schema

NameRequiredDescriptionDefault
episode_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only supply readOnlyHint=false and destructiveHint=false; the description adds the substantive behavior an agent actually needs — credit accounting ('no credit is deducted'), idempotent caching ('subsequent calls for the same episode return the cached lesson'), and upstream state requirements. It does not explain what happens if a lesson already exists but was modified, or whether generation is asynchronous, which keeps it at 4.

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?

Four short sentences, each carrying distinct information: what is produced, the state prerequisite, the billing prerequisite, and the caching behavior. Nothing is repeated and the core purpose is front-loaded in the first sentence.

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?

With no output schema, the description responsibly sketches the return shape (summary, key takeaways, sections) and covers prerequisites and caching. For a non-destructive but still state-changing generation call it is nearly complete, missing only latency/async behavior and whether the generated lesson is persisted and retrievable via sibling tools.

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?

There is a single parameter with 0% schema description coverage, so the schema alone only reveals a UUID-typed episode_id. The description adds meaning by tying the parameter to an episode whose transcription must be 'completed' and by implying the episode is the cache key. It does not state format expectations or whether the ID is validated against episode ownership, so the compensation is partial.

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 names a specific action and output: 'Generate a structured AI lesson (summary, key takeaways, sections) from a completed transcription.' The parenthetical output breakdown makes the result concrete and implicitly distinguishes it from retrieval siblings like get_lesson_content and list_lessons. It stops short of naming any sibling explicitly, so it lands at 4 rather than 5.

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?

Preconditions are stated plainly: the episode must have transcription_status 'completed', and the caller needs an active subscription or credits. That tells an agent when the call will succeed. There is no guidance on when to prefer an alternative (e.g., fetching an existing lesson instead of regenerating), so it is not a 5.

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.