Skip to main content
Glama

Check

lean_check
Read-onlyIdempotent

Check a Lean project, file, or declaration against a pinned toolchain and return a proof receipt that flags sorry and lists reported axioms.

Instructions

GET /check: check a project, a file or one declaration and return the proof receipt.

file is relative to the project. declaration needs file. The receipt fails on sorry and lists every axiom #print axioms reports.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_dir": "<project_dir>"
    },
    "name": "lean_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNo
buildNo
declarationNo
project_dirYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover read-only, idempotent, non-destructive behavior, so the description earns credit for adding what they do not: the receipt fails on `sorry` and reports every axiom from `#print axioms`. That is a genuine failure condition and result characteristic not present in the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the operation and followed by the path and dependency constraints. The only noise is the HTTP route notation 'GET /check', which is marginally useful for signaling read-only behavior.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need not be described. The remaining gap is the undocumented `build` parameter and the lack of differentiation from lean_extract, which matters for a tool with four parameters and a moderate decision space.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate. It clarifies that `file` is relative to the project and that `declaration` requires `file`, which is real added meaning. However, the `build` parameter is never mentioned, leaving one of four parameters undocumented anywhere.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: check a project, a file, or a single declaration, returning a proof receipt. The scope choices are named explicitly. It does not distinguish the tool from its sibling lean_extract, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the three scope levels (project, file, declaration) and one hard prerequisite is stated: `declaration` needs `file`. There is no guidance on when to prefer this over lean_extract or when a full project check is warranted versus a single declaration.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools