Skip to main content
Glama
slamer59

MCP Python Refactoring

by slamer59

get_extraction_guidance

Provides step-by-step instructions for extracting a function from Python code, aiding in refactoring without automatic changes.

Instructions

Get detailed step-by-step guidance for extracting functions

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesPython file content
file_pathNoPath to Python file
function_nameNoName of function to analyze for extraction
Behavior2/5

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

With no annotations provided, the description must disclose behavioral traits. It only states the tool gives guidance, but does not clarify if it modifies anything, requires authentication, or the implications of missing parameters. It fails to inform the agent about side effects or safety.

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?

The description is a single, clear sentence that is appropriately concise. It is front-loaded and contains no superfluous information. However, it could benefit from slightly more detail without becoming verbose.

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

Completeness2/5

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

Given the complexity (3 parameters, no output schema, no annotations) and sibling tools, the description is insufficient. It doesn't mention return value format, what happens if the function is not found, or the scope of the guidance. The agent lacks critical context to use the tool effectively.

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?

The input schema has 100% description coverage for its three parameters, so the schema already explains each parameter. The description adds no extra meaning beyond what is in the schema, so baseline score of 3 is appropriate.

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 'Get detailed step-by-step guidance for extracting functions' clearly indicates the tool provides guidance on function extraction, which is a specific verb+resource. However, it could be more precise, e.g., clarifying that it analyzes Python files, and doesn't distinguish from siblings that offer similar guidance (e.g., tdd_refactoring_guidance).

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like analyze_python_file or tdd_refactoring_guidance. No when-to-use, when-not-to-use, or prerequisite information is given.

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/slamer59/mcp-python-refactoring'

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