Skip to main content
Glama

lean_run_code

Read-onlyIdempotent

Execute Lean code snippets with imports to obtain diagnostic feedback for theorem proving verification.

Instructions

Run a code snippet and return diagnostics. Must include all imports.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesSelf-contained Lean code with imports

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
successYesWhether code compiled successfully
diagnosticsNoCompiler diagnostics

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