

# Using Spark Upgrade Tools
<a name="emr-spark-upgrade-agent-tools"></a>

## Available Upgrade Tools
<a name="emr-spark-upgrade-agent-available-tools"></a>

The MCP service provides several tools to assist with Spark upgrades. The major tools are the following:


|  | Tool name | Tool Category | Description | 
| --- | --- | --- | --- | 
| 1 | generate\$1spark\$1upgrade\$1plan | Planner | Generate a EMR-EC2/EMR-S upgrade plan | 
| 2 | reuse\$1existing\$1spark\$1upgrade\$1plan | Planner | Reuse existing local upgrade plan | 
| 3 | update\$1build\$1configuration | Build | Upgrade build configuration files | 
| 4 | check\$1and\$1update\$1build\$1environment | Build | Check/update Java environment for Spark upgrade | 
| 5 | compile\$1and\$1build\$1project | Build | Provide guidance for compiling/building project | 
| 6 | run\$1validation\$1job | Test | Submit Spark app to EMR-EC2/EMR-S | 
| 7 | check\$1job\$1status | Test | Check status of EMR-EC2 step or EMR-S job run | 
| 8 | check\$1and\$1update\$1python\$1environment | Spark code edit | Check/update Python env for Spark upgrade | 
| 9 | fix\$1upgrade\$1failure | Spark code edit | Analyze a failure and suggest fixes | 
| 10 | get\$1data\$1quality\$1summary | Observablity | Retrieve the data quality summary after the application is upgraded | 
| 11 | describe\$1upgrade\$1analysis | Observablity | describe the given analysis | 
| 12 | list\$1upgrade\$1analyses | Observablity | list all analyses created by current account | 

For a full list of all the upgrade tools provided by the SMUS Managed MCP server, you may list all tools from the server.