Skip to main content
Glama

lean_declaration_file

Read-onlyIdempotent

Locate where a symbol is declared in a Lean file to understand its definition and usage context.

Instructions

Get file where a symbol is declared. Symbol must be present in file first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
file_pathYesAbsolute path to Lean file
symbolYesSymbol (case sensitive, must be in file)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesFile content
file_pathYesPath to declaration file

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/oOo0oOo/lean-lsp-mcp'

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