Skip to main content
Glama

Update Training Module

update_module
DestructiveIdempotent

Edit a module's title, description, questions, settings or state. Locked modules are frozen and return 423.

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": {
      "moduleId": "<moduleId>"
    },
    "name": "update_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
quizNo
stateNo
titleNo
keywordsNoPlanner tags. Editable even on a locked module: a lock freezes the content, and tagging is filing.
moduleIdYes
settingsNo
descriptionNo

Output Schema

NameRequiredDescriptionDefault
idNo
quizNo
typeNo
stateNo
titleNo
lockedNo
updatedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the mutation profile is known. The description adds genuinely new behavior — locked modules return 423 — which is valuable beyond the annotations. It does not, however, explain what the destructive hint means in practice (e.g., whether supplying quiz replaces existing questions wholesale), which is the key unanswered risk for a destructive write.

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 with zero waste: the edit surface is front-loaded and the failure condition follows immediately. Nothing is padded or restated from the title.

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

Completeness3/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 lock/423 behavior is a useful addition. But for a seven-parameter destructive mutation with 14% schema coverage, the description leaves out whether omitted fields are preserved, how the nested quiz/settings objects are merged, and the keywords-under-lock exception.

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 description coverage is only 14%, so the description must carry meaning and it largely does: it maps five of the seven parameters (title, description, quiz-as-'questions', settings, state) to editable concepts. The 'questions'/'quiz' naming mismatch and the omission of 'keywords' (whose editability under lock is only documented in the schema) keep it from a 5.

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 opens with a specific verb and resource ('Edit a module's ...') and enumerates the editable surfaces (title, description, questions, settings, state), which distinguishes it from siblings like get_module, delete_module, or lock_module. It loses a point because 'questions' does not match the schema's actual field name 'quiz', leaving a small ambiguity about what is being edited.

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?

Usage is implied by the field list and by the precondition that locked modules return 423, which tells the agent this call will fail on frozen content. However, there is no explicit statement of when to choose this over siblings such as update_course, lock_module, or translate_module, and no guidance on partial updates versus full replacement.

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