Skip to main content
Glama
PVsyst CLI MCP

PVsyst CLI MCP

pvsyst_optimize_variant

Diagnose PVsyst variant anomalies, preview remediation diffs in dry runs, and clone/re-simulate corrected variants for up to five iterations without changing the baseline.

Instructions

[Simulation] Bounded Diagnose -> Clone -> Patch -> Re-simulate loop. Default dry_run=true returns deterministic remediation actions and unified diff previews without modifying files; dry_run=false with confirm=true clones new sequential variants (never mutating baseline) for up to max_iterations (1..5), stopping early once high/critical anomalies clear.

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": {
      "project": "<project>",
      "variant": "<variant>",
      "csv_name": "<csv_name>"
    },
    "name": "pvsyst_optimize_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNo
dry_runNo
projectYes
variantYes
csv_nameYes
sfi_nameNo
time_stepNohour
thresholdsNo
allow_resizeNo
min_ambient_cNo
max_iterationsNo
max_operating_cNo
allow_window_creationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses important behavior: dry_run=true is non-mutating and returns remediation actions plus diffs; dry_run=false with confirm=true clones sequential variants without mutating the baseline; the loop stops early when high/critical anomalies clear. It does not cover permission requirements or what happens when confirm is false with dry_run=false, but the key safety profile is present.

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?

Two dense sentences front-load the loop concept and then explain the dry-run/confirm safety behavior. The semicolon structure is efficient, though the second sentence packs several concepts together without much separation.

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

Completeness3/5

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

For a 13-parameter mutation-capable tool with no annotations and no output schema, the description covers the core loop and safety semantics but omits prerequisites, most parameter meanings, error conditions, and what is returned when dry_run=false actually clones variants. It is adequate but leaves meaningful gaps for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0% across 13 parameters, so the description must compensate. It explains dry_run, confirm, and max_iterations (including the 1..5 bound), but leaves project, variant, csv_name, sfi_name, time_step, thresholds, allow_resize, min_ambient_c, max_operating_c, and allow_window_creation undocumented.

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 states a specific workflow: a bounded Diagnose -> Clone -> Patch -> Re-simulate loop for a variant. It clearly implies optimization, but it does not explicitly differentiate this combined operation from siblings like pvsyst_diagnose_results or pvsyst_clone_variant.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives practical guidance for the dry_run and confirm parameters: default dry_run=true previews changes without modifying files, while dry_run=false with confirm=true performs cloning. However, it never says when to choose this tool over the individual diagnose, clone, or update tools, nor does it describe prerequisites or exclusions.

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