mcp-tool-docstring

Standardize Python docstrings for system MCP tools.

19|14|Updated Feb 4, 2026
One-click install
npx skills add https://github.com/X-School-Academy/skill-pilot --skill mcp-tool-docstring
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: mcp-tool-docstring
Source: https://github.com/X-School-Academy/skill-pilot/tree/main/core/skills/system/mcp-tool-docstring
Command: npx skills add https://github.com/X-School-Academy/skill-pilot --skill mcp-tool-docstring

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill ensures that Python docstrings for system MCP tools (@mcp.tool()) adhere to a specific, standardized format, which is crucial for seamless integration and accurate mapping to agent skill descriptions and body content when synced via the mcp-to-skills pipeline.

Core Features & Use Cases

  • Docstring Formatting: Guides the creation of Python docstrings for @mcp.tool() functions.
  • Sync Pipeline Compatibility: Ensures docstrings are correctly parsed by the mcp-to-skills sync process, where the first line becomes the skill description and the rest populates the skill body.
  • Use Case: When adding a new tool to a system MCP server, use this Skill to write its docstring, guaranteeing it will be correctly interpreted and displayed by the Skill Pilot agent interface.

Quick Start

Write a docstring for a new system MCP tool following the provided structure and validation rules.

Frequently Asked Questions about mcp-tool-docstring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I format Python docstrings for MCP tools to sync with agent skills?▼

To format Python docstrings for MCP tools, include a one-line description, arguments, return values, and usage notes. This standardized format ensures the mcp-to-skills sync pipeline correctly maps the first line to the skill description and the rest to the body content.

Why does my MCP tool docstring not show up correctly in the Skill Pilot agent interface?▼

Your MCP tool docstring may not display correctly if it lacks the required multi-section format. The sync pipeline parses the first line as the skill description and remaining sections as body content, so missing arguments or return value sections cause incomplete agent interface mapping.

What is the mcp-to-skills sync pipeline and when do I need it?▼

The mcp-to-skills sync pipeline is a process that maps Python docstrings from @mcp.tool() functions to agent skill metadata. You need it when adding or updating system MCP tools to ensure they are correctly interpreted and displayed by the Skill Pilot agent interface.

Do I need any dependencies to standardize MCP tool docstrings for the sync pipeline?▼

No external dependencies are required to standardize MCP tool docstrings for the sync pipeline. You only need to follow the specified multi-section docstring format with a one-line description, arguments, return values, and usage notes when writing or updating your Python @mcp.tool() functions.

What sections are required in a docstring for an @mcp.tool() function?▼

A docstring for an @mcp.tool() function requires a one-line description, an arguments section, a return values section, and usage notes. These sections ensure the mcp-to-skills sync pipeline accurately maps the content to the agent skill description and body.

Can I use custom docstring formats for MCP tools or must I follow the standardized structure?▼

You must follow the standardized multi-section docstring structure for MCP tools. Custom formats risk breaking the mcp-to-skills sync pipeline, which expects a one-line description, arguments, return values, and usage notes to correctly generate agent skill metadata.