Skip to main content
Glama
nix-devshell-mcp

nix-devshell-mcp

by kcalvelli

create_devshell

Creates a Nix flake development environment from a profile template, generating flake.nix, direnv configuration, and scaffolding files without overwriting existing files.

Instructions

Creates a Nix flake development environment from a template profile. Generates flake.nix, direnv configuration, and scaffolding files. Non-destructive: will not overwrite existing files.

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": {
      "projectPath": "<projectPath>",
      "profile": "<profile>"
    },
    "name": "create_devshell"
  }
}

Input Schema

NameRequiredDescriptionDefault
optionsNoOptional configuration overrides
profileYesProfile name (e.g., "typescript-node", "python-fastapi", "angular-frontend", "java-spring-boot")
projectPathYesAbsolute path to the project directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden, and it does deliver one genuinely valuable behavioral fact: "Non-destructive: will not overwrite existing files." It omits other relevant side effects, such as whether it invokes Nix/network operations, requires an existing project directory, or touches git.

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, front-loaded with the core action and its outputs, ending with the safety guarantee. No filler or redundancy.

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

Completeness3/5

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

For a file-generating tool with a nested options object and no output schema, the description covers purpose and non-destructiveness but leaves open error conditions (invalid profile, missing projectPath) and whether any post-generation steps run. Adequate but not fully complete.

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 description coverage is 100%, including the nested options object, so the schema already documents all parameters and their examples. The description adds only the notion of a "template profile," which lightly reinforces the profile parameter but supplies no new syntax, constraints, or defaults.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Creates a Nix flake development environment") and enumerates the concrete artifacts produced (flake.nix, direnv config, scaffolding). It is clearly distinct from a listing tool like list_profiles, though it never explicitly points at the sibling for discovering valid profiles.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no prerequisite stated (e.g., that the profile must come from list_profiles, or that the target directory should exist), and no alternatives named. The only usage hint is implicit in "from a template profile."

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

Deploy Server

Other Tools