Skip to main content
Glama

Hol Check Proof

hol_check_proof

Checks whether a theorem's proof completes after edits, so you can verify fixes without relying on stale line numbers.

Instructions

Check if a theorem's proof completes after editing.

Use this after editing a proof to see if it works now. More reliable than hol_state_at with line numbers which may be stale after edits.

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": {
      "theorem": "<theorem>"
    },
    "name": "hol_check_proof"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoPath to .sml file (auto-inits cursor if no cursor exists)
traceNoIf True, include full per-step timing trace
sessionNoSession name (default: "default")default
theoremYesTheorem name to check
workdirNoWorking directory for HOL (used with file)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the burden, and it does disclose one meaningful behavioral trait: this tool is more reliable than a stale line-number lookup after edits. It still omits whether the check actually executes the prover, whether it blocks or can time out, and what a failed versus incomplete proof looks like at a behavioral level.

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?

The purpose is front-loaded and the sibling comparison follows immediately; three short sentences with no wasted setup. Minor redundancy between the opening statement and the second sentence ('check whether it works now' restates 'completes').

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 explained, but with zero annotations and a proof-checking operation that plausibly executes expensive work, the description should say more about cost, blocking, and failure modes. What is present is accurate and sufficient to select the tool, but not to anticipate its runtime behavior.

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 description coverage is 100%, so file, session, trace, and workdir are already documented at the field level, and the description adds nothing about them. Baseline 3 is appropriate; the description neither clarifies the theorem name format nor the interaction between file and workdir.

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

Purpose5/5

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

States a specific verb and object ('Check if a theorem's proof completes') with a clear scope condition ('after editing'), and it explicitly contrasts itself with sibling hol_state_at. An agent can tell what it does and how it differs from the line-number-based alternative without opening the schema.

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

Usage Guidelines5/5

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

Provides explicit timing guidance ('Use this after editing a proof to see if it works now') and name-checks the alternative it should replace, along with the reason (hol_state_at line numbers 'may be stale after edits'). That is actionable routing guidance rather than an implied use case.

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