Skip to main content
Glama

find_function

Locate function or method definitions in Python or JS/JSX files using AST parsers. Input the function name to retrieve lines, start_line, and end_line for efficient code navigation.

Instructions

Find a function or method definition in a Python or JS/JSX file. Uses AST parsers.

Args: function_name (str): Name of the function or method to find

Returns: dict: function lines with their line numbers, start_line, and end_line

Input Schema

NameRequiredDescriptionDefault
function_nameYes

Input Schema (JSON Schema)

{ "properties": { "function_name": { "title": "Function Name", "type": "string" } }, "required": [ "function_name" ], "type": "object" }

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/danielpodrazka/editor-mcp'

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