Zenvo MCP Server presents 6 tools with basic definitions but significant quality gaps. All tools have descriptions (10-50 chars, below ideal 50-200 char range) and input schemas with typed parameters. However, descriptions are minimal and lack actionable context for LLM decision-making. No tool annotations (readOnlyHint/destructiveHint/idempotentHint) are present despite clear risk distinctions (3 READ_ONLY, 1 WRITE, 1 REVERSIBLE, 1 READ_ONLY). Output schemas are not documented in the source. Parameter descriptions exist but are terse. Error handling and recovery guidance are not evident in the tool definitions. The tools follow basic verb_noun naming (get_, detect_, run_, sync_, fix_, search_) but lack interdependency documentation (e.g., fix_drift's 'execute' parameter needs more context about what 'execute' means).
Tool descriptions are too brief (10-50 chars). Pattern requires 50-200 chars with WHAT, WHEN, and prerequisites. Current descriptions like 'Detect Node.js subdirectories' omit when to call this vs. alternatives, expected output structure, and failure modes.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) present. Tools have explicit risk labels (READ_ONLY, WRITE, REVERSIBLE) in metadata but are not expressed in schema. sync_environment and fix_drift are state-changing but lack destructiveHint to warn agents. This violates spec alignment for current MCP patterns.
Parameter descriptions are minimal or absent context. E.g., fix_drift has 'safe_only' boolean but no explanation of what constitutes a 'safe' repair. 'constraint' in search_package_versions mentions format examples but should explicitly state it accepts semver constraint syntax (^, ~, >=, etc.).
Recommendations
Expand tool descriptions to 50-200 chars following the pattern: 'Detects Node.js projects in subdirectories by scanning for package.json files. Returns a list of relative paths to project roots. Call this first to identify which projects in your workspace need syncing. Safe to call repeatedly; non-destructive read-only operation.'
Add explicit tool annotations to the JSON schema: set 'readOnlyHint': true for detect_node_projects, get_environment_status, run_doctor, search_package_versions; set 'destructiveHint': true for sync_environment; set 'destructiveHint': true and 'confirmationRequired': true for fix_drift with execute=true.
Document all parameter constraints in descriptions: For 'path' param, state 'Relative or absolute filesystem path. If not provided, defaults to current working directory. Must be a valid directory; relative paths are resolved from cwd.' For 'constraint' param in search_package_versions, state 'Semver constraint: ^X.Y.Z (caret, compatible with minor), ~X.Y.Z (tilde, compatible with patch), >=X.Y.Z, <=X.Y.Z, X.Y.Z (exact). Examples: ^18.0.0, ~0.31, >=16.0.0. If omitted, returns latest versions without filtering.'
Define and document output schemas for all 6 tools. Example for detect_node_projects: 'Returns object {projects: [{path: string, package_name?: string}], count: number, scanned_dirs: number}'. Example for fix_drift: 'Returns object {plan: [{action: string, details: string, risk: 'low'|'medium'|'high'}], executed: boolean, summary: string, affected_files: string[]}'
Output schemas not documented in source code. No visible definition of what detect_node_projects returns (array of paths?), what sync_environment returns (success boolean + summary?), or what run_doctor returns (array of check results?). LLM cannot plan downstream operations without this.
No error recovery guidance. Tools like fix_drift with 'execute' flag and run_doctor with 'category' filter do not document what errors are retryable, what are user-fixable, or what are fatal. No examples of expected error responses.
Parameter 'path' appears in 4 tools with description 'Optional path to change directory to'. This is under-specified, does the tool resolve relative paths? What if the path doesn't exist? What are the security implications of arbitrary path traversal in agent calls?
fix_drift combines two responsibilities: 'generate repair plan' and 'optionally execute it'. If execute=false, the tool returns a plan but does not apply it. If execute=true, it applies it. This conflates read and write semantics in one tool, better design: separate generate_drift_plan (read-only) and apply_drift_plan (write).
fix_drift
Add error recovery guidance to tool descriptions. Example for fix_drift: 'On permission error, returns {error: 'PERMISSION_DENIED', path: string, required_permission: string}. On validation error, returns {error: 'INVALID_PLAN', issues: string[]}. Retryable errors include TIMEOUT and TEMP_UNAVAILABLE.'
Implement input validation with actionable error messages. If path does not exist, return '{error: 'PATH_NOT_FOUND', provided_path: string, parent_exists: boolean, suggestion: string}'. If 'category' is invalid in run_doctor, return '{error: 'INVALID_CATEGORY', provided: string, valid_options: ['toolchain', 'lockfile', 'deps', 'frameworks']}'.
Consider splitting fix_drift into two tools: 'generate_drift_repair_plan' (read-only, returns plan without execution) and 'apply_drift_repair_plan' (destructive, applies a plan generated in prior step). This aligns with single-responsibility pattern and prevents accidental mutations.
Add parameter enums where possible. For run_doctor 'category' param, declare enum: ['toolchain', 'lockfile', 'deps', 'frameworks', 'all'] instead of free-form string. This prevents LLM hallucination of invalid categories.
Document interdependencies between tools. E.g., 'detect_node_projects identifies projects; pipe results to get_environment_status(path) to check each project status. Then call sync_environment(path) to update env.lock for each project.'
Add explicit idempotency guidance: get_environment_status and run_doctor are fully idempotent. detect_node_projects is idempotent. sync_environment is idempotent (writes are idempotent if env.lock structure is stable). fix_drift with execute=true may not be idempotent if repairs involve deletions, document this in the error recovery section.