Skip to main content
Glama

Undo a cancelled lesson

restore_lesson

Put a cancelled lesson back on (the cancellation's id from list_class_lessons).

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": {
      "id": "<id>"
    },
    "name": "restore_lesson"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe cancellation's id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description usefully clarifies that this reverses a cancellation rather than creating a new lesson, which is behavioral context beyond the annotations. It says nothing about side effects such as re-occupying a time slot, conflicts with other bookings, or whether the restore is reversible.

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?

One short sentence with the action front-loaded and the id source tucked into a parenthetical. No filler, nothing to trim.

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?

For a one-parameter tool with annotations present, the essentials are covered. However, there is no output schema and the description doesn't indicate what the call returns or how it behaves when the original time slot is no longer free, leaving the agent without a way to interpret results.

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 coverage is 100% and the single parameter's schema text ('The cancellation's id.') already carries the key disambiguation; the description's parenthetical largely restates it. The only added signal is that this id should be sourced from list_class_lessons, which is useful but marginal.

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?

States a specific verb ('put back on') and resource ('a cancelled lesson'), which is precise enough that an agent can immediately see it's the inverse of cancel_lesson among the siblings. It doesn't explicitly name cancel_lesson as its counterpart, but the title plus description make the operation unambiguous.

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?

The parenthetical '(the cancellation's id from list_class_lessons)' gives a concrete prerequisite flow: call list_class_lessons first to obtain the id. That's real routing value. It stops short of stating exclusions or failure conditions (e.g. what happens if the lesson slot has since been taken).

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