Skip to main content
Glama

get_notebook_content

Fetch notebook explanations and code from GitHub to help students understand exercises and answer code-specific questions.

Instructions

Fetch the actual content of a course notebook from GitHub.

Returns markdown explanations and (optionally) code cells. Use this when a student wants to understand what a notebook covers, needs help with an exercise, or asks about specific code. kind: 'intro' | 'practical' | 'solution' | 'bonus' | 'homework' (default: practical) include_code: set False for explanations only (default: True)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindNopractical
module_idYes
include_codeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries full burden. It describes the fetch operation and output, but does not disclose side effects, authentication needs, or error handling, leaving some behavioral aspects implicit.

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?

The description is highly concise: two sentences for purpose and usage, then two lines for parameter explanations. It is front-loaded and every sentence serves a purpose without redundancy.

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 tool has an output schema, so return details are covered. The description provides usage context and parameter details, but could further specify the role of module_id or mention that content is fetched from GitHub.

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 0%, but the description adds meaning by explaining the 'kind' enum values and 'include_code' boolean. However, the required 'module_id' parameter is left undescribed, missing an opportunity for full clarity.

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 begins with 'Fetch the actual content of a course notebook from GitHub,' clearly stating the verb and resource. It distinguishes from siblings like get_notebook_url and get_notebook_exercises by specifying it returns markdown explanations and code cells.

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 description provides explicit use cases: 'when a student wants to understand what a notebook covers, needs help with an exercise, or asks about specific code.' However, it does not mention when not to use it or explicitly name sibling tools for exclusion.

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/dataflowr/dataflowr-tools'

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