Skip to main content
Glama
ayhammouda

python-docs-mcp-server

get_docs

Read-onlyIdempotent

Retrieve Python documentation pages or specific sections by slug and version. Use an anchor for compact section-only retrieval and paginate large pages with start_index.

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 declare readOnlyHint, idempotentHint, and non-destructive nature. Description adds behavioral traits: section retrieval is cheaper, pagination 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 concise sentences with essential information front-loaded. Every word adds value.

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?

With annotations covering safety and output schema existing, the description sufficiently covers retrieval functionality, pagination, and cost optimization.

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?

Input schema has 100% coverage with descriptions. Description reinforces anchor and start_index usage, adding context that section-only retrieval is cheaper, which adds value beyond schema.

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?

Clear action 'Retrieve a documentation page or specific section' with resource differentiation from siblings. Explicitly mentions cost-saving alternative with anchor.

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?

Provides guidance on when to use anchor for cheaper retrieval and explains pagination via start_index. Does not explicitly state when not to use this tool vs. siblings, but context implies differentiation.

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