Skip to main content
Glama

Hol Setenv

hol_setenv

Set environment variables for a HOL4 session and automatically restart it to apply them, controlling Holmakefile INCLUDES expansion during builds.

Instructions

Set environment variables for a HOL session and auto-restart to apply.

These are passed to the HOL process and affect Holmakefile INCLUDES expansion.

Example: hol_setenv({"VFMDIR": "/home/user/verifereum"})

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": {
      "env": "<env>"
    },
    "name": "hol_setenv"
  }
}

Input Schema

NameRequiredDescriptionDefault
envYesEnvironment variables to set (merged with existing)
sessionNoSession name (default: "default")default

Output Schema

NameRequiredDescriptionDefault
resultYes

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?

With no annotations, the description carries the full burden. It does disclose the important side effect that the session auto-restarts, but it does not say whether in-progress proof state survives that restart, whether variables persist for the session lifetime, or what happens if the named session is missing. These are material gaps for a mutation tool with a restart side effect.

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?

The purpose and its consequence are front-loaded in the first sentence, the second sentence explains the domain effect, and the third gives a compact example. No sentence is filler.

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 no explanation, and the merge semantics are covered by the schema. Still, for a tool that restarts a session, the description should state the impact on session/proof state, which is the main thing an agent needs before calling it.

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 the baseline is 3, but the example call shows the shape of the env object concretely ({"VFMDIR": ...}) and the text explains what those variables influence. That adds meaning beyond the schema's 'merged with existing' note, though the session parameter is not elaborated on at all.

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?

The description uses a specific verb and resource ('Set environment variables for a HOL session') and adds the key side effect ('auto-restart to apply'). It does not distinguish itself from siblings like hol_restart or hol_start, which also touch session lifecycle, so it falls short of a 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?

It explains the effect of the variables ('passed to the HOL process and affect Holmakefile INCLUDES expansion'), which implies when this tool matters. However, there is no explicit guidance on when to prefer this over hol_restart, nor any prerequisite such as the session needing to exist.

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