Skip to main content
Glama

Set Block Param

set_block_param

Sets a block parameter and reinitializes the block. Validates parameter names against the block catalog to prevent silent write failures.

Instructions

Установить параметр блока и переинициализировать блок.

Блок переинициализируется (InitBlock) — без этого изменение может не дойти до расчёта: карта COM API отмечает, что SetBlockProp не влияет на уже инициализированные блоки (например, «Константа»).

Имя параметра сверяется с каталогом блоков до записи. Раньше здесь было предупреждение уже после записи, а сам SetBlockProp неизвестные имена не отвергает: значение уходило в никуда, и по ответу нельзя было отличить применённый параметр от неприменённого.

Отдельно отвергается Name: он в каталоге есть (общее свойство), но блок не переименовывает — COM такой записи не применяет.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blockYesимя блока на главной странице (автоимя из `list_blocks`).
paramYesимя параметра блока (см. `get_block_params`).
valueYesзначение строкой; массивы — в стиле SimInTech, напр. '[1, -1]'.
allow_unknownNoTrue — не сверять имя с каталогом (для параметров, которых в каталоге нет).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

With no annotations, the description carries full behavioral burden and does so excellently. It discloses that the block is reinitialized via InitBlock, explains why this matters for already-initialized blocks, reveals that parameter names are validated before writing, and notes the special rejection of 'Name'. This is rich, non-obvious behavioral context.

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 structured into three short paragraphs, each focused on a meaningful behavioral caveat. It is slightly longer than strictly necessary due to the historical note about the old warning, but that context justifies the design and every sentence contributes to correct usage.

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?

Given the tool's complexity and absence of annotations, the description covers the critical lifecycle behavior, validation flow, and special-case rejection. An output schema exists, so return-value details are not required here. An agent has enough information to invoke the tool correctly, including handling edge cases.

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 extra semantic value beyond the schema by explaining that 'Name' is rejected despite being in the catalog and by describing the pre-write validation behavior. This helps the agent understand constraints that the schema alone does not convey.

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 description opens with a specific verb and resource: 'Установить параметр блока' (set block parameter) and reinitialize the block. It clearly distinguishes from siblings like get_block_params (reading params) and set_signal (signals), and is not a tautology of the tool name.

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?

The description does not explicitly say when to use this tool versus alternatives or mention any exclusion criteria. It implies usage through its main verb, but there is no guidance about, for example, using get_block_params to discover valid parameter names or avoiding this tool for signal manipulation.

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