Skip to main content
Glama

Code Reference Optimizer MCP Server

by FosterG4

optimize_imports

Minimizes token usage and improves efficiency by analyzing and optimizing import statements in source files for TypeScript/JavaScript, Python, Go, and Rust.

Instructions

Analyze and optimize import statements to reduce redundancy

Input Schema

NameRequiredDescriptionDefault
filePathYesPath to the source file
usedSymbolsNoSymbols actually used in the context

Input Schema (JSON Schema)

{ "properties": { "filePath": { "description": "Path to the source file", "type": "string" }, "usedSymbols": { "description": "Symbols actually used in the context", "items": { "type": "string" }, "type": "array" } }, "required": [ "filePath" ], "type": "object" }

Other Tools from Code Reference Optimizer MCP Server

Related Tools

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/FosterG4/mcpsaver'

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