Skip to main content
Glama
l0kifs

project-explorer-mcp

by l0kifs

python_outline

Extract a structural outline from Python files—imports, classes, functions, docstrings—to simplify code review, navigation, and documentation.

Instructions

Returns an outline for each Python file: imports, classes, functions, docstrings.

Agent usage guidelines: - Use this tool when you need to understand the structure of Python code files, such as for code review, navigation, or documentation generation. - Use when you need to extract or display the list of imports, classes, functions, and their docstrings from Python files. - Do not use for non-Python files or for reading file contents in detail.

Path requirements: - Paths must not contain URL-encoding (e.g., '%'). - Paths must be absolute. - Paths must exist on disk. Example paths: - Windows: "C:\Users\User\project\main.py" - Linux: "/home/user/project/main.py"

Args: paths (list[str]): List of absolute paths to Python files. output_format (str | None): Output format ('json' or 'markdown'). Defaults to server setting (markdown by default). Returns: dict | str: Outline for each file in the requested format.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathsYes
output_formatNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the read-only nature (returns an outline), the output format options, path constraints, and that it does not read file contents in detail. However, it does not describe error behavior for invalid paths, though it states paths must exist.

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 well-structured with clear sections (Agent usage guidelines, Path requirements, Args, Returns). It is front-loaded with the main purpose and every sentence adds value, including examples and constraints. No fluff or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with 2 parameters, no annotations, and an output schema, the description is complete. It covers purpose, usage context, parameter semantics, path prerequisites, and return format. The presence of an output schema reduces the need to explain return structure, and the description covers all other aspects adequately.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description compensates fully. It explains both parameters: 'paths' as a list of absolute paths, and 'output_format' with allowed values ('json' or 'markdown') and default behavior. It even provides example paths for Windows and Linux.

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 states 'Returns an outline for each Python file: imports, classes, functions, docstrings' with a specific verb and resource. It clearly distinguishes itself from siblings like dir_tree by focusing on Python file structure rather than directory trees.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit guidance is provided: 'Use this tool when you need to understand the structure of Python code files' and 'Do not use for non-Python files or for reading file contents in detail.' Path requirements and examples are also given, fully explaining when and how to use the tool.

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/l0kifs/project-explorer-mcp'

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