Skip to main content
Glama
PVsyst CLI MCP

PVsyst CLI MCP

pvsyst_create_grid_storage_variant

Create a new AC-coupled battery storage variant from an existing one by updating SOC limits, power caps, efficiencies, grid limit, or dispatch strategy and export rules.

Instructions

[Loads & Storage] Create a new variant updating SOC thresholds, AC charge/discharge power limits, converter efficiencies, strategy/schedules (SelfConsumption, WeakGrid, PeakShaving, PowerShift), grid_limit_kw, or allow_grid_export on an existing AC storage variant.

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>",
      "source_variant": "<source_variant>",
      "new_variant": "<new_variant>",
      "updates": "<updates>"
    },
    "name": "pvsyst_create_grid_storage_variant"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
projectYes
updatesYes
new_variantYes
availabilityNo
source_variantYes
allow_grid_exportNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.7.0
    • changedInput schema / $defs / GridAvailabilityProfile / properties / utc_offset_hours / anyOf
      Previous value: -[
      -  {
      -    "type": "integer"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maximum": 14,
      +    "minimum": -12,
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  2. Changed18 schema fields changedv0.6.0
    • addedInput schema / $defs / GridAvailabilityProfile / description
      Added value: +"Explicit 8760/8784-hour CSV or deterministically generated WeakGrid outage schedule."
    • addedInput schema / $defs / GridAvailabilityProfile / properties / csv_name / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / $defs / GridAvailabilityProfile / properties / csv_name / default
      Added value: +null
    • removedInput schema / $defs / GridAvailabilityProfile / properties / csv_name / type
      Removed value: -"string"
    • addedInput schema / $defs / GridAvailabilityProfile / properties / max_duration_hours
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 168,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Max Duration Hours"
      +}
    • addedInput schema / $defs / GridAvailabilityProfile / properties / min_duration_hours
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 168,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Min Duration Hours"
      +}
    • addedInput schema / $defs / GridAvailabilityProfile / properties / mode
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "csv",
      +        "generated"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Mode"
      +}
    • addedInput schema / $defs / GridAvailabilityProfile / properties / outage_count
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maximum": 365,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Outage Count"
      +}
    • addedInput schema / $defs / GridAvailabilityProfile / properties / peak_hours
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "type": "integer"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Peak Hours"
      +}
    • addedInput schema / $defs / GridAvailabilityProfile / properties / seed
      Added value: +{
      +  "anyOf": [
      +    {
      +      "minimum": 0,
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Seed"
      +}
    • addedInput schema / $defs / GridAvailabilityProfile / properties / time_basis / anyOf
      Added value: +[
      +  {
      +    "const": "local_standard_interval_start",
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / $defs / GridAvailabilityProfile / properties / time_basis / const
      Removed value: -"local_standard_interval_start"
    • addedInput schema / $defs / GridAvailabilityProfile / properties / time_basis / default
      Added value: +null
    • removedInput schema / $defs / GridAvailabilityProfile / properties / time_basis / type
      Removed value: -"string"
    • addedInput schema / $defs / GridAvailabilityProfile / properties / utc_offset_hours / anyOf
      Added value: +[
      +  {
      +    "type": "integer"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / $defs / GridAvailabilityProfile / properties / utc_offset_hours / default
      Added value: +null
    • removedInput schema / $defs / GridAvailabilityProfile / properties / utc_offset_hours / type
      Removed value: -"integer"
    • changedInput schema / $defs / GridAvailabilityProfile / required
      Previous value: -[
      -  "csv_name",
      -  "year",
      -  "utc_offset_hours",
      -  "time_basis"
      -]New value: +[
      +  "year"
      +]
  3. Changed13 schema fields changedv0.5.0
    • changedInput schema / $defs / GridStorageUpdates / description
      Previous value: -"Native existing AC-coupled storage scalars; unknown fields stop at the boundary."New value: +"Native existing AC-coupled storage controls and schedules; unknown fields stop at the boundary."
    • addedInput schema / $defs / GridStorageUpdates / properties / charging_power_kw
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Charging Power Kw"
      +}
    • addedInput schema / $defs / GridStorageUpdates / properties / charging_pv_fraction
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Charging Pv Fraction"
      +}
    • addedInput schema / $defs / GridStorageUpdates / properties / charging_schedule_48
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      },
      +      "maxItems": 48,
      +      "minItems": 48,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Charging Schedule 48"
      +}
    • addedInput schema / $defs / GridStorageUpdates / properties / charging_strategy
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "pv_available",
      +        "pv_above_thresh",
      +        "pv_to_grid_min",
      +        "pv_prod_fraction",
      +        "spec_charg_power"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Charging Strategy"
      +}
    • addedInput schema / $defs / GridStorageUpdates / properties / coupling
      Added value: +{
      +  "const": "ac_coupled",
      +  "default": "ac_coupled",
      +  "title": "Coupling",
      +  "type": "string"
      +}
    • addedInput schema / $defs / GridStorageUpdates / properties / discharge_end_hour
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Discharge End Hour"
      +}
    • addedInput schema / $defs / GridStorageUpdates / properties / discharge_start_hour
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Discharge Start Hour"
      +}
    • addedInput schema / $defs / GridStorageUpdates / properties / discharging_power_kw
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Discharging Power Kw"
      +}
    • addedInput schema / $defs / GridStorageUpdates / properties / discharging_schedule_48
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "number"
      +          }
      +        ]
      +      },
      +      "maxItems": 48,
      +      "minItems": 48,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Discharging Schedule 48"
      +}
    • addedInput schema / $defs / GridStorageUpdates / properties / discharging_strategy
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "immediate",
      +        "after_sunset",
      +        "night",
      +        "hour_window",
      +        "specified_hours"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Discharging Strategy"
      +}
    • addedInput schema / $defs / GridStorageUpdates / properties / grid_limit_kw
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "number"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "title": "Grid Limit Kw"
      +}
    • changedInput schema / $defs / GridStorageUpdates / properties / strategy / anyOf
      Previous value: -[
      -  {
      -    "enum": [
      -      "self_consumption",
      -      "weak_grid"
      -    ],
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "enum": [
      +      "self_consumption",
      +      "weak_grid",
      +      "peak_shaving",
      +      "power_shift"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
  4. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, yet it omits the most consequential behavioral fact: dry_run defaults to true, meaning a call does not actually persist anything unless overridden. It also does not say whether the source variant is left untouched, what happens on invalid updates, or what the tool returns. "Unknown fields stop at the boundary" appears only inside the schema, not in the description.

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 verb and resource, then a compact enumeration of the mutable field groups; there is essentially no filler. It loses a point for being one long run-on sentence with a bracketed category tag that an agent cannot act on, making the clause boundaries harder to parse than a short bulleted list 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 7-parameter mutation tool with two nested object definitions, no annotations, and no output schema, so the description must do heavy lifting. It leaves the default-dry-run safety behavior, the availability/outage-profile input, and any notion of what the call produces or how failures surface entirely undocumented, which is inadequate for this complexity.

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 reported as 0%, so the description does real work by enumerating the families of updatable fields, matching many of the nested GridStorageUpdates properties. But it says nothing about the top-level parameters that most affect invocation: dry_run, availability (the WeakGrid 8760/8784-hour outage profile), and how project/source_variant/new_variant relate. Its strategy names ("SelfConsumption", "PeakShaving") also differ in casing from the schema enum values (self_consumption, peak_shaving).

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 and resource ("Create a new variant") plus the exact categories of fields it can override (SOC thresholds, AC power limits, converter efficiencies, strategy/schedules, grid_limit_kw, allow_grid_export) and constrains scope to "an existing AC storage variant". This clearly separates it from sibling creators like pvsyst_create_grid_storage_system or pvsyst_create_ac_cabling_variant, though no sibling is named explicitly.

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?

The phrase "on an existing AC storage variant" and the required source_variant/new_variant pairing imply this is a copy-and-modify operation rather than greenfield creation, which is useful routing signal. However there is no explicit when-to-use vs. when-not guidance, no mention of when to prefer pvsyst_update_variant_parameters or pvsyst_create_grid_storage_system instead, and no stated prerequisites (e.g. the source variant must already have AC storage configured).

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