Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/mendixlabs/mxcliWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/mendixlabs/mxcli/check-script)<a href="https://agentmods.dev/commands/mendixlabs/mxcli/check-script"><img src="https://agentmods.dev/badge/commands/mendixlabs/mxcli/check-script/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/mendixlabs/mxcli/check-script"><img src="https://agentmods.dev/badge/commands/mendixlabs/mxcli/check-script.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00008 | $0.00675 |
| Opus 5.5 | $0.00003 | $0.00270 |
| Sonnet 5.5 | $0.00002 | $0.00135 |
| Haiku 4.5 | $0.00001 | $0.00068 |
Grade A, and why
check-script scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 17d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 83 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Check Script
Validate an MDL script before executing it.
Commands
# Syntax check only (--no-project: do not auto-detect an .mpr in this directory)
mxcli check script.mdl --no-project
# Syntax + reference validation (checks entities/modules exist)
mxcli check script.mdl -p app.mpr --references
A script starts with mdl 1;. A headerless script is checked as the older mdl 0;
upgrade it with mxcli fmt --upgrade --header -p app.mpr -w script.mdl before editing it.
What It Checks
Syntax check (always runs):
- MDL grammar correctness
- Proper statement structure
- Valid keywords and types
Microflow body validation (always runs, no project needed):
- RETURN must provide a value when microflow declares a return type
- RETURN must not provide a value on void microflows (except
RETURN empty) - Scalar literals (string, integer, boolean) cannot be returned from entity-typed microflows
- All code paths must end with RETURN for non-void microflows
- Variables declared inside IF/ELSE branches or ON ERROR bodies cannot be used outside the branch
- VALIDATION FEEDBACK must have a non-empty message (CE0091)
Reference check (with --references, requires -p):
- Module references exist
- Entity references exist
- Association references exist
- Skips references to objects created in the same script
- Variables must be declared before use with SET
- Validates all branches (IF/ELSE) and loops
- Tracks variable declarations from parameters, DECLARE, CREATE, RETRIEVE, CALL
Example Output
$ mxcli check domain-model.mdl -p app.mpr --references
Checking: domain-model.mdl
✓ Syntax OK (15 statements)
✓ References OK
$ mxcli check broken.mdl
Checking: broken.mdl
✗ Line 5: missing ';' at 'CREATE'
✗ Line 12: unknown type 'Strin'
Found 2 errors
$ mxcli check microflow.mdl
Checking: microflow.mdl
✓ Syntax OK (3 statements)
Validation errors:
- statement 1 (Module.MyMicroflow): RETURN requires a value because microflow returns Boolean
- statement 2 (Module.OtherFlow): microflow returns String but not all code paths have a RETURN statement
- statement 3 (Module.ScopeIssue): variable '$X' is declared inside IF branch but used outside
$ mxcli check microflow.mdl -p app.mpr --references
Checking: microflow.mdl
✓ Syntax OK (1 statements)
Reference errors:
statement 1: microflow 'Module.Name' has validation errors:
- variable 'IsValid' is not declared. Use DECLARE IsValid: <Type> before using SET
✗ 1 reference error(s) found
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 17d ago Changed 0c931a9eb894
- 1mo ago Changed · +3 lines 3afb418d8ec9
- 3mo ago First seen · 80 lines · 8 tokens per session scan A 949c993ee5b0
check-script is a command published in the GitHub repository mendixlabs/mxcli (145 stars, last pushed yesterday), licensed Apache-2.0. It adds 8 tokens to every session and 675 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
check-script compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| check-scriptmendixlabs/mxcli | Command | 145 | yesterday | Apache-2.0 | A | 8 | Claude Code |
| hatch3r-workflowhatch3r/hatch3r | Command | 26 | 2mo ago | MIT | A | 42 | Claude Code |
| hatch3r-roadmaphatch3r/hatch3r | Command | 26 | 2mo ago | MIT | A | 28 | Claude Code |
| hatch3r-migration-planhatch3r/hatch3r | Command | 26 | 2mo ago | MIT | A | 27 | Claude Code |
| hatch3r-incident-responsehatch3r/hatch3r | Command | 26 | 2mo ago | MIT | A | 42 | Claude Code |
| hatch3r-pack-installhatch3r/hatch3r | Command | 26 | 2mo ago | MIT | A | 39 | Claude Code |
| hatch3r-slo-scaffoldhatch3r/hatch3r | Command | 26 | 2mo ago | MIT | A | 70 | Claude Code |