Skip to main content
Glama
klar-mcp

klar-mcp

Official

Install whole Klar dashboards into a project

install_dashboards
Idempotent

Copies selected Klar dashboards and the shared kit into a project, rewrites imports to relative paths, and generates index.ts so you can import and render them.

Instructions

Copies the Klar kit and the chosen dashboards into the project (default /src/klar), rewriting imports to relative paths and generating an index.ts. Dashboards can be given as slugs or names. Never overwrites existing files unless overwrite is true. Returns the files written and the remaining setup steps (packages to install, CSS import, render snippet). For a single chart use install_chart instead.

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": {
      "project_dir": "<project_dir>"
    },
    "name": "install_dashboards"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNoReport what would be written without writing
overwriteNo
dashboardsNoSlugs or names to install, or ["all"]. Empty installs only the kit. Slugs: orbit, lumen, hearth, beacon, meridian, recur, sentinel, cadence, atrium, fieldstone, halo, synapse
target_dirNoFolder inside the project to install intosrc/klar
include_kitNoAlso copy the shared kit (needed the first time)
project_dirYesAbsolute path to the project root (the folder with package.json)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare idempotentHint and destructiveHint; the description goes well beyond them by disclosing the default install path, import rewriting, index.ts generation, the never-overwrite-unless-overwrite-is-true guarantee, and what is returned (files written plus remaining setup steps). This is exactly the mutation context an agent needs before writing to a user's project.

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 dense sentences ordered as action → input forms → safety guarantee → return value → sibling alternative. No filler, and the most decision-relevant facts (default path, no-overwrite rule) come early.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a multi-file write operation with no output schema, the description still tells the agent what gets produced on disk and what comes back, plus the follow-up setup steps it must relay. Nothing needed to invoke it safely appears to be missing.

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 83%, so the schema already documents all six parameters including dry_run, overwrite, include_kit, and target_dir. The description's mention of slugs-or-names and the default <project>/src/klar path largely repeats schema content, adding only light emphasis rather than new meaning.

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?

States a specific verb and resource — copying the Klar kit plus selected dashboards into the project — and pins down side effects (import rewriting, index.ts generation). It also explicitly separates itself from install_chart, so an agent can distinguish it from the sibling 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 Guidelines4/5

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

Gives a clear routing rule ("For a single chart use install_chart instead") and clarifies that an empty dashboard list installs only the kit. It does not spell out when NOT to run it (e.g., re-running against an already-installed project), but the overwrite sentence covers most of that ground.

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