Skip to main content
Glama

propose_removal_pr

Propose a branch and PR removing only unused imports from a Python repo, gated by its full test suite, with merging left to a human.

Instructions

Propose a real branch+PR removing only unused imports (single-name import lines, >= 90% vulture confidence) from a Python repository. Runs the repo's own full test suite as a safety gate before ever committing or pushing — a failure there reverts everything and nothing is committed or pushed. If gh isn't available or PR creation otherwise fails, the branch is still committed and pushed for real; only the PR itself needs opening manually. A human always merges — this never merges anything itself.

repo_path: path to a real git repository with a clean working tree (uncommitted changes are refused, not overwritten).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repo_pathNo.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.2

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations, the description fully carries the behavioral burden, and it does so well. It explains that the test suite is a safety gate, that failures revert all changes, that branch commits/pushes persist if only PR creation fails, and that human merge is always required.

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 somewhat long but every sentence earns its place, covering prerequisites, side effects, failure modes, and parameter meaning. The critical safety guarantees are front-loaded, and there is no filler.

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 tool with one optional parameter and an output schema, the description is remarkably complete. It covers prerequisites, refused inputs, failure behavior, push semantics, and merge policy, so an agent has enough to call it correctly without additional context.

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 description coverage is 0%, but the description compensates by explaining repo_path as a real git repository with a clean working tree and noting uncommitted changes are refused. This adds meaningful semantics beyond the bare schema field, though it does not mention optionality/default behavior beyond what the schema already shows.

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 tool's specific action: propose a real branch and PR that removes unused imports from a Python repository. It adds precise scoping (single-name import lines, >=90% vulture confidence) that makes its purpose concrete and distinct from a general cleanup tool.

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 usage context by specifying criteria for eligible imports and requiring a clean git repository with a full test suite. However, it never explicitly addresses when to use this tool versus scan_dead_code or mentions exclusions, leaving the routing partially to inference.

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/pamela-0/safe-fix-mcp'

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