Skip to main content
Glama

format_code

Format code files automatically using style guides like Prettier or ESLint to ensure consistent coding standards and fix formatting issues.

Instructions

Format code using specified style guide

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesPath to the file to format
styleNoCode style guide to use (e.g., prettier, eslint)prettier
configNoConfiguration options for the formatter
fixNoWhether to fix issues automatically

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/proofmath-owner/ai-filesystem-mcp'

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