Skip to main content
Glama

Hol Send

hol_send

Send raw SML commands to a HOL4 session for direct prover interaction, but use hol_state_at for proof navigation and tactic replay.

Instructions

Send raw SML command to HOL session.

WARNING: Do NOT use for proof navigation - use hol_state_at instead. hol_state_at handles file changes, checkpoints, and tactic replay automatically.

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": {
      "command": "<command>"
    },
    "name": "hol_send"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYesSML command to execute
sessionNoSession name (default: "default")default
timeoutNoMax seconds to wait (default 5, max 600)
max_outputNoMax bytes of output to return (default 4096). Shows tail when truncated (errors/results come after echoed input).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and mostly does not meet it. It never says whether arbitrary SML can mutate or destroy prover state, whether a session must already be started (e.g., via hol_start), or how timeouts/interrupts behave, despite this being an unrestricted code-execution surface. The only behavioral disclosure is the routing warning.

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?

Two sentences: purpose first, then an uppercase warning with the excluded use case and its replacement. Every sentence earns its place and the redirect is front-loaded.

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?

With a rich input schema and an output schema present, return values and parameter details need not be restated, and the key routing hazard is covered. What remains missing is prerequisite state (must a HOL session be running?) and the consequences of executing arbitrary SML, which matters for a tool with zero annotations.

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 schema already documents command, session, timeout (max 600), and max_output with truncation behavior. The description adds no meaning beyond those fields, so the baseline of 3 applies.

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 and resource: send a raw SML command to a HOL session. It also implicitly scopes itself against hol_state_at, so an agent can tell it apart from the high-level proof-navigation sibling without opening either schema. It stops short of 5 only because 'HOL session' and the kind of SML commands intended are never characterized.

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

Usage Guidelines4/5

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

Contains an explicit exclusion plus the alternative: 'Do NOT use for proof navigation - use hol_state_at instead,' with a reason (hol_state_at handles file changes, checkpoints, tactic replay). Positive guidance about when hol_send IS appropriate (ad-hoc queries, inspecting state directly) is only implied by 'raw SML command.'

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