Skip to main content
Glama

Plan or apply LLM fixes

remediate
Destructive

Plan or apply LLM-generated fixes for Skylos findings. Dry-run by default; set dry_run=false to edit files, then review changes and run tests before keeping.

Instructions

Plan or apply LLM-generated fixes for Skylos findings in a project.

With dry_run=True (default), static analysis returns a remediation plan without calling a model or changing files. With dry_run=False, it generates fixes and can edit files in place: this needs the skylos[llm] extra and provider configuration (including credentials when required), and sends affected code to that provider. It does not run your tests. Review every change and run trusted tests before keeping it.

Requires SKYLOS_API_KEY: this tool returns an authentication error unless the MCP server is started with SKYLOS_API_KEY set. Without a key only analyze works (5 calls/day). The local CLI needs no key: skylos verify <file> and skylos agent install-hooks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesDirectory or file to scan. A relative path resolves against the MCP server's working directory.
modelNoLLM model name passed to the provider (e.g. gpt-4.1 or a Claude model). Configure the provider's credentials in the MCP server's environment when required by that provider.gpt-4.1
dry_runNoTrue (default) only plans the fixes. False writes the generated edits to files in `path`.
severityNoOnly fix findings at this severity or above: critical, high, medium or low.
test_cmdNoNot supported over MCP; non-empty values are rejected. Run tests yourself after reviewing the fixes.
max_fixesNoMaximum number of findings to fix in this run.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv4.49.0
    • addedInput schema / properties / dry_run / description
      Added value: +"True (default) only plans the fixes. False writes the generated edits to files in `path`."
    • addedInput schema / properties / max_fixes / description
      Added value: +"Maximum number of findings to fix in this run."
    • addedInput schema / properties / model / description
      Added value: +"LLM model name passed to the provider (e.g. gpt-4.1 or a Claude model). Configure the provider's credentials in the MCP server's environment when required by that provider."
    • addedInput schema / properties / path / description
      Added value: +"Directory or file to scan. A relative path resolves against the MCP server's working directory."
    • addedInput schema / properties / severity / description
      Added value: +"Only fix findings at this severity or above: critical, high, medium or low."
    • addedInput schema / properties / test_cmd / description
      Added value: +"Not supported over MCP; non-empty values are rejected. Run tests yourself after reviewing the fixes."
  2. Addedv4.10.0

TDQS

A4.1/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing that dry_run=False sends affected code to a third-party provider (reinforcing openWorldHint), edits files in place (reinforcing destructiveHint), requires the skylos[llm] extra and credentials, does not run tests, and demands review. This is exactly the behavioral context annotations alone cannot convey.

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

Conciseness4/5

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

Front-loaded with the core purpose and mode split, and most sentences carry real information. It is somewhat long, and the trailing local-CLI/`analyze` note, while useful, is tangential to invoking this tool.

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 high-risk mutation tool with 6 parameters and an output schema, the description covers the necessary prerequisites, data-flow implications, and post-run caution. Return values are handled by the output schema, so nothing essential is missing.

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?

Schema coverage is 100%, so all six parameters are already documented in the schema, establishing a baseline of 3. The description reinforces the dry_run and model semantics and adds the credential/environment angle, but adds little syntax or format detail beyond what the schema already provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (plan or apply LLM-generated fixes) and resource (Skylos findings in a project), and clearly splits the two operating modes. It does not, however, distinguish itself from the nearby sibling `generate_fix`, which sounds like it may overlap, leaving the agent to infer the boundary.

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?

Gives explicit conditional context: dry_run=True plans only, dry_run=False edits in place, and it names prerequisites (skylos[llm], provider config/credentials, SKYLOS_API_KEY) plus what happens without a key (only `analyze` works, 5 calls/day). It lacks an explicit statement of when to prefer this over `generate_fix` or `validate_code_change`, so it falls short of a full 5.

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