Skip to main content
Glama
WattsonicAdmin

wattsonic-modbus-docs

Official

validate_write

Checks a planned Modbus write against Wattsonic inverter documentation without writing to a device, returning ok, warnings, or rejection with reasons.

Instructions

Check a planned write against the documentation WITHOUT writing anything: access (read-only points are rejected), documented range, scale, single-register requirement (0x06 only for 11300-11303, 11320-11324, 11330, 11057, 11254, commands), SunSpec writable range, gate and veto preconditions, side effects (e.g. 0x5A5A on 12026) and the registers to read back afterwards. Returns verdict ok / ok_with_warnings / reject with reasons. Guidance only; this server never connects to a device and never writes registers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueYesValue to write: raw register value by default (e.g. 700 for 70.0 % on 11321, -1000 for -10.00 kW on 11045).
addressYesRegister address ('11321', '40075') or name / SunSpec point.
function_codeNo'0x06' (write single register) or '0x10' (write multiple).0x06
value_is_engineeringNoTrue if value is in engineering units (kW, %, ...) and must be converted with the register scale.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so: it discloses that nothing is written, that no device connection occurs, the specific rule families applied (access, range, scale, single-register, SunSpec range, gates/vetoes, side effects, readback), and the three possible verdicts plus reasons. Reversibility and safety are fully implicit in the read-only framing.

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 critical fact (validation without writing) is front-loaded, and the closing sentences are tight. The middle sentence is a long parenthetical enumeration that is dense but each item adds distinct information, so little is wasted.

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

Completeness5/5

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

For a 4-parameter tool with full schema coverage, no annotations and no output schema, the description supplies the return contract (ok / ok_with_warnings / reject with reasons) and the behavioral guarantees an agent needs before calling it. Nothing material is missing.

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 coverage is 100%, so the baseline is 3; the description adds real meaning on top by revealing that function-code choice is constrained per address range ('0x06 only for 11300-11303, 11320-11324, 11330, 11057, 11254') and that value scaling and side effects (e.g. 0x5A5A on 12026) are interpreted against the register, not applied blindly.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause states a specific verb and resource ('Check a planned write against the documentation') and immediately scopes it with 'WITHOUT writing anything', which separates it from the sibling mutation/lookup tools. The enumerated checks that follow confirm exactly what class of validation is performed.

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 establishes the context of use clearly: a pre-write dry-run check, with the caveat 'Guidance only; this server never connects to a device and never writes registers', which tells an agent this is not a substitute for execution. It stops short of naming alternatives (e.g. get_register for plain lookup) or stating explicit when-not-to-use conditions.

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