Skip to main content
Glama

Hol Restart

hol_restart

Restart a HOL4 session to stop and start it while preserving the working directory; use when state is corrupted or upstream SML dependencies change, not for current proof-file edits.

Instructions

Restart HOL session (stop + start, preserves workdir).

Only needed when:

  • HOL state is corrupted (rare)

  • Upstream dependencies changed (edited other .sml files that need Holmake)

NOT needed for edits to current proof file - state_at auto-detects changes.

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": "hol_restart"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionNoSession name to restartdefault

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/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 disclose the two most consequential traits: the operation is a stop+start and the workdir survives it. It stops short of saying what is lost (in-memory proof state, environment set via hol_setenv) or what the call costs in time, which matters for a session-killing operation.

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?

Front-loaded one-line summary of what happens, followed by a tight bulleted list of the two qualifying conditions and one explicit exclusion. Every sentence changes an agent's decision; nothing is redundant.

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?

An output schema exists, so return values need not be described, and the description covers effect and triggering conditions for a one-parameter tool. The remaining gap is what state is destroyed besides the workdir, which would be the last piece an agent needs before calling a restart.

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% and the single optional session parameter already documents its meaning and default, so the description adds no parameter detail beyond the schema. Baseline 3 applies; there is no syntax or naming-convention guidance the schema lacks.

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?

The first sentence gives a specific verb and resource ("Restart HOL session") and immediately clarifies the mechanism ("stop + start") and a key side effect ("preserves workdir"). That is enough for an agent to distinguish it from hol_start, hol_stop, or hol_state_at without opening any 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?

It states explicit when-to-use conditions (corrupted state, changed upstream .sml files requiring Holmake) and an explicit when-NOT-to-use case, naming the alternative hol_state_at that auto-detects current-file edits. Nothing is left to inference about whether a restart is warranted.

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