Skip to main content
Glama
codedev-mcp

codedev-mcp

by Kranthithota

notebook_analyze

Read-onlyIdempotent

Analyze Jupyter notebooks to extract code cells, verify execution order, locate imports and functions, and assess notebook health for debugging and code review.

Instructions

Analyze Jupyter notebooks (.ipynb): extract code cells, check execution order, find imports/functions, assess notebook health.

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": {
      "action": "<action>"
    },
    "name": "notebook_analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoNotebook file path (required for analyze/code/health)
actionYesanalyze: full notebook breakdown, list: find all notebooks, code: extract code cells, health: quality assessment

Output Schema

NameRequiredDescriptionDefault
dataYes
actionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.5

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so the safety profile is covered. The description adds meaningful behavioral content beyond that (execution-order validation, health assessment), but says nothing about what a 'health' verdict contains or how partial notebooks are handled. Since an output schema exists, the return-format gap is forgivable.

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?

One front-loaded sentence with a clear resource declaration followed by a capability list; no filler. The comma-separated feature list is slightly dense but every item corresponds to real functionality.

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?

With only two fully documented parameters, rich annotations, and an output schema, the definition covers what the tool does and on what input. The main residual gap is that it never explains what 'notebook health' means or how the analyze action differs from code, but the schema enum carries that distinction.

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 description coverage is 100% and the action enum already spells out all four modes with their meanings, so the description adds no parameter-level detail beyond the schema. Baseline 3 applies; the description neither documents the file/action interaction nor clarifies which actions require the file path.

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 names a specific verb ('Analyze') and a concrete resource ('Jupyter notebooks (.ipynb)'), then enumerates the capabilities: code-cell extraction, execution-order checking, import/function discovery, and health assessment. It distinguishes itself from generic siblings like analyze_file by naming the file type, though it never explicitly contrasts itself with them.

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 only implied: the .ipynb scoping and the enumerated sub-analyses tell an agent this is the notebook-specific tool. There is no explicit statement of when to prefer it over analyze_file or code_metrics, and no prerequisites or exclusions are given.

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