Skip to main content
Glama

analyze_project_dependencies

Analyze package.json for platform components that should be optionalDependencies set to version "instance" when adding or changing instance-backed dependencies before snc ui-component deploy --fa.

Instructions

Analyzes a Next Experience UI component project package.json for platform components that should be declared as optionalDependencies with the version set to "instance". Use this when adding or changing instance-backed platform dependencies, including preparation for eventual deployment with snc ui-component deploy --fa, regardless of the local preview workflow.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
packageJsonPathYesPath to the target project package.json, absolute or relative to the current working directory.
plannedComponentTagsNoOptional list of planned platform component tags, such as now-button or now-modal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It adds real domain context (optionalDependencies, version "instance", the --fa deploy path), but leaves the most consequential behavioral question open: does it only report findings or also mutate package.json? Read-only is inferable from 'analyzes' but never stated, and there is no mention of return shape or failure modes.

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?

Two sentences, front-loaded with the what before the when, with no filler. The trailing 'regardless of the local preview workflow' clause is slightly awkward but does eliminate a real mis-selection, so it earns its place.

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?

There is no output schema and no annotations, so the description must cover the whole picture. It handles purpose and triggering well, but an agent still cannot tell whether the tool writes to package.json or only recommends changes, nor what the analysis produces. Adequate but with a meaningful gap for a mutation-adjacent tool.

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%, so both packageJsonPath and plannedComponentTags are already documented in the schema; the baseline is 3. The description reinforces the domain meaning of the components involved but adds no syntax, format, or default guidance beyond the schema.

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 (analyzes) and a precisely bounded resource (a Next Experience UI component project's package.json) plus the exact thing being looked for: platform components that should be declared as optionalDependencies with version "instance". An agent can tell this apart from validate_now_ui_manifest or resolve_component_package without opening any schema.

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

Usage Guidelines4/5

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

Gives an explicit trigger: 'Use this when adding or changing instance-backed platform dependencies', and ties it to a concrete downstream action (preparation for snc ui-component deploy --fa). It also clears away a potential false trigger with 'regardless of the local preview workflow'. No sibling alternative is named, so it stops short of a 5.

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