Skip to main content
Glama

visualize_proof_outline

Parse Lean 4 theorem, lemma, def, and axiom declarations to generate a Mermaid flowchart TD dependency graph for visualizing proof structure and dependencies.

Instructions

Parse a Lean 4 file’s theorem/lemma/def/axiom declarations and output a Mermaid flowchart TD dependency graph.

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": {
      "source": "<source>"
    },
    "name": "visualize_proof_outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYesLean 4 source code to analyze.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It usefully discloses the output format as a Mermaid flowchart TD graph, but omits error behavior for invalid Lean, whether it performs validation, and the exact return shape.

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

Conciseness5/5

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

A single front-loaded sentence with no filler. The parsing target and output format are both stated efficiently.

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

Completeness4/5

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

For a low-complexity one-parameter tool, the description gives the essential parse targets and output format. It is slightly incomplete on exact return representation because there is no output schema, but the Mermaid format is explicitly named.

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 100% and the single parameter is fully described. The description adds that the input is Lean 4 code to analyze, but 'file' slightly differs from the schema's source-string wording and no additional parameter semantics are 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 ('Parse') and resource ('Lean 4 theorem/lemma/def/axiom declarations'), and names the output artifact ('Mermaid flowchart TD dependency graph'). The visualization/dependency-graph framing distinguishes it from audit and explain siblings, though it does not explicitly exclude alternatives.

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 naming Lean declaration parsing and dependency-graph output, but there is no explicit when-to-use guidance versus audit_lean_proof or explain_lean_tactic and no prerequisites are stated.

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