Skip to main content
Glama

get_lesson_lab

Retrieve a lesson's Jupyter notebook and code from DeepLearning.AI courses. Get clean Markdown with explanations and code blocks, or raw .ipynb JSON.

Instructions

Get the Jupyter Lab notebook and code for a lesson. Returns clean interleaved Markdown (explanations + code blocks) by default, or raw .ipynb JSON if raw_json=True.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
raw_jsonNo
course_slugYes
lesson_slug_or_indexYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Because no annotations are provided, the description carries the full burden of behavioral disclosure, and it does well by explaining the default return format (clean interleaved Markdown) and the alternative (raw .ipynb JSON via raw_json=True). It does not discuss prerequisites or side effects, but 'Get' makes the read-only nature clear enough.

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 no filler: the first states the purpose, the second explains the output variants and the controlling flag. Every phrase adds value and the key detail (raw_json behavior) is front-loaded.

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?

The description together with an provided output schema covers the main return behavior (interleaved Markdown vs raw JSON). It lacks guidance on option disambiguation or prerequisites (e.g., whether need to have the course synced, or authentication), but for a simple read-oriented tool this is a minor gap.

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?

The schema descriptions provide 0% coverage, so the description must explain parameters, but it only explains raw_json and its default. course_slug and lesson_slug_or_index are reasonably self-explanatory from their names, yet the description does not clarify what an 'index' means or expected string formats, so the compensation is partial.

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?

The description uses a specific verb and resource—'Get the Jupyter Lab notebook and code for a lesson'—immediately making clear what the tool retrieves. It distinguishes itself from siblings like get_lesson_transcript or get_course_structure by identifying the lesson's code/notebook as the object.

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?

The description implies when to use it (whenever a lesson's notebook/code is needed), but it does not explicitly mention alternatives or exclusions. It does not state 'use this instead of get_lesson_transcript when code is needed,' so usage guidance is left largely inferred.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/WilliamAxelC/deeplearning.ai-MCP-Server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server