Skip to main content
Glama

Generate Training Module

generate_module
Destructive

Write a quiz from a video or a knowledge-base article. If that source already has a module, this REPLACES its questions rather than creating a second one — confirm with the user before regenerating over existing questions.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "generate_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
videoIdNo
articleIdNoKnowledge-base article id
difficultyNo
questionCountNo

Output Schema

NameRequiredDescriptionDefault
stateNo
titleNo
moduleIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=false; the description goes beyond them by explaining exactly what is destroyed (the existing module's questions are replaced, not duplicated) and by requiring user confirmation before proceeding. That is precisely the behavioral context a destructive tool needs; it stops short of cost, latency, or auth details.

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?

Two tight sentences: the primary action first, then the destructive edge case and the confirmation requirement. No filler and nothing buried.

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 an output schema present, return values need not be explained, and the critical destructive behavior is disclosed. The gap is parameter requirements: a caller could invoke it with neither videoId nor articleId and the description gives no signal, and defaults for questionCount are unaddressed.

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?

Schema description coverage is only 25% (only articleId is annotated), so the description carries weight here. It does add real meaning by framing videoId and articleId as alternative sources, but it never says at least one is required (the schema requires none) and says nothing about difficulty or questionCount. Partial compensation only.

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 uses a specific verb+resource ("Write a quiz") and names its two input sources, a video or a knowledge-base article. It's clear what the tool produces, though the quiz-vs-module terminology is a bit loose (it generates questions inside a 'module'), and it does not differentiate itself from nearby siblings like generate_course_module or build_course_module.

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?

It gives one concrete conditional: if the source already has a module, this replaces questions, so confirm with the user first. That is useful pre-call guidance, but there is no guidance on choosing between this and the similarly named course-module generators, and no stated prerequisites (e.g., that a source id is needed).

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