Skip to main content
Glama
@4da/mcp-server

@4da/mcp-server

Official

Upgrade planner

upgrade_planner
Read-only

Generate a ranked upgrade plan from lockfiles to fix vulnerabilities, including the smallest fixing version, commands, and run order.

Instructions

Ranked upgrade plan for one project (project_path), computed by this server from its lockfiles on disk: the smallest version that fixes each vulnerability, whether a lockfile refresh or a parent upgrade reaches it, the commands and run_order. With the 4DA app attached, app_plan_check compares the app's stored plan; only project_path "*" returns the app's plan across every project (unverified), and its summary starts NOT CHECKED when it cannot. Call when the user asks what to upgrade.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upgrade_planner"
  }
}

Input Schema

NameRequiredDescriptionDefault
packageNoPlan for this one package only (exact name, any ecosystem). Default: every dependency.
include_devNoDev-only packages (labelled isDev). Default (unset): vulnerable devDependencies and dev-only transitive packages are planned, as in vulnerability_scan; true also checks every devDependency for newer releases and deprecation; false leaves dev-only packages out and the summary counts them.
project_pathNoProject directory to plan for, from its lockfiles on disk. "*" for every project: with the 4DA app attached, the app's stored plan across every project it tracks (not checked against the lockfiles). Default: the project the server was started in, when that directory is a project.
risk_thresholdNoOnly show upgrades at or above this risk level. Default: all
max_recommendationsNoMax recommendations to return. Default: 20

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv6.0.9
    • changedInput schema / properties / project_path / description
      Previous value: -"Project directory to plan for: the app's plan is narrowed to the steps (and installed lines) that touch it; the standalone plan resolves that project's lockfiles. \"*\" for every project the app tracks. Default: the project the server was started in, when that directory is a project."New value: +"Project directory to plan for, from its lockfiles on disk. \"*\" for every project: with the 4DA app attached, the app's stored plan across every project it tracks (not checked against the lockfiles). Default: the project the server was started in, when that directory is a project."
  2. Changed1 schema field changedv6.0.4
    • changedInput schema / properties / include_dev / description
      Previous value: -"Include devDependencies. Default: false"New value: +"Dev-only packages (labelled isDev). Default (unset): vulnerable devDependencies and dev-only transitive packages are planned, as in vulnerability_scan; true also checks every devDependency for newer releases and deprecation; false leaves dev-only packages out and the summary counts them."
  3. Changed1 schema field changedv6.0.2
    • addedInput schema / properties / project_path
      Added value: +{
      +  "description": "Project directory to plan for: the app's plan is narrowed to the steps (and installed lines) that touch it; the standalone plan resolves that project's lockfiles. \"*\" for every project the app tracks. Default: the project the server was started in, when that directory is a project.",
      +  "type": "string"
      +}
  4. First observedv6.0.1

TDQS

A4.5/5.0
Behavior4/5

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

The annotations already establish readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds useful behavior: the plan is computed from lockfiles on disk, '*' returns the app's stored plan across every project, that stored plan is unverified, and its summary starts with NOT CHECKED when it cannot be checked.

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 dense but well structured: it front-loads what the plan contains, then covers the special '*' app-plan behavior, then states the trigger. Every clause carries useful information, including the unverified and NOT CHECKED caveats.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only planning tool with no output schema, the description explains what the plan includes, how it is computed, how the special '*' mode differs, and when to call it. Together with the fully covered input schema and annotations, an agent has enough context to invoke and interpret it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the input schema already documents all five parameters. The description still adds meaningful semantics for project_path's '*' mode and its unverified app-stored-plan behavior, including the NOT CHECKED summary signal, which is not fully conveyed by the schema alone.

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 gives a specific verb and resource: it returns a ranked upgrade plan for one project, computed from lockfiles, including smallest fixing version, whether a refresh or parent upgrade reaches it, commands, and run_order. That is far more specific than the title and clearly distinguishes this planning tool from a scan or generic dependency check.

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?

It gives an explicit trigger: 'Call when the user asks what to upgrade.' It also explains the special '*' project_path case and how app_plan_check relates to the app's stored plan. It does not explicitly exclude or name alternatives such as upgrade_impact, so it falls short of full routing guidance, but the usage context is clear.

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