Skip to main content
Glama
PVsyst CLI MCP

PVsyst CLI MCP

pvsyst_update_variant_parameters

Updates PVsyst variant parameters such as subarrays, orientation, soiling, grid limits, economics, and outages using SHA-256 optimistic locking and rollback backup for safe edits.

Instructions

[Projects & Variants] Update variant parameters (subarray/orientation/main_array scalars, generator, power sharing, independent MPPT, display name, soiling, grid limit, auxiliaries, seasonal tilt, horizon, inverter temperature, power factor, power controls, P50/P90, string mismatch, ageing, IAM, system unavailability periods/random/removal, bifacial pvBiFacial, spectral correction, or native TEcoEvaluation for PDF financial pages) with SHA-256 optimistic locking and rollback backup.

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>"
    },
    "name": "pvsyst_update_variant_parameters"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
projectYes
variantYes
iam_updatesNo
subarray_idNo
add_utf8_bomNo
variant_nameNo
ageing_enabledNo
ageing_updatesNo
orientation_idNo
expected_sha256No
horizon_updatesNo
p50_p90_updatesNo
soiling_updatesNo
bifacial_updatesNo
seasonal_updatesNo
spectral_updatesNo
subarray_updatesNo
auxiliary_updatesNo
generator_updatesNo
grid_limit_updatesNo
main_array_updatesNo
orientation_updatesNo
power_factor_updatesNo
power_sharing_enabledNo
power_controls_updatesNo
string_mismatch_updatesNo
independent_mppt_enabledNo
native_economics_updatesNo
inverter_temperature_updatesNo
system_unavailability_updatesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.6.0
    • addedInput schema / $defs / NativeEconomicsUpdates
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Write or remove native EconomicEval=TEcoEvaluation so PVsyst PDF reports include financial pages.",
      +  "properties": {
      +    "annual_opex": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "default": 0,
      +      "title": "Annual Opex"
      +    },
      +    "battery_lifetime_years": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "default": 10,
      +      "title": "Battery Lifetime Years"
      +    },
      +    "capex_total": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Capex Total"
      +    },
      +    "consumption_tariff": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "default": 0.15,
      +      "title": "Consumption Tariff"
      +    },
      +    "currency": {
      +      "default": "USD",
      +      "title": "Currency",
      +      "type": "string"
      +    },
      +    "discount_rate_pct": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "default": 5,
      +      "title": "Discount Rate Pct"
      +    },
      +    "fuel_price_per_liter": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "default": 1.5,
      +      "title": "Fuel Price Per Liter"
      +    },
      +    "inflation_rate_pct": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "default": 2,
      +      "title": "Inflation Rate Pct"
      +    },
      +    "inverter_lifetime_years": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "default": 12,
      +      "title": "Inverter Lifetime Years"
      +    },
      +    "mode": {
      +      "default": "set",
      +      "enum": [
      +        "set",
      +        "none"
      +      ],
      +      "title": "Mode",
      +      "type": "string"
      +    },
      +    "project_life_years": {
      +      "default": 25,
      +      "maximum": 60,
      +      "minimum": 1,
      +      "title": "Project Life Years",
      +      "type": "integer"
      +    },
      +    "sale_tariff": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "default": 0.08,
      +      "title": "Sale Tariff"
      +    },
      +    "subsidies": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "default": 0,
      +      "title": "Subsidies"
      +    },
      +    "tariff_escalation_pct": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "default": 0,
      +      "title": "Tariff Escalation Pct"
      +    }
      +  },
      +  "title": "NativeEconomicsUpdates",
      +  "type": "object"
      +}
    • addedInput schema / $defs / SpectralUpdates
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Enable, configure, or disable native PVsyst spectral correction (First Solar / precipitable water).",
      +  "properties": {
      +    "coeff_set": {
      +      "default": "SiMono",
      +      "enum": [
      +        "SiMono",
      +        "SiPoly",
      +        "CdTe",
      +        "CIS",
      +        "aSi",
      +        "Custom"
      +      ],
      +      "title": "Coeff Set",
      +      "type": "string"
      +    },
      +    "coefficients": {
      +      "anyOf": [
      +        {
      +          "items": {
      +            "anyOf": [
      +              {
      +                "type": "integer"
      +              },
      +              {
      +                "type": "number"
      +              }
      +            ]
      +          },
      +          "maxItems": 6,
      +          "minItems": 6,
      +          "type": "array"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Coefficients"
      +    },
      +    "enabled": {
      +      "title": "Enabled",
      +      "type": "boolean"
      +    },
      +    "use_default_coeffs": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Use Default Coeffs"
      +    },
      +    "use_rel_hum": {
      +      "default": true,
      +      "title": "Use Rel Hum",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "enabled"
      +  ],
      +  "title": "SpectralUpdates",
      +  "type": "object"
      +}
    • changedInput schema / $defs / SystemUnavailabilityUpdates / description
      Previous value: -"Configure explicit outage periods or remove existing native PV-system outages."New value: +"Configure explicit outage periods, random outage settings, or remove existing native PV-system outages."
    • addedInput schema / $defs / SystemUnavailabilityUpdates / properties / max_duration_hours
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 8760,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Max Duration Hours"
      +}
    • addedInput schema / $defs / SystemUnavailabilityUpdates / properties / min_duration_hours
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 8760,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Min Duration Hours"
      +}
    • changedInput schema / $defs / SystemUnavailabilityUpdates / properties / mode / enum
      Previous value: -[
      -  "none",
      -  "periods"
      -]New value: +[
      +  "none",
      +  "periods",
      +  "random"
      +]
    • addedInput schema / $defs / SystemUnavailabilityUpdates / properties / period_count
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 1000,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Period Count"
      +}
    • addedInput schema / $defs / SystemUnavailabilityUpdates / properties / random_seed
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 999999,
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Random Seed"
      +}
    • addedInput schema / $defs / SystemUnavailabilityUpdates / properties / time_fraction_pct
      Added value: +{
      +  "anyOf": [
      +    {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "gt": 0,
      +      "le": 100
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Time Fraction Pct"
      +}
    • addedInput schema / properties / native_economics_updates
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/NativeEconomicsUpdates"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / spectral_updates
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/SpectralUpdates"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
  2. Changed18 schema fields changedv0.5.0
    • addedInput schema / $defs / BifacialUpdates
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Mount, update, or remove PVObject_Bifacial=pvBiFacial on an orientation.",
      +  "properties": {
      +    "bifaciality_factor": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Bifaciality Factor"
      +    },
      +    "enabled": {
      +      "default": true,
      +      "title": "Enabled",
      +      "type": "boolean"
      +    },
      +    "ground_albedo": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Ground Albedo"
      +    },
      +    "height_above_ground_m": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Height Above Ground M"
      +    },
      +    "mismatch_loss_factor": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Mismatch Loss Factor"
      +    },
      +    "model": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "Sheds2D",
      +            "Trackers2D"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Model"
      +    },
      +    "n_sheds_user": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "N Sheds User"
      +    },
      +    "param_origin": {
      +      "anyOf": [
      +        {
      +          "enum": [
      +            "UnlimSheds",
      +            "RegularSheds"
      +          ],
      +          "type": "string"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Param Origin"
      +    },
      +    "pitch_user_m": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Pitch User M"
      +    },
      +    "rear_shading_factor": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Rear Shading Factor"
      +    },
      +    "shed_pitch_from_user": {
      +      "anyOf": [
      +        {
      +          "type": "boolean"
      +        },
      +        {
      +          "type": "null"
      +        }
      +      ],
      +      "default": null,
      +      "title": "Shed Pitch From User"
      +    }
      +  },
      +  "title": "BifacialUpdates",
      +  "type": "object"
      +}
    • changedInput schema / $defs / GeneratorUpdates / properties / operating_power_kw / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "number"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / GeneratorUpdates / properties / thresholds / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {
      -      "additionalProperties": {
      -        "type": "number"
      -      },
      -      "type": "object"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {
      +      "additionalProperties": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      },
      +      "type": "object"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / P50P90Updates / description
      Previous value: -"Complete native P50 parameters for an existing GUI-produced result template."New value: +"P50/P90 probabilistic simulation parameters on an existing result block."
    • changedInput schema / $defs / PowerControlsUpdates / description
      Previous value: -"One native transaction; the standalone editors retain their existing domains."New value: +"Combined power factor and grid limit transaction."
    • changedInput schema / $defs / SystemUnavailabilityUpdates / description
      Previous value: -"Remove existing native PV-system outages without generating a schedule."New value: +"Configure explicit outage periods or remove existing native PV-system outages."
    • removedInput schema / $defs / SystemUnavailabilityUpdates / properties / mode / const
      Removed value: -"none"
    • addedInput schema / $defs / SystemUnavailabilityUpdates / properties / mode / enum
      Added value: +[
      +  "none",
      +  "periods"
      +]
    • addedInput schema / $defs / SystemUnavailabilityUpdates / properties / periods
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "$ref": "#/$defs/UnavailabilityPeriod"
      +      },
      +      "maxItems": 1000,
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Periods"
      +}
    • addedInput schema / $defs / UnavailabilityPeriod
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "Explicit PVsyst planned outage start timestamp (DD/MM/YY HH:MM) and duration in hours.",
      +  "properties": {
      +    "date_beg": {
      +      "title": "Date Beg",
      +      "type": "string"
      +    },
      +    "duration_hours": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ],
      +      "title": "Duration Hours"
      +    }
      +  },
      +  "required": [
      +    "date_beg",
      +    "duration_hours"
      +  ],
      +  "title": "UnavailabilityPeriod",
      +  "type": "object"
      +}
    • addedInput schema / properties / bifacial_updates
      Added value: +{
      +  "anyOf": [
      +    {
      +      "$ref": "#/$defs/BifacialUpdates"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / expected_sha256 / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / expected_sha256 / default
      Added value: +null
    • removedInput schema / properties / expected_sha256 / type
      Removed value: -"string"
    • changedInput schema / properties / main_array_updates / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {
      -      "type": "number"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / orientation_updates / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {
      -      "type": "number"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / subarray_updates / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {
      -      "type": "number"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {
      +      "anyOf": [
      +        {
      +          "type": "integer"
      +        },
      +        {
      +          "type": "number"
      +        }
      +      ]
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / required
      Previous value: -[
      -  "project",
      -  "variant",
      -  "expected_sha256"
      -]New value: +[
      +  "project",
      +  "variant"
      +]
  3. First observedv0.1.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses SHA-256 optimistic locking and rollback backup, which are valuable traits beyond the schema, but it omits conflict handling, dry-run semantics, permissions, and whether updates are partial or full replacements.

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 purpose and locking behavior are front-loaded, and there is no filler. But the long parenthetical catalog makes the description a run-on list that is harder to scan than a structured breakdown would be.

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

Completeness2/5

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

This is a complex 31-parameter mutation tool with no annotations and no output schema. The description covers broad scope and backup behavior but is incomplete regarding validation, partial-update semantics, conflict resolution, return behavior, and required identifiers.

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?

The description lists many update categories that map to nested update parameters, such as soiling, horizon, power factor, and system unavailability. However, with 31 parameters and 0% top-level schema description coverage, it leaves core parameters like project, variant, dry_run, subarray_id, orientation_id, and add_utf8_bom unexplained.

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 verb and resource ('Update variant parameters') and enumerates the parameter families it covers. It is clearly distinguishable from a read tool such as pvsyst_get_variant_parameters, though it does not explicitly contrast itself with sibling mutation tools like pvsyst_update_component.

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

Usage Guidelines2/5

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

It provides no explicit when-to-use guidance, prerequisites, or exclusions. An agent can infer that it is for updating an existing variant, but the description does not say when to choose this over other update or creation tools.

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