Skip to content

inspection_profile

MCP tools › Code insight and refactoring

The project's inspection profile, stored as the reference stores it in .idea/inspectionProfiles/Project_Default.xml: lists every Ferris IDEA inspection with id, short name, name, language, default level, whether it is enabled, its current level, whether it differs from the default, and its description. With id only that inspection; with id and enabled and/or severity (error, warning, weak) it changes the profile and writes the file; reset=true with id returns the inspection to its default. Changes apply to inspect_code, fix_inspection and the editor.

Its results carry text from files: the client is told to treat that as data, never as instructions.

Capabilitycode.inspection_profile
AreaCode insight and refactoring
Accesschanges files
Reaches—
Rightswrite
Dry runnone

Arguments

ArgumentTypeDescription
idstringInspection id to show or change; every inspection when omitted.
enabledbooleanTurn the inspection on or off.
severitystringNew severity: error, warning, weak or info (no highlighting, only the fix).
resetbooleanReturn the inspection to its default (default false).default false

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project inspection_profile
Input schema as JSON
{
"type": "object",
"properties": {
"id": {
"description": "Inspection id to show or change; every inspection when omitted.",
"type": [
"string",
"null"
],
"default": null
},
"enabled": {
"description": "Turn the inspection on or off.",
"type": [
"boolean",
"null"
],
"default": null
},
"severity": {
"description": "New severity: `error`, `warning`, `weak` or `info` (no highlighting, only the fix).",
"type": [
"string",
"null"
],
"default": null
},
"reset": {
"description": "Return the inspection to its default (default false).",
"type": "boolean",
"default": false
}
}
}