Skip to main content
Glama

Виконати код у REPL-сесії NyxilumLang

nyxilum_repl_eval

Executes NyxilumLang code in an existing REPL session and preserves variables and functions from earlier calls in the same session.

Instructions

Виконує код в існуючій сесії від nyxilum_repl_start - var/func з попередніх викликів у ЦІЙ САМІЙ сесії лишаються видимими. ОБМЕЖЕННЯ: REPL читає stdin рядок за рядком, тож переноси рядків у code замінюються на пробіли перед відправкою - багаторядкові func {...}/struct {...} працюють (фігурні дужки не залежать від переносів рядків), АЛЕ // -коментарі НЕ підтримуються в багаторядковому code (коментар "з’їсть" усе, що йде після нього на тому самому сплющеному рядку) - просто уникай // усередині code, переданого сюди. Якщо виконання не завершується за timeout_ms (напр. нескінченний цикл), сесія автоматично завершується - почни нову через nyxilum_repl_start.

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

Input Schema

NameRequiredDescriptionDefault
codeYesКод NyxilumLang для виконання в цій сесії
session_idYesID сесії від nyxilum_repl_start
timeout_msNoТаймаут виконання в мілісекундах (100–60000, типово 10000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so unusually well: it discloses state persistence across calls, stdin line-by-line flattening of the code payload, that multi-line func/struct blocks survive because braces ignore newlines, that // comments break under flattening, and that exceeding timeout_ms terminates the session entirely. These are non-obvious failure modes an agent could not infer from the schema.

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?

Front-loaded with the core action and session dependency, then the constraints; every sentence carries operative information. The long parenthetical about braces and comment flattening is dense and slightly repetitive, but it is load-bearing guidance rather than 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?

Complete on inputs, preconditions, and failure behavior for a stateful execution tool, despite there being no output schema. The one gap is that it never says what an invocation returns (evaluated value, stdout, or error text), which an agent needs to interpret results.

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 description adds real meaning: it explains how the code parameter is transformed before sending and what happens when timeout_ms is exceeded. session_id semantics are already covered by the schema reference to nyxilum_repl_start.

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 (executes code in an existing REPL session) and ties it explicitly to nyxilum_repl_start as the session source, distinguishing it from the start/stop siblings. An agent can tell immediately that this is the per-call execution step, not session creation.

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?

It clearly establishes the precondition (a session created by nyxilum_repl_start), the benefit of that choice (vars/funcs from prior calls remain visible in this same session), and the recovery path after a timeout (start a new session). It does not compare against nyxilum_run, so the when-not guidance is incomplete, but the surrounding context is strong.

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