Skip to main content
Glama

Plan or apply LLM fixes

remediate
Destructive

Plan or apply LLM-generated fixes for Skylos static-analysis findings: use dry_run to preview a remediation plan, or disable it to edit project files in place.

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. Costs no Skylos credits. Scan tools cost no credits either.

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

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "remediate"
  }
}

Input 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

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?

The annotations already flag destructive and open-world, and the description adds the details the agent actually needs beyond that: with dry_run=False, affected code leaves the machine and goes to a third-party model provider, which requires the skylos[llm] extra and credentials. It also states that edits can be written in place, that reviewing and testing afterward is the caller's responsibility, and that this needs SKYLOS_API_KEY, with a precise fallback: the tool returns an auth error, while analyze and the local map tools keep working.

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

Conciseness3/5

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

The core behavior is front-loaded and easy to scan, but the closing paragraph lists which other tools work without a key (analyze, change_map, graph_*, the local CLI), which is about the rest of the toolset rather than this tool. The credit statements ('Costs no Skylos credits. Scan tools cost no credits either.') are repeated boilerplate that costs a few lines.

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?

It has an output schema, so return values need no explanation, and the description covers the remaining gaps: prerequisites, credential and provider behavior, the destructive mode, the fact that tests are not run, and the advice to review changes. That leaves nothing an agent needs in order to invoke it safely.

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 description coverage is 100%, so the schema already documents path, model, dry_run, severity, test_cmd and max_fixes, which sets the baseline at 3. The description reinforces what dry_run does (no files changed vs. in-place edits) and that the model parameter is tied to provider credentials, but it adds no field-level detail such as the severity ordering beyond what the enum-less schema already says.

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?

The description opens with a specific verb pair and resource: 'Plan or apply LLM-generated fixes for Skylos findings in a project.' The dry_run split (static plan vs. generating and writing edits) makes the two operating modes concrete. It does not explicitly differentiate itself from the sibling generate_fix, so it stops short of a 5.

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 clearly explains when the default safe path applies (dry_run=True, no model call, no file changes) and when the write path applies (dry_run=False, needs skylos[llm] and provider credentials). It also says what the tool will not do ('It does not run your tests'), which directs the agent to run tests itself. It never names a sibling alternative for the non-LLM case, so there are no explicit exclusions.

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