# Get package dependencies - al_getpackagedependencies
Applies to: AL Language extension 17.0 and later | Available in: AL MCP Server only
The al_getpackagedependencies tool reads the app.json file of an AL project and returns its declared package dependencies-including the app name, publisher, app ID (GUID), and version range for each dependency.
Use this tool to understand what packages a project requires before downloading symbols or publishing, to audit dependency graphs, or to check whether a specific package is referenced.
> NOTE
> This tool is available on the AL MCP Server only. In Visual Studio Code, inspect the app.json file directly to view dependencies.
## Parameters
Parameter|Type|Default|Description
projectPath|string|First project in workspace|Absolute path to the AL project folder containing app.json.
name|string|-|Optional. When specified, returns only the dependency matching this app name.
## Return value
Property|Type|Description
Succeeded|boolean|true if the operation completed successfully.
ModuleName|string|The name of the queried project or module.
Dependencies|array|List of dependency items (see below).
Message|string|Error description if Succeeded is false.
Each item in Dependencies has:
Property|Type|Description
Name|string|App name.
Publisher|string|Publisher name.
Id|string|App ID (GUID).
Version|string|Required version range (for example, `"24.0.0.0"`).
## Examples
### List all dependencies for the workspace project
```json
{}
```
### List dependencies for a specific project
```json
{
  "projectPath": "C:/repos/MyExtension"
}
```
### Check whether a specific package is a dependency
```json
{
  "projectPath": "C:/repos/MyExtension",
  "name": "Base Application"
}
```
## Suggested next steps
 Use the returned dependency list to decide which packages to download with al_downloadsymbols<al-tool-download-symbols>.
 Compare the declared dependencies against what is available in `.alpackages` to identify missing symbols.
## Related tools
 al_downloadsymbols<al-tool-download-symbols> - Download the symbol packages for the listed dependencies.
 al_symbolsearch<al-tool-symbol-search> - Search symbols within the downloaded packages.
## Related information
AI agent tools overview<al-agent-tools-overview>
AL MCP Server reference<al-mcp-server>

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/al-agent-tools/al-tool-get-package-dependencies, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/al-agent-tools/al-tool-get-package-dependencies/
