Skip to main content
Glama

cmd_project

Run typed .NET, Python, and Node project commands—build, test, lint, install packages, or start apps—in a workspace without a shell; actions run live or await owner approval.

Instructions

Run a project command in a workspace as a typed action (no shell): .NET (build, test, packages, EF Core, run), Python (actions that start with py_) or Node (actions that start with node_). The owner watches it live in the Waymark Console. Some actions run at once, others wait for the owner's approval - the result says which. Pick the project with options: .NET uses 'target' (a .sln, .slnx or project file); Python and Node use 'project' (a folder, or its pyproject.toml, requirements or package.json; default the workspace folder) and the command runs in that folder. .NET ACTIONS and their optionsJson keys (* = required, all paths relative to the workspace, unknown keys are refused): build, rebuild, clean, restore: target, configuration, framework, noRestore, verbosity (quiet|minimal|normal|detailed), timeoutMinutes test: target, configuration, framework, filter, noBuild, noRestore format_check, format: scope (whitespace|style|analyzers), target info: - list: kind* (projects|references|packages), solution (for projects), project (for the others), filter (outdated|vulnerable|deprecated), includeTransitive new: template* (classlib, console, webapi, web, mvc, blazor, worker, xunit, xunit3, mstest, nunit, sln, slnx, gitignore, editorconfig, globaljson, nugetconfig, tool-manifest ...), name, output (folder), framework sln: change* (add|remove), solution*, projects* (array) reference: change* (add|remove), project*, references* (array) package_add: project*, package*, version, prerelease package_remove: project*, package* tool_restore: - ef_list: kind (migrations|dbcontexts), project*, startupProject, context ef_migrations_add: name*, project*, startupProject, context, outputDir ef_migrations_remove: project*, startupProject, context ef_database_update: project*, startupProject, context, migration or revertAll run: project*, configuration, launchProfile, noBuild, appArgs (array), timeoutMinutes (the app keeps running until stopped) PYTHON ACTIONS (every one accepts project and timeoutMinutes; paths are relative to the workspace; packages are installed as wheels only, nothing is built): py_info: - - versions of Python, pip, uv, ruff, pyright and mypy, and the project's lock file and virtual environment py_list: tool (uv|pip), venv - packages installed in the project's virtual environment py_venv: tool, venv (a folder name, default .venv), python (uv only, such as 3.12) - creates the virtual environment py_install: tool, venv, groups (array), extras (array), requirements (pip; default requirements.txt) - installs from uv.lock (uv sync --frozen) or from a requirements file, with --require-hashes when it has hashes py_test: venv, filter (pytest -k), marker (pytest -m), maxFail, verbose, paths (array: files, folders or tests/test_a.py::TestA::test_b) - pytest in the project's virtual environment py_lint: paths (array) - ruff check py_format: check, paths (array) - ruff format; it changes files unless check is true py_typecheck: checker (pyright|mypy), venv, paths (array) py_run: venv, module* or script* (give one), appArgs (array) - python -m module or a script; the program keeps running until stopped py_package_add: package*, version*, group, tool - uv add of one package at an exact version py_package_remove: package*, group, tool - uv remove NODE ACTIONS (every one accepts project, a folder or its package.json, default the workspace folder, where the command runs, and timeoutMinutes; npm runs as node npm-cli.js, installs run no lifecycle scripts): node_info: - - Node, npm and TypeScript versions, the project's package manager, node_modules and scripts node_list: - - npm ls --depth=0 (needs node_modules) node_install: - - npm ci from package-lock.json with --ignore-scripts (npm projects only) node_typecheck: tsconfig - tsc --noEmit with the project's own TypeScript node_build, node_test, node_lint: script (default build, test, lint), args (array, passed after --) - a script named in package.json node_script: script*, args (array) - any script of package.json; its text is shown on the approval card node_run: script (default dev, else start), args (array) - a script that keeps running until stopped node_package_add: package*, version*, dev - npm install of one package at an exact version, --save-exact --ignore-scripts node_package_remove: package* - npm uninstall --ignore-scripts When 'target' is omitted the only .sln/.slnx file in the workspace root is used. For git use cmd_git; for ports and locked build files cmd_proc; for anything without a typed action cmd_shell. RETURNS: result, compiler or linter findings (workspace-relative paths), test summary and the last output lines. If it takes longer than waitSeconds you get a run id for cmd_wait / cmd_output.

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": {
      "workspace": "<workspace>",
      "action": "<action>",
      "purpose": "<purpose>"
    },
    "name": "cmd_project"
  }
}

Input Schema

NameRequiredDescriptionDefault
guideNotrue: put the commands guide first in the result. Use on your first commands call, or when told it changed.
actionYesOne of: build, rebuild, clean, restore, test, format_check, format, info, list, new, sln, reference, package_add, package_remove, tool_restore, ef_list, ef_migrations_add, ef_migrations_remove, ef_database_update, run, py_info, py_list, py_venv, py_install, py_test, py_lint, py_format, py_typecheck, py_run, py_package_add, py_package_remove, node_info, node_list, node_install, node_typecheck, node_build, node_test, node_lint, node_script, node_run, node_package_add, node_package_remove
purposeYesOne sentence: why you run this. The owner reads it before approving, sees it live, and it is kept in the audit log.
workspaceYesWorkspace name as shown in Waymark (a single workspace; '*' is not accepted)
optionsJsonNoJSON object with the options of the action, for example {"configuration":"Release","noRestore":true} or {"project":"api","filter":"test_login"}. Omit when none are needed.
waitSecondsNoSeconds to wait for the result before returning a run id (default 30, at most about 45). The command keeps running; use cmd_wait to wait longer.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.1

TDQS

A4.9/5.0
Behavior5/5

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

The annotations only declare that this is not read-only, not idempotent, and not destructive; the description adds substantial behavior: the owner watches live, some actions require approval, Python packages are installed as wheels, npm installs skip lifecycle scripts, py_format changes files unless check is true, and run commands keep running until stopped. It also explains the waitSeconds/run-id handoff to cmd_wait and cmd_output.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long, but the length is driven by 43 distinct actions and an opaque optionsJson parameter, so most detail earns its place. It is front-loaded with purpose and project-selection guidance, though the action list is partially duplicated from the schema and could be tightened.

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 complex multi-action command runner with no output schema, the description covers return values, timeout behavior, approval gating, and action-specific options. An agent has enough information to select the right action and supply valid options without opening the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although schema coverage is already 100%, the description adds extensive meaning beyond the schema: it catalogs optionsJson keys per action, marks required keys, gives defaults and allowed values, states that paths are workspace-relative and unknown keys are refused, and explains project selection differences between .NET, Python, and Node.

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 states a specific verb and resource: run a project command as a typed action in a workspace, without a shell. It distinguishes the tool from siblings by naming cmd_git, cmd_proc, and cmd_shell for their respective domains.

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 explicitly says when to use this tool versus alternatives: git work goes to cmd_git, ports and locked build files to cmd_proc, and anything without a typed action to cmd_shell. It also explains approval behavior and default target selection.

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