Skip to main content
Glama
zackscriven

ghl-mcp-server-v2

by zackscriven

ghl_course_delete_lesson

DestructiveIdempotent

Deletes a lesson from a GoHighLevel course product by product ID and lesson ID; requires a location token with courses.write.

Instructions

COURSES API — the {productId} path parameter is the course (product) id. Delete Lesson Delete a lesson. Requires a Location token with courses.write. Endpoint: DELETE /courses/products/{productId}/lessons/{lessonId} (Version header: v3; source: v3/courses-v3.json) Requires a Sub-Account (location) token. OAuth scopes: courses.write

Input Schema

NameRequiredDescriptionDefault
lessonIdYesLesson id
productIdYesProduct id
locationIdYesLocation id or sub-account id is required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructive=true, idempotent=true, readOnly=false, and openWorld=true. The description adds useful operational context beyond annotations, including required OAuth scope, token type, endpoint, and version header, though it does not discuss cascading effects or behavior when the lesson is missing.

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 operation and key path-parameter clarification are front-loaded, followed by endpoint and auth details. There is some redundancy—the title repeats 'Delete Lesson' and the courses.write requirement is stated more than once—so it is not maximally concise.

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?

For a destructive DELETE tool, it covers the essential invocation details: endpoint, required location/sub-account token, OAuth scope, and path parameter meaning. It omits edge-case behavior and side effects, but the annotations already carry the destructive/idempotent safety profile.

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 100%, so the baseline is 3. The description adds meaningful clarification that {productId} is the course (product) id, resolving a potentially ambiguous parameter mapping; lessonId and locationId remain adequately covered by the schema.

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?

States a specific verb and resource ('Delete a lesson') and clarifies that {productId} is the course/product id. This distinguishes it from the create/update/get/list lesson siblings without needing to open their schemas.

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?

Provides clear usage context: it requires a Location token with courses.write and a Sub-Account (location) token, and names the exact DELETE endpoint. It does not explicitly compare against sibling course tools or state when not to use it, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools