Skip to main content
Glama

Запустити NyxilumLang-код

nyxilum_run

Compile and execute NyxilumLang (.nx) code in an isolated sandbox with configurable timeout and GC allocation limits, returning stdout and exit codes for safe automated testing.

Instructions

Компілює й виконує довільний NyxilumLang (.nx) код у пісочниці (окремий процес, timeout, ліміт GC-виділень). Помилки виконання (Runtime Error/Parse Error) з'являються у полі stdout з exitCode=1, а НЕ в stderr.

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

Input Schema

NameRequiredDescriptionDefault
codeYesВихідний код NyxilumLang для запуску
timeout_msNoТаймаут виконання в мілісекундах (100–60000, типово 10000)
gc_max_objectsNoЛіміт кількості NyxilumLang-виділень (масиви/структури/мапи); типово 5000000. НЕ зупиняє чисті нескінченні цикли без виділень — від них захищає лише timeout.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations supplied, the description carries full behavioral burden and does add real value: it discloses the sandbox model, separate process, timeout, GC-allocation limit, and critically that Runtime/Parse errors land in stdout with exitCode=1 rather than stderr. However, it omits whether state persists between calls, whether the sandbox has filesystem/network access, and the full return shape beyond stdout and exitCode.

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 tightly written sentences with zero filler. The sandbox constraint is front-loaded and the error-location quirk is emphasized in its own clause, which is exactly the detail an agent most needs.

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 3-param execution tool with no output schema, the description covers the safety envelope and the non-obvious error-channel behavior. It falls short on return value structure (whether GC stats, timing, or truncation flags are returned) and on state persistence across invocations.

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 schema already documents code, timeout_ms, and gc_max_objects including ranges and defaults. The description only references sandbox/GC limits generically and adds no semantics beyond what the schema provides; baseline 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 compound verb (compiles and executes) plus resource (arbitrary NyxilumLang .nx code) and scope (sandboxed, separate process). It is distinguishable from validation tools like nyxilum_check, but it never names a sibling or contrasts itself with nyxilum_repl_eval, which could look similar for interactive execution.

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

Usage Guidelines2/5

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

The description implies the tool runs code but gives no explicit when-to-use or when-not guidance, no mention of checking/linting first, and no contrast with nyxilum_repl_eval or nyxilum_dev_build. The agent must infer the choice from the tool name alone.

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