Skip to main content
Glama
ayhammouda

python-docs-mcp-server

get_docs

Read-onlyIdempotent

Retrieve official Python documentation pages or specific sections by slug and version. Supports pagination and anchor-based section-only retrieval for compact answers.

Instructions

Retrieve a documentation page or specific section. Provide anchor for section-only retrieval (much cheaper). Pagination via start_index.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesPage slug (e.g. 'library/asyncio-task.html')
versionNoPython version (e.g. '3.13'). Defaults to latest.
anchorNoSection anchor for section-only retrieval
max_charsNoMaximum characters to return
start_indexNoStart position for pagination

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesDocumentation content in markdown
slugYesPage slug
titleYesPage or section title
versionYesPython version
anchorNoSection anchor if section-level
char_countYesTotal character count of full content
truncatedNoWhether content was truncated
next_start_indexNoNext start_index for pagination, if truncated
Behavior4/5

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

Annotations already indicate readOnly, non-destructive, idempotent. The description adds behavioral context: anchor retrieval is 'much cheaper', and pagination is available via start_index. No contradictions.

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 sentences, front-loaded with the main purpose, followed by two essential usage tips. Every sentence earns its place with no 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?

With an output schema present and 100% schema coverage, the description doesn't need to cover return values. It adequately explains the key parameters and usage nuances (anchor, pagination). Slight omission: no mention of version default behavior, but that is in schema.

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 coverage is 100%, so the description's value-add is limited. However, it explains the purpose of 'anchor' (section-only retrieval) and 'start_index' (pagination), which goes beyond the schema descriptions.

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 clearly states the action ('Retrieve') and the resource ('documentation page or specific section'), distinguishing it from siblings like search_docs and compare_versions. It also mentions key features: anchor for section-only retrieval and pagination.

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 guidance on using anchor for cheaper section-only retrieval and mentions pagination via start_index. However, it does not explicitly state when not to use this tool or compare it with alternatives like search_docs.

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/ayhammouda/python-docs-mcp-server'

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