Skip to main content
Glama

detect_project_environment

Inspects local project files to identify Node.js runtime, package manager, locked dependencies, and config formats for accurate setup and migration guidance.

Instructions

Detects Node.js runtime, package manager (npm/pnpm/yarn/bun), locked dependency versions, and config paradigms (ESLint flat config, Tailwind v4 CSS-first, Next.js App/Pages router, tsconfig) from local project files without network calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_pathYesAbsolute path to the project or workspace package root directory containing package.json

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 burden; it usefully discloses that detection is local and network-free, which is real behavioral value. However it omits failure/error behavior (e.g. missing package.json), whether it is strictly read-only, and any output shape, leaving notable gaps for an unannotated tool.

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?

A single front-loaded sentence opens with the verb and then enumerates the detectable items. The parenthetical lists are dense but each item is informative, so nearly every token earns its place.

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 one-parameter tool with no output schema, the description enumerates what will be detected, which effectively conveys the return content. It is nearly complete, missing only error conditions and confirmation that the operation is non-mutating.

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?

There is a single parameter at 100% schema description coverage, so the schema already documents project_path fully. The description adds only the loose notion of 'local project files' and no syntax or format detail beyond the schema, so the baseline of 3 applies.

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 ('Detects') and enumerates the exact resources: Node.js runtime, package manager, locked dependency versions, and specific config paradigms. The read-only, local-only framing ('from local project files') clearly separates it from the sibling tools, which concern compatibility checking, setup guides, and upgrade steps.

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?

The phrase 'from local project files without network calls' implies a first-step, offline detection context, but the description never states when to reach for this tool versus siblings like check_dependency_compatibility or get_upgrade_steps. Usage is inferable but not explicit.

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