Skip to main content
Glama

fix_imports

Detect unused imports, undefined symbols, and circular dependencies, then apply auto-fixes when possible.

Instructions

Detect unused imports, undefined symbols, circular deps. auto_fix applies.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fileYesFile path relative to workspace_dir (e.g. "src/new_feature.py")
auto_fixNoAuto-fix issues when possible (default: false)
workspace_dirYesREQUIRED: project root (abs). reindex first if new.
max_candidatesNoMax candidate symbols per undefined symbol (default: 10)

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/wulun811/LiuHe'

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