Skip to main content
Glama

format_code

Format Python code files automatically using black to ensure consistent style and improve readability.

Instructions

Format a Python file using black

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filepathYesPath to the file to format

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/Abhi-vish/code-buddy'

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