Skip to main content
Glama
PVsyst CLI MCP

PVsyst CLI MCP

pvsyst_build_sourced_component

Builds user-defined PVsyst PAN, OND, or BTR components from cited datasheet values—via template or zero-template derivation—so declarations can be dry-run validated before writing.

Instructions

[Components] Build a new user-defined PAN, OND, or Li-ion BTR from cited datasheet values: either derived from a template (template_name set) or synthesized zero-template with single-diode / single- or 3-voltage Mode-1 OND / Li-ion LFP-NMC BTR derivation (template_name omitted). Requires acknowledge_inherited_model=true when dry_run=false.

Canonical declaration fields and allowed units (case-sensitive PVsyst keys):

  • Common dimensions: Width (m|mm), Height (m|mm), Depth (m|mm), Weight (kg)

  • PAN: PNom (W), ISC (A), Voc (V), Imp (A), Vmp (V), NCelS (count|cells), NCelP (count|strings), NDiode (count), BifacialityFactor (ratio|%), VMaxIEC (V), VMaxUL (V), MuISC (mA/degC|mA/C|A_per_degC|pct_per_degC), muVocSpec (mV/degC|mV/C|V_per_degC|pct_per_degC), muPmpReq (pct_per_degC)

  • OND: PNomConv (kW), PMaxOUT (kW), VMppMin (V), VMPPMax (V), VAbsMax (V), EfficMax (%), EfficEuro (%), VOutConv (V), NbMPPT (count), NbInputs (count), IDCMax (A), VNomEff1..3 (V), EfficMaxV1..3 (%), EfficEuroV1..3 (%)

  • BTR: CapNomC10 (Ah), EnergyKWh (kWh), VNom (V), NCellSerie (count|cells), NCellParall (count|strings), ResInterne (mOhm|Ohm), EfficI (ratio|%), IMaxCharge (A), IMaxDischarge (A), CycleLife80DOD (count|cycles), SOHEOL (ratio|%), DureeVie20 (years|yr).

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": {
      "component_type": "<component_type>",
      "new_name": "<new_name>",
      "manufacturer": "<manufacturer>",
      "model": "<model>",
      "sources": "<sources>",
      "declarations": "<declarations>"
    },
    "name": "pvsyst_build_sourced_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelYes
dry_runNo
sourcesYes
new_nameYes
chemistryNoLFP
declarationsYes
manufacturerYes
template_nameNo
component_typeYes
source_libraryNoworkspace
acknowledge_inherited_modelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.5.0
    • addedInput schema / properties / chemistry
      Added value: +{
      +  "default": "LFP",
      +  "enum": [
      +    "LFP",
      +    "NMC"
      +  ],
      +  "title": "Chemistry",
      +  "type": "string"
      +}
    • changedInput schema / properties / component_type / enum
      Previous value: -[
      -  "PAN",
      -  "OND"
      -]New value: +[
      +  "PAN",
      +  "OND",
      +  "BTR"
      +]
    • addedInput schema / properties / template_name / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / template_name / default
      Added value: +null
    • removedInput schema / properties / template_name / type
      Removed value: -"string"
    • changedInput schema / required
      Previous value: -[
      -  "component_type",
      -  "template_name",
      -  "new_name",
      -  "manufacturer",
      -  "model",
      -  "sources",
      -  "declarations"
      -]New value: +[
      +  "component_type",
      +  "new_name",
      +  "manufacturer",
      +  "model",
      +  "sources",
      +  "declarations"
      +]
  2. First observedv0.1.0

TDQS

A3.7/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 dry-run gating rule and that construction depends on citation agreement, but it does not say what gets written when dry_run is false, what happens on a declaration/source mismatch, whether the resulting component lands in the workspace library, or whether the operation is reversible.

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 operating modes and the acknowledgement requirement are front-loaded in the first two sentences, then the field/unit reference follows as a scannable grouped list. The list is dense and long, but each entry carries real information that the schema does not provide.

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 an 11-parameter, nested-object, no-output-schema tool, the description covers the domain values well but omits the shape and semantics of the two most important structured inputs: the `sources` map and the `declarations` array (including how source_id links to a source and how excerpt/value text are validated). An agent still has to infer the citation plumbing from the raw schema.

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

Parameters4/5

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

Schema description coverage is 0%, so the description must compensate. It does substantial work: it explains template_name's two-way meaning, the acknowledge_inherited_model precondition, and enumerates the canonical declaration field keys with case-sensitive allowed units per component type (PAN, OND, BTR). It leaves `sources`, `declarations`, `source_library`, and `chemistry` unexplained, so coverage is meaningful but partial.

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 first sentence states a specific verb and resource ('Build a new user-defined PAN, OND, or Li-ion BTR') and adds a crucial qualifier ('from cited datasheet values') that distinguishes it from a plain create. It does not explicitly name the sibling it differs from (e.g. pvsyst_create_component), so the differentiation is implied rather than stated.

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 the two construction modes and the condition that selects each: template_name set means derivation from a template, template_name omitted means zero-template single-diode / Mode-1 OND / LFP-NMC derivation. It also states the gating condition 'Requires acknowledge_inherited_model=true when dry_run=false'. It gives no guidance on when to prefer this over the plain create/update component siblings.

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