Skip to main content
Glama
yriveiro
by yriveiro

python-mcp

A Model Context Protocol (MCP) server for Python code-quality checks with token-efficient output.

Overview

python-mcp gives LLMs direct access to linting, formatting, type checking, security, dependency, test-collection, dead-code, and spelling checks. Tool output is parsed structurally and reduced to compact diagnostics before it reaches the model.

Related MCP server: mcp-server-analyzer

Features

  • ruff_check - Lint files, glob patterns, or everything; changed_only checks just the files touched in git

  • ruff_format - Verify formatting without modifying files

  • ty_check - Type-check with concise output and an optional error/warning severity filter

  • vulture_check - Find unused code and other dead-code candidates

  • bandit_check - Find common Python security problems

  • deptry_check - Find missing, unused, obsolete, and misplaced dependencies

  • pytest_collect - Verify that tests can be collected without executing them

  • codespell_check - Find likely spelling mistakes in source and documentation

  • pydoclint_check - Check docstrings against function signatures

  • Structured parsing - ruff JSON and ty GitLab code-quality output avoid fragile parsing of human-readable text

  • Adaptive aggregation - large result sets include rule/file rollups before flat diagnostics, reducing repeated context

  • changed_only - Check only staged, unstaged, and untracked Python files (*.py, *.pyi)

How It Works

python-mcp implements the Model Context Protocol to expose nine read-only tools. All tools return a CheckResult with token-efficient output text and the underlying exit_code.

Tools

  • ruff_check(paths?, changed_only?) - Run ruff linting

  • ruff_format(paths?, changed_only?) - Run ruff format --check

  • ty_check(paths?, level?, changed_only?) - Run ty check --output-format concise, filtering by all / error / warning

  • vulture_check(paths?, changed_only?) - Run vulture dead-code analysis

  • bandit_check(paths?, changed_only?) - Run Bandit security analysis

  • deptry_check(paths?, changed_only?) - Run deptry dependency analysis

  • pytest_collect(paths?, changed_only?) - Collect tests without running them

  • codespell_check(paths?, changed_only?) - Run codespell spelling analysis

  • pydoclint_check(paths?, changed_only?) - Run pydoclint docstring analysis

Output Processing

Command

Input format

Output

ruff check

JSON

Compact grouped output; large runs get rule/file rollups

ruff format --check

Concise text

One line per unformatted file

ty check

GitLab JSON

Compact grouped output; severity filter applied

vulture

Concise text

Compact grouped dead-code findings

bandit

JSON

Compact grouped security findings

deptry

ANSI-free text

Compact grouped dependency findings

pytest --collect-only

Concise text

Collected test IDs or collection errors

codespell

Concise text

Compact spelling findings with suggestions

pydoclint

Concise text

Compact docstring-signature violations

Small and medium result sets use the plugin-compatible grouped layout because it has lower overhead. Large result sets switch to an rtk-like layout with Top rules, Top files, and flat diagnostic lines. This addresses rtk's large-result advantage without adding an external runtime dependency.

Usage

To start the server:

uvx python-mcp

Or from a checkout:

uv run python-mcp

Configure an MCP client to launch the server in the project directory to check, e.g. for opencode:

{
  "mcp": {
    "python-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": ["python-mcp"]
    }
  }
}

The server checks the project in its working directory. To target another directory, set PYTHON_MCP_PROJECT_DIR.

Agent Skill

Install the bundled python-mcp skill in a project when the agent client discovers skills from .agents/skills:

uvx python-mcp skill install python-mcp --target .

The skill directs agents to the server's nine read-only tools: ruff_check, ruff_format, ty_check, vulture_check, bandit_check, deptry_check, pytest_collect, codespell_check, and pydoclint_check. It does not describe uv package or environment management.

Configuration

Environment variables, all optional:

  • PYTHON_MCP_LOG_LEVEL - Logging level, default INFO

  • PYTHON_MCP_PROJECT_DIR - Project directory to check, default: server working directory

  • PYTHON_MCP_COMMAND_PREFIX - Prefix for native ruff/ty/vulture invocations, default uv run; set to empty to use binaries from PATH

  • PYTHON_MCP_COMMAND_TIMEOUT - Optional command timeout in seconds

Development

This project is built with FastMCP and uv.

uv sync --extra dev
uv run ruff check
uv run ty check
uv run pytest

Available Tools

9 tools
bandit_checkB
Read-onlyIdempotent

Scan Python code for common security problems with Bandit.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNo
changed_onlyNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
issuesNo
outputYes
fixableNo
warningsNo
exit_codeYes
saved_tokensNo
savings_percentNo

TDQS

B3.1/5.0
Behavior3/5

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

The annotations already declare readOnlyHint and idempotentHint, covering the safety profile. The description adds the fact that Bandit is the underlying scanner but does not disclose additional behavioral traits such as severity reporting, exit behavior, or how results are returned. No contradiction with annotations exists.

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 a single sentence of eleven words, with no filler or redundant content. It is front-loaded with the key action 'Scan' and remains appropriately sized for the tool's simplicity.

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?

The output schema and annotations cover return values and safety, which helps, but the description omits essential parameter semantics such as the meaning of changed_only and the default behavior when paths is null. An agent cannot confidently choose and populate the arguments without additional inference.

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

Parameters1/5

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

Schema description coverage is 0%, and the description never mentions either parameter, paths or changed_only. The description must compensate for the lack of schema documentation but entirely fails to explain what these parameters mean or how they affect the scan.

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 uses the specific verb 'Scan' with the resource 'Python code' and the outcome 'common security problems', and names Bandit, making the core function clear. However, it does not explicitly differentiate this from sibling tools like ruff_check or ty_check, so it falls short of a 5.

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

Usage Guidelines3/5

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

The phrase 'common security problems' implies the scanning use case and suggests this tool is appropriate when a Python security review is needed. There is no explicit statement of when to prefer Bandit over alternatives or when not to use it, so the guidance is only implied.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

codespell_checkA
Read-onlyIdempotent

Find likely spelling mistakes in project text and source files.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNo
changed_onlyNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
issuesNo
outputYes
fixableNo
warningsNo
exit_codeYes
saved_tokensNo
savings_percentNo

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, covering the safety profile. The description adds only the word 'likely', which hints that results are heuristic suggestions rather than definitive errors. It provides no additional behavioral detail such as scope limitations or what happens with changed_only, but it does not contradict annotations.

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?

A single, front-loaded sentence with no filler. Every word contributes to conveying the tool's purpose, and the description is appropriately sized for a simple read-only checker.

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

Completeness3/5

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

The tool is simple, has an output schema, and has safety covered by annotations, so the description does not need to explain return values or mutation risks. However, it leaves the changed_only parameter and the exact meaning of 'project text and source files' undefined, which is a clear but not severe gap.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the burden of explaining parameters, but it mentions neither 'paths' nor 'changed_only'. The phrase 'project text and source files' gives some loose context for the default path scope, but it does not clarify how to restrict paths or what changed_only means.

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 uses a specific verb ('Find') and resource ('likely spelling mistakes in project text and source files'), making the tool's function immediately clear. It is naturally differentiated from all sibling tools, which cover linting, formatting, type checking, security, dependencies, and tests rather than spelling.

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

Usage Guidelines3/5

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

Usage is implied rather than stated explicitly: an agent can infer to use this tool when spelling mistakes are the concern, especially since no sibling tool covers spelling. However, the description gives no explicit when-to-use guidance, exclusions, or alternatives, so it stops at the implied level.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

deptry_checkB
Read-onlyIdempotent

Find missing, unused, obsolete, and misplaced dependencies.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNo
changed_onlyNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
issuesNo
outputYes
fixableNo
warningsNo
exit_codeYes
saved_tokensNo
savings_percentNo

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, covering the safety profile. The description adds useful detail about the kinds of dependency problems detected, but it does not disclose operational behavior such as whether it scans manifests, lockfiles, or the current environment. Given the strong annotations, this is acceptable but not exceptional.

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 a single front-loaded sentence with no filler, tautology, or repetition of schema or annotation details. Every word adds meaning.

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?

The tool's core purpose is clear and the output schema plus read-only annotations help, but the complete opacity of the parameters is a significant gap. An agent can call it with defaults confidently, but cannot correctly use path scoping or the changed_only option without guessing.

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

Parameters1/5

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

Schema description coverage is 0% for the two parameters, and the description provides no explanation of 'paths' or 'changed_only'. An agent has no basis for understanding what values to pass, what paths should point to, or how the 'changed_only' flag alters behavior.

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 uses a specific verb ('Find') and identifies four distinct dependency issue categories (missing, unused, obsolete, misplaced), making the tool's purpose immediately clear. It is easily distinguished from sibling tools like ruff_check, ty_check, and bandit_check, which cover different domains.

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

Usage Guidelines3/5

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

The description implies the tool is for scanning dependencies for the listed issue types, but it provides no explicit guidance on when to prefer it over alternatives or when not to use it. There is no mention of how it relates to sibling tools such as ruff_check or vulture_check.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

pydoclint_checkC
Read-onlyIdempotent

Check docstrings against function signatures with pydoclint.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNo
changed_onlyNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
issuesNo
outputYes
fixableNo
warningsNo
exit_codeYes
saved_tokensNo
savings_percentNo

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the read-only nature is covered. However, the description adds no behavioral context beyond the purpose—no mention of output format, what happens when checks fail, or any configuration effects. It relies entirely on annotations, which cover safety but not operational details.

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?

A single sentence that gets straight to the point. No fluff, no repetition, and the purpose is front-loaded. Perfectly sized for a simple tool.

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?

Although an output schema exists, the description omits critical context such as when to use the tool, what the returned results look like, and how parameters affect behavior. The tool is straightforward, but the lack of usage guidance and parameter semantics makes it incomplete for an agent to decide and invoke correctly.

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

Parameters1/5

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

Schema description coverage is 0%, and the description provides no explanation of the 'paths' or 'changed_only' parameters. The schema itself lacks descriptions, so the agent has no clue what 'paths' refers to (file paths? directories?) or what 'changed_only' filters. With two parameters and zero semantic guidance, this is a severe gap.

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 a specific verb ('Check') and resource ('docstrings against function signatures') with a clear tool reference ('pydoclint'). This is specific enough to distinguish it from sibling linting tools like ruff_check or ty_check, which focus on other aspects. No ambiguity about what the tool does.

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?

There is no guidance on when to use this tool versus alternatives like ruff_check or ty_check. The description only states what it does, not when it should be invoked. No conditions, exclusions, or comparisons are provided, leaving the agent to infer usage.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

pytest_collectA
Read-onlyIdempotent

Collect pytest tests without executing them.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNo
changed_onlyNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
issuesNo
outputYes
fixableNo
warningsNo
exit_codeYes
saved_tokensNo
savings_percentNo

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare readOnlyHint and idempotentHint; the description adds the valuable behavioral guarantee that tests are collected but not executed. With annotations present, this level of added context is sufficient; it could additionally mention module import side effects, but that is not essential.

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?

A single sentence, front-loaded with the action and scoped by the key non-execution detail. Every word earns its place; no filler or repetition.

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

Completeness3/5

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

The tool is simple, has an output schema, and annotations cover safety, so the brief description is mostly adequate. However, it leaves the meaning and defaults of both optional parameters unexplained, which is a clear gap for an agent deciding how to invoke it correctly.

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

Parameters2/5

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

Schema description coverage is 0% and the description adds no meaning for 'paths' or 'changed_only'. The property names give some clue, but 'changed_only' in particular is ambiguous and the description does not clarify how either parameter modulates collection.

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 a specific verb ('collect') and resource ('pytest tests'), and adds the key scoping detail 'without executing them'. This clearly distinguishes it from test-running tools and from the sibling static-check tools.

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

Usage Guidelines3/5

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

The phrase 'without executing them' implies the tool is for discovery/inspection rather than running tests, but it does not state when to prefer it over alternatives or name any explicit exclusions. Usage context is only implied, not spelled out.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

ruff_checkA
Read-onlyIdempotent

Run ruff linting with token-efficient output.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNoPaths to check, with glob support. Empty means the whole project.
changed_onlyNoOnly check Python files modified in git.

Output Schema

ParametersJSON Schema
NameRequiredDescription
issuesNo
outputYes
fixableNo
warningsNo
exit_codeYes
saved_tokensNo
savings_percentNo

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, covering the safety profile. The description adds a useful behavior beyond annotations by noting the output is token-efficient, which helps an agent predict output size, but it does not describe return format, exit behavior, or what happens with empty paths.

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 a single front-loaded sentence with no filler. Every word earns its place: the verb, the tool-specific action, and the differentiating output characteristic.

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 simple tool with two optional parameters, full schema coverage, read-only/idempotent annotations, and an output schema, the description is sufficient for an agent to understand and invoke it correctly. The missing usage routing is covered by the usage_guidelines dimension, not by this one.

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?

Schema description coverage is 100% for both parameters: paths includes glob support and the empty-means-whole-project behavior, and changed_only explains git filtering. The tool description adds no additional parameter-level detail, so the baseline of 3 applies.

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 a specific verb and resource ('Run ruff linting') and distinguishes it from the sibling ruff_format by placing the focus on linting rather than formatting. Although other check tools exist, naming the linter and action makes the purpose unambiguous.

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?

No explicit guidance is given about when to choose ruff_check over siblings like ruff_format, ty_check, vulture_check, or bandit_check. The only implicit clue is 'token-efficient output,' which hints that this tool is preferred when compact output matters, but this is not stated directly and no exclusions or alternatives are named.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

ruff_formatC
Read-onlyIdempotent

Check Ruff formatting without modifying files.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNo
changed_onlyNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
issuesNo
outputYes
fixableNo
warningsNo
exit_codeYes
saved_tokensNo
savings_percentNo

TDQS

C2.6/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the safety profile is known. The description's 'without modifying files' essentially repeats the read-only annotation and adds no new behavioral context like return behavior, prerequisites, or edge cases.

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 concise sentence with no wasted words. It is efficient and front-loaded with the core purpose, though it sacrifices substantive content for brevity.

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?

With two optional parameters and an output schema, the description should provide enough context to call the tool correctly. It only states the purpose, leaving parameter semantics, distinguishing features, and usage scenarios unexplained. It is minimally adequate but far from complete.

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

Parameters1/5

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

Schema description coverage is 0%, and the description does not mention either parameter ('paths' or 'changed_only'). The agent receives no explanation of what these parameters mean or how to use them beyond their names and types, which is insufficient.

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 states a specific action ('Check Ruff formatting') and a key trait ('without modifying files'), which is clear and not a tautology. However, it does not explicitly differentiate from sibling tools like ruff_check, so it lacks explicit distinction from alternatives.

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 others, no exclusions, and no context about preferred scenarios. It is a single statement with no usage direction.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

ty_checkB
Read-onlyIdempotent

Run ty type checking with an optional severity filter.

ParametersJSON Schema
NameRequiredDescriptionDefault
levelNoall
pathsNo
changed_onlyNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
issuesNo
outputYes
fixableNo
warningsNo
exit_codeYes
saved_tokensNo
savings_percentNo

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and idempotentHint=true, so the tool's safety profile is covered. The description adds the behavioral detail of an optional severity filter, but it does not disclose what `paths` or `changed_only` actually do during a check. There is no contradiction with the annotations.

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 a single, front-loaded sentence with no filler. It states the action, resource, and the key filtering option efficiently, earning every word.

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

Completeness3/5

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

With annotations covering safety and an output schema present, the description doesn't need to explain return values. A default invocation is clear, but the lack of parameter semantics and usage guidance makes advanced use cases like `changed_only` or specific `paths` underspecified. It is adequate for a simple tool but has clear gaps.

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

Parameters2/5

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

Schema description coverage is 0%, so the description needed to compensate by explaining parameters. It only hints at the severity filter (`level`) and leaves `paths` and `changed_only` unexplained. The names and defaults are somewhat self-explanatory, but the description adds little beyond what the schema already shows.

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 uses a clear verb ('Run') and names the specific resource ('ty type checking'), which distinguishes it from sibling tools like ruff_check and bandit_check. The mention of an optional severity filter also foreshadows the `level` parameter. It is clear and specific, though it doesn't explicitly contrast with any sibling.

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

Usage Guidelines3/5

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

The description implies that this tool should be used when ty type checking is needed, but it gives no explicit when-to-use or when-not-to-use guidance. No alternatives or exclusions are mentioned, so an agent must infer the usage context from the tool name and description alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

vulture_checkB
Read-onlyIdempotent

Find unused Python code with Vulture's dead-code analysis.

ParametersJSON Schema
NameRequiredDescriptionDefault
pathsNo
changed_onlyNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
issuesNo
outputYes
fixableNo
warningsNo
exit_codeYes
saved_tokensNo
savings_percentNo

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true and idempotentHint=true, so the description does not need to restate that the operation is safe or repeatable. The description adds the Vulture identity but does not disclose additional behavioral traits such as scope limits or output behavior, which leaves it adequate but not enriched.

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 a single, front-loaded sentence with no filler or redundancy. It uses every word to convey the tool's core purpose and mechanism.

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

Completeness3/5

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

The tool is simple, read-only, idempotent, and has an output schema, which reduces some burden on the description. However, the complete lack of parameter guidance leaves an agent guessing about how to specify paths and what changed_only=true actually controls, making the definition only minimally complete.

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

Parameters1/5

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

Schema description coverage is 0%, and the description does not explain the 'paths' or 'changed_only' parameters at all. The agent must infer their meaning entirely from parameter names, with no supporting detail about accepted path types or what 'changed' refers to.

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 clearly states the action ('Find') and the resource ('unused Python code'), and it names Vulture's dead-code analysis as the mechanism. It is distinct in function from sibling tools like ruff_check, ty_check, and bandit_check, though it does not explicitly contrast them.

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

Usage Guidelines3/5

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

Usage is implied: an agent should call this when unused Python code needs to be detected. However, there is no explicit guidance about when to prefer this over sibling tools or any exclusion conditions, so the guidance is only implicit.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

TDQS

A3.6/5.0
Disambiguation5/5

Each tool maps to a distinct well-known Python quality concern: linting, formatting, type checking, dead code, security, dependencies, test discovery, spelling, and docstrings. There is no meaningful overlap between tools despite several sharing a 'check' suffix.

Naming Consistency5/5

All tool names follow a consistent lowercase snake_case pattern of <tool>_<action>, with 'check' used for most tools and 'format'/'collect' used only where semantically appropriate. The convention is predictable and easy to infer.

Tool Count5/5

Nine tools is a well-scoped size for a Python code-quality server. Each tool covers a major independent concern without unnecessary redundancy or bloat.

Completeness5/5

The tool surface covers the core Python quality-checking lifecycle: linting, formatting validation, type checking, dead-code analysis, security scanning, dependency validation, test discovery, spelling, and docstring consistency. No critical gaps are apparent for the evident check-oriented purpose.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    An MCP server that exposes Pyright language server functionality for Python, providing tools for type checking, code completions, and finding definitions. It enables AI models to perform static analysis and code formatting through the Model Context Protocol.
    7
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Code linting and style checking tools for AI agents, exposed as an MCP server. Supports style checks, naming conventions, complexity analysis, dead code detection, and import analysis.
    63
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    An MCP server that integrates Ruff linting, formatting, and code analysis tools with advanced logging and configuration options for AI coding assistants.
    4
    1
    MIT

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

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