Skip to main content
Glama
PVsyst CLI MCP

PVsyst CLI MCP

pvsyst_optimize_bess_sizing

Optimize hybrid PV+BESS capacity by sweeping battery kWh, PCS kW, and dispatch strategies against TOU and demand-charge tariffs, then rank candidates and verify top configurations in PVsyst.

Instructions

[Simulation] Two-stage hybrid PV+BESS capacity sizing optimizer: Stage 1 runs a fast pure-Python grid sweep over (bess_kwh x pcs_kw x strategy) against TOU and two-part demand-charge tariffs, returning ranked candidates, a CAPEX-vs-NPV Pareto frontier, and a 2D heatmap; optional Stage 2 (verify_top_k 1..5 with dry_run=false and confirm=true) runs PVsystCLI to reconcile exact KPIs.

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": {
      "baseline_csv": "<baseline_csv>",
      "installed_dc_kw": "<installed_dc_kw>",
      "bess_kwh_values": "<bess_kwh_values>",
      "pcs_kw_values": "<pcs_kw_values>",
      "tariff": "<tariff>",
      "financial": "<financial>"
    },
    "name": "pvsyst_optimize_bess_sizing"
  }
}

Input Schema

NameRequiredDescriptionDefault
tariffYes
confirmNo
dry_runNo
rank_byNonpv
financialYes
strategiesNo
bess_paramsNo
baseline_csvYes
load_profileNo
verify_top_kNo
pcs_kw_valuesYes
verify_configNo
bess_kwh_valuesYes
installed_dc_kwYes
pcs_capex_per_kwNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.5.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 burden. It discloses the two-stage process, the fast pure-Python grid sweep, the outputs returned (ranked candidates, Pareto frontier, heatmap), and the gating conditions for Stage 2. However, it omits important behavioral details such as whether Stage 2 creates project variants or files, whether the tool mutates state, or what permissions/CLI setup are required.

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?

The description is front-loaded with the main purpose and contains no filler. It is a single dense sentence with semicolons, which makes it slightly harder to parse, but every clause contributes meaningful information.

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?

Given 15 parameters, multiple nested config objects, no annotations, and no output schema, the description is not complete enough. It explains the two-stage workflow at a high level but leaves major gaps around parameter meanings, side effects of the PVsystCLI stage, and how the tool relates to alternatives in the PVsyst toolset.

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 15 parameters, so the description must compensate. It mentions a few parameters by name (bess_kwh, pcs_kw, strategy, verify_top_k, dry_run, confirm) and gives range/gating hints for verify_top_k, but it leaves most parameters (baseline_csv, installed_dc_kw, tariff, financial, bess_params, load_profile, strategies, verify_config, rank_by, pcs_capex_per_kw) without any semantic explanation.

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: a 'two-stage hybrid PV+BESS capacity sizing optimizer' that runs a grid sweep over bess_kwh, pcs_kw, and strategy. It clearly distinguishes the tool's core function, but it does not name or contrast itself with siblings like pvsyst_evaluate_economics or pvsyst_suggest_sizing.

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?

There is no explicit when-to-use guidance, no mention of alternatives, and no prerequisites such as requiring a PVsyst license for Stage 2. The only conditional guidance is behavioral (verify_top_k 1..5 with dry_run=false and confirm=true), not usage-oriented.

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