Skip to main content
Glama

docs_add_environment

Idempotent

Register a project folder, Python interpreter, or node_modules path so its packages can be checked and dependencies indexed.

Instructions

Register a project folder or venv so its packages can be checked (register project, registrar proyecto)

Accepts a project folder (its .venv/venv/env and node_modules, also in frontend/, web/, client/ or ui/, are detected), a python/python.exe interpreter, or a node_modules folder. The most recently registered project becomes the default env (per language: Python checks never default to a node_modules-only env). Registering again is harmless and makes it the default again.

Args: path: absolute path to the project folder, interpreter or node_modules. index_dependencies: also index the project's direct dependencies (from pyproject.toml / requirements*.txt) in a background job.

Returns: {environment: {id, label, python, ...}, dependency_job_id, dependencies, message}. Keywords: register project, add environment, use this project, index project, registrar proyecto, anadir entorno, indexar proyecto, usar este proyecto

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
index_dependenciesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare non-readOnly, idempotent, non-destructive, closed-world. The description adds real context beyond them: the per-language default-env rule, that re-registering is harmless and re-promotes the default, and that dependency indexing runs as a background job. It stops short of stating auth requirements or what gets mutated.

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

Conciseness3/5

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

Purpose is front-loaded and args are cleanly separated, but the bilingual duplication ('register project, registrar proyecto') and the trailing Keywords list repeat the same information in two languages, adding length without adding selection value.

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

Completeness4/5

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

For a mutation tool with no output schema, the description documents the return shape ({environment, dependency_job_id, dependencies, message}), the accepted inputs, and the default-env consequence. Only the relationship to sibling tools remains unaddressed.

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

Parameters4/5

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

With 0% schema coverage the description carries the burden, and it does: 'path' is explained as an absolute path to a project folder, interpreter, or node_modules (with auto-detected venv/node_modules locations), and 'index_dependencies' is explained as indexing pyproject.toml/requirements*.txt in a background job. Both parameters get meaning beyond the bare schema.

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 (register) and resource (project folder/venv/interpreter) plus the goal (so its packages can be checked). However, it never distinguishes itself from the sibling docs_index_folder, which sounds similarly scoped, so an agent must infer the boundary.

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

Usage Guidelines3/5

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

Implies when to use it ('so its packages can be checked') and notes re-registration is harmless and re-sets the default. But it names no alternative and gives no explicit when-not guidance versus docs_index_folder or docs_libraries, leaving the sibling choice to inference.

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