Skip to main content
Glama

Перевірити синтаксис NyxilumLang-коду

nyxilum_check

Checks whether NyxilumLang code parses and builds an AST without executing or compiling it, so unfinished or untrusted code can be validated before a run.

Instructions

Лише лексер+парсер (побудова AST) — код НЕ виконується, компіляція в байткод не відбувається. Дешевша й безпечніша перевірка "чи взагалі парситься", ніж nyxilum_run, для коду, який ще не готовий запускатись. Помилки (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_check"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it does real work: it discloses that code is never executed or compiled, and it flags the non-obvious output contract that Parse Errors land in stdout with exitCode=1 rather than stderr. What it omits is the success-path contract (what a clean parse returns) and what timeout_ms does on expiry.

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?

Three short sentences, each carrying a distinct payload: scope, alternative/comparison, and the error-location quirk. The most decision-relevant fact (no execution) is front-loaded, and there is no 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?

No output schema exists, so the description must describe results, and it covers the failure case in useful detail. The success case and timeout behavior are left implicit, which is a modest gap for a tool this simple, but not a blocker for correct invocation.

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 coverage is 50%: timeout_ms is documented inline, while code is undocumented but self-evident as the source text. The description adds no parameter-level meaning beyond the schema — no statement about what code accepts (whole file vs snippet) or how timeout_ms interacts with the check — so it sits at the baseline for a partially documented schema.

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 gives a specific operation on a specific resource (syntax-check NyxilumLang code via lexer+parser, AST only) and explicitly bounds the scope: no execution, no bytecode compilation. It also names the sibling it differs from (nyxilum_run), so an agent can distinguish the two 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 states precisely when to choose this over nyxilum_run: it is cheaper and safer for code that is not yet ready to run, and it answers the narrow question 'does it even parse'. The condition selecting this tool versus the run tool is explicit rather than inferred.

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