Skip to main content
Glama
PVsyst CLI MCP

PVsyst CLI MCP

pvsyst_update_component

Update allowlisted scalar fields, commercial metadata, remarks, and OND/BTR curve tables in workspace components with SHA-256 locking and auto backup; refit single-diode after PAN STC edits.

Instructions

[Components] Update allowlisted scalar fields, commercial metadata, remarks (up to 5 lines), or Mode 1 OND (single- or 3-voltage ProfilPIOV1..3) / BTR curve tables (4..256 points via curve_updates or curve_csv) in a workspace component with SHA-256 optimistic locking and automatic backup. Set refit_single_diode=true on PAN STC edits to refit single-diode params.

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>",
      "filename": "<filename>",
      "updates": "<updates>"
    },
    "name": "pvsyst_update_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
remarksNo
updatesYes
filenameYes
curve_csvNo
curve_updatesNo
component_typeYes
use_file_curveNo
expected_sha256No
commercial_updatesNo
refit_single_diodeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.5.0
    • changedInput schema / properties / curve_updates / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": {
      -      "items": {
      -        "items": {
      -          "type": "number"
      -        },
      -        "type": "array"
      -      },
      -      "type": "array"
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": {
      +      "items": {
      +        "items": {
      +          "anyOf": [
      +            {
      +              "type": "integer"
      +            },
      +            {
      +              "type": "number"
      +            }
      +          ]
      +        },
      +        "type": "array"
      +      },
      +      "type": "array"
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / properties / refit_single_diode
      Added value: +{
      +  "default": false,
      +  "title": "Refit Single Diode",
      +  "type": "boolean"
      +}
  2. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description does disclose real behavioral traits: SHA-256 optimistic locking, automatic backup, and an allowlist of writable fields — better than most mutation tools. However, it never explains dry_run, what happens on SHA mismatch, whether commercial edits cascade, or permission requirements, leaving meaningful gaps for a write operation.

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 front-loaded sentences with the mutation scope first and the special-case refit rule last; dense but almost every clause carries information. The nested parentheticals ('Mode 1 OND (single- or 3-voltage ProfilPIOV1..3)') are heavy but necessary given no schema descriptions.

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 mutation tool with zero annotation coverage and no output schema, the description explains the risky and complex paths (curves, locking, backup) reasonably well. It falls short on component_type values, dry_run semantics, and failure behavior, which an agent needs before calling it.

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 coverage is 0%, so the description must carry parameter meaning, and it covers roughly half: updates (allowlisted scalars), commercial_updates, remarks (5-line limit), curve_updates/curve_csv (4..256 points), and implicitly expected_sha256 via the locking note. component_type, filename, dry_run, and use_file_curve remain entirely undefined anywhere.

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+resource ('Update allowlisted scalar fields, commercial metadata, remarks ... in a workspace component') and enumerates the edit surfaces, including curve tables. It does not explicitly distinguish itself from the sibling pvsyst_update_variant_parameters, so an agent must infer the component-vs-variant split.

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?

No explicit when-to-use or when-not guidance against alternatives such as pvsyst_create_component or pvsyst_update_variant_parameters. The embedded conditions ('Set refit_single_diode=true on PAN STC edits', remarks 'up to 5 lines') are parameter-level hints rather than tool-selection guidance.

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