Install
openclaw skills install @eilumie/mcp-token-labGenerate and validate MCP Token Lab templates to compare agent context, tool loading, token usage, costs, and latency.
openclaw skills install @eilumie/mcp-token-labGiven a user's agent workflow and comparison goals, deliver a UTF-8 .json file with a template name, template description, and descriptions of each plan. The web app simulates scenarios locally in the browser without an API key. A configuration stores experiment settings, not simulation results.
{{variableName}}, as defined in the contract. Preserve the source of model prices supplied by the user or the existing configuration. Check official prices only if the user requests current pricing; otherwise identify unknown rates as assumptions.config object and explain that it does not include a template title or introduction. If the user requests raw JSON, output valid JSON only.| Goal | Reference file | Focus |
|---|---|---|
| Simple two-plan comparison or no matching scenario | Two-plan example | Full schema preloading versus on-demand schema discovery; uses the Skill's default scale |
| Tool-loading strategies without compression | progressive-tool-no-compress | Full preload, Hosted Tool Search, and progressive loading; 25 turns |
| Tool-loading strategies with standard compression | progressive-tool-100k | The same three strategies; 100 turns, 100K threshold |
| Higher compression threshold | progressive-tool-200k | The same three strategies; 100 turns, 200K threshold |
| Tool-search approaches | tool-search | Full preload versus Regex, BM25, and Semantic Top-5 search |
| Tool namespaces and frequently used tools | tool-namespace-hybrid | Flat preload, namespaces, and pinned + on-demand tools; interval triggers |
| Smaller tool results | tool-result-shaping | Raw results, field projection, and batched aggregation |
All six packaged built-in examples are fully importable templates that can be used independently of the web app. They retain the web scenarios' values, including 120 Tools; use their execution flows as references by default, without overriding the generation defaults above. When the user explicitly asks to reproduce a built-in scenario, retain its parameters. If modifying turns, tool counts, or thresholds, update descriptions and dependent variables consistently. The no-compression scenario achieves its behavior by using a TURN threshold greater than the total turn count; adjust that threshold when increasing turns. Example pricing may be historical snapshots or illustrative assumptions, not live quotes. Durations are estimates and do not establish equivalent model quality or actual billed costs.
When the target repository source and dependencies are available, run full simulation and strict validation from the repository root before delivering a generated file:
node skills/mcp-token-lab/scripts/validate-config.mjs --repo . <output-file.json> --simulate --strict
This validator reuses the application's importer and simulation engine rather than defining a competing schema. --simulate evaluates all turns; --strict rejects unresolved variables, unsupported description expressions, and unmatched double braces. Files must not exceed 4 MB. Without the repository source or dependencies, check JSON syntax, documented fields, inheritance, variables, and flow structure; explicitly state that import compatibility and full simulation have not been verified.
When maintaining packaged built-in examples, treat src/config/default-template/ as the source of truth; do not edit generated files under assets/examples/ directly. Synchronize from the repository root:
node skills/mcp-token-lab/scripts/sync-builtins.mjs --repo .
Add --check to verify synchronization without writing files. pnpm test also verifies example synchronization and runs strict validation and full simulation for every example.