Skip to main content
Glama

scan_dependencies

List a project's resolved dependencies by parsing its lockfiles and manifests, returning each dependency's name, version, and ecosystem.

Instructions

List a project's resolved dependencies by parsing its lockfiles/manifests (Cargo.lock, package-lock.json, package.json, requirements.txt, go.mod/go.sum). Returns each dependency's name, version, and ecosystem. Use this to give the assistant ground-truth about exactly which packages and versions a project actually uses.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoPath to the project directory. Defaults to the current working directory.
Behavior4/5

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

With no annotations, the description fully explains behavior: it parses specific files and returns dependency details. It does not disclose side effects, but the tool is likely read-only. The description is sufficiently transparent for a simple listing tool.

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

Conciseness5/5

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

The description is two sentences with no wasted words. It front-loads the key action and list of files, then explains utility. Every sentence adds 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?

The tool is simple (one parameter, no output schema). The description covers what, how, and why. It does not mention error handling or behavior when no lockfiles are found, but it's otherwise complete.

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 only one parameter (path) with 100% schema coverage. The description adds context about the path being the project directory, but the schema already describes it. The description does not go into depth beyond the schema, earning a baseline score.

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 specifies the tool lists resolved dependencies by parsing lockfiles/manifests, naming specific files (Cargo.lock, package-lock.json, etc.) and return fields (name, version, ecosystem). It clearly distinguishes from sibling check_vulnerabilities.

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?

The description advises using it to give the assistant ground-truth about project dependencies, indicating clear context for use. It does not explicitly exclude scenarios or mention when not to use it, but the sibling tool provides a natural alternative.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/RP-Digital-Innovations/context-snipe'

If you have feedback or need assistance with the MCP directory API, please join our Discord server