Skip to main content
Glama

Hol Start

hol_start

Start a HOL4 REPL session in a working directory, returning the existing session if one is already running.

Instructions

Start a HOL4 REPL session.

Idempotent - returns existing session if already running. Usually called automatically by hol_state_at (via file= parameter).

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": {
      "workdir": "<workdir>"
    },
    "name": "hol_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoOptional environment variables (e.g. {"VFMDIR": "/path/to/vfm"})
nameNoSession identifier (e.g., "main")default
workdirYesWorking directory (should contain Holmakefile for dependencies)

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose idempotency and that an existing session is returned rather than duplicated, which is genuinely useful. It omits failure modes (invalid workdir, missing Holmakefile), startup latency/blocking behavior, and whether env variables persist for later hol_send calls. Return values are covered by the existing output schema, so that gap is not counted.

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?

Three short lines, front-loaded with the verb, then the idempotency guarantee, then the caller relationship. Every line adds distinct information with no filler.

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 session-lifecycle tool with an output schema and fully documented parameters, this covers what, idempotency, and typical call path. The main residual gap is startup failure/error behavior and the relationship to hol_restart, which keeps it below full marks.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, and the description goes slightly beyond by tying the session's purpose to its callers (workdir context via hol_state_at's file= parameter). The `name` and `env` parameters receive no additional narrative meaning, so it does not earn a 5.

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?

"Start a HOL4 REPL session" gives a concrete verb and resource, and the idempotency clause distinguishes it from a naive spawn. It does not explicitly contrast with hol_restart or hol_sessions, so the agent must infer the boundary from sibling names alone.

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?

The note that it is "usually called automatically by hol_state_at (via file= parameter)" usefully warns the agent away from manual invocation in the common case. However, it never states when an agent should call it directly rather than using hol_restart or hol_state_at, leaving the decision partially to inference.

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