Skip to main content
Glama
HullForge MCP Connector

HullForge MCP Connector

by jigwright

Run Code

hf_run_code

Runs a short Starlark script that calls HullForge read and write operations, returning the last expression's value. Use it for loops, filtering, and computed logic in Unreal Engine 5.

Instructions

Run a short Starlark script (Python syntax, no import, no while, no files or network) that calls HullForge, and get back only its result: the last expression's value. Use it over hf_batch when the work needs logic: loop over what a read returned, compute positions, build names, filter a large result to the few fields you need. Functions: read(tool, args) and write(tool, args) call an operation exactly as hf_read/hf_write would and return its result (a failure stops the script with the tool's message; pass check=False to get {"error": ...} back instead), search(query) returns matching operations with their arguments, log(...) records a line, json.encode/json.decode, map and filter. Tool calls that fail validation or the stage lock are refused as usual; destroying tools are refused (use hf_destroy), and so can a tool that needs the user's approval (call it on its own). At most 200 tool calls; the script's own time is capped (tool calls do not count) and its memory is capped. Afterwards it compiles every Blueprint and C++ file the script touched, like hf_batch. Example: a = read("hf_list_actors", {"class_filter": "StaticMeshActor"})["actors"]; [x["name"] for x in a if x["location"]["z"] < 0]

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": {
      "code": "<code>"
    },
    "name": "hf_run_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe Starlark script. Its last expression is the result.
saveNohf_save_all after the script succeeds.
compileNoCompile the Blueprints and C++ files the script touched and report errors.
secondsNoThe script's own time limit, not counting tool calls.
checkpointNoOptional. Set a checkpoint with this label first.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the generic annotations, the description discloses the sandbox restrictions, error behavior, the check=False escape hatch, available helper functions, validation and stage-lock refusals, the 200-call limit, time and memory caps, and post-script compilation. These are exactly the behavioral traits an agent needs before invoking a code-execution tool.

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 description is front-loaded and dense, with no filler; it covers restrictions, helper functions, failure behavior, limits, and an example. The structure is a single long paragraph with semicolon-separated clauses, so it is slightly harder to scan than it could be, but almost every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a code-execution tool with an output schema, this description covers the execution model, available APIs, error handling, safety refusals, limits, and post-run compilation. Nothing material is missing for an agent to invoke it correctly.

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 the input schema already documents code, save, compile, seconds, and checkpoint. The description explains script semantics and return behavior, but it does not add meaning about the non-code parameters beyond what the schema already provides, which is the baseline case for full schema coverage.

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 description states a specific verb and resource: run a short Starlark script that calls HullForge and returns the last expression's value. It also explicitly distinguishes this from hf_batch by saying to use hf_run_code when the work needs logic, so an agent can select it without opening either 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 gives explicit when-to-use guidance against hf_batch and names alternatives for special cases: destroying tools are refused and should use hf_destroy, and tools needing approval should be called on their own. The guidance is concrete rather than implied.

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

Deploy Server

Other Tools