Skip to main content
Glama

Lean Directory

Scaffold a Lean starter project

init_project

Return the files of a Lean 4 starter project that depends on Lean Directory core libraries; nothing is written to disk. Lake dependencies are pinned to a release tag and the lockfile records each library's source hash, but lake build does not check those hashes, and only running lake build on your machine has the kernel check the code.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "init_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
templateNo
projectNameNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses that the tool is non-mutating, that Lake dependencies are pinned to a release tag, that lockfile hashes are recorded but not enforced by lake build, and that only a local build runs the kernel check. That is substantive behavioral context beyond a bare 'scaffold' claim. It does not say what the return payload looks like (map of path to content? tarball?), which leaves a gap.

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

Conciseness3/5

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

The purpose is front-loaded in the first clause, which is good. But it is a single long compound sentence packing four distinct claims (no disk write, pinning, unchecked hashes, kernel check), and the build-hash caveat is arguably a caveat about a downstream step rather than about this tool. Some compression or splitting would help.

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?

There is no output schema, so the description should explain the shape of the returned files, and it does not - only that files are 'returned'. Combined with the total absence of parameter documentation (especially the template enum) and no default behavior noted for zero required params, it is adequate but leaves real decisions to guesswork.

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

Parameters2/5

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

Schema description coverage is 0%, and there are two parameters (one an 8-value enum), yet the description never mentions them. An agent gets no guidance on what 'template' selects, what the eight template names mean, what the default is, or what 'projectName' affects. The description also does not explain what happens when no template is supplied.

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: 'Return the files of a Lean 4 starter project.' The output-only nature (nothing written to disk) is stated up front, which makes it clearly distinct from the check_*/verify_* siblings. It does not explicitly name a sibling or contrast itself with one, so it stops short of 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 rather than stated: 'nothing is written to disk' hints the caller must persist files itself, and the build/hash caveats hint at the verification step afterwards. There is no explicit when-to-use, when-not-to-use, or pointer to which follow-up tool (e.g. verify_tool) should be run.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.