Skip to main content
Glama

set_component_value

Sets a component's value text and/or existing attribute values in a LibrePCB project by component designator or UUID.

Instructions

Set a component's value text and/or values of its existing attributes.

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": {
      "project_path": "<project_path>",
      "component": "<component>"
    },
    "name": "set_component_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueNoNew value text
componentYesComponent designator (e.g. 'R1') or UUID
attributesNoExisting attribute name -> value, e.g. {'RESISTANCE': '330'}
project_pathYesPath to the project's *.lpp file or its directory

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, and destructiveHint=false, so the mutation profile is known. The phrase 'existing attributes' adds a genuine behavioral constraint beyond annotations (the tool cannot create new attributes), but the description does not say what happens when an attribute is absent, whether values are overwritten, or why the call is non-idempotent.

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?

A single sentence with no filler, front-loading the action and the affected resources. Its brevity borders on under-specification, but nothing in it is wasted.

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 a four-parameter mutation tool with no output schema, the description covers the core operation and one constraint, but omits failure behavior, overwrite semantics, and relationship to sibling component tools. Adequate to invoke, not fully complete.

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 description coverage is 100%, so all four parameters are already documented in the input schema. The description only adds the nuance that 'attributes' applies to existing attributes, which is a marginal addition over what the schema states.

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 uses a specific verb ('Set') with a clearly bounded resource: a component's value text and/or the values of its existing attributes. It implicitly distinguishes itself from siblings like add_component or move_component by focusing exclusively on value/attribute assignment, though it does not explicitly name any alternative.

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 when-to-use guidance, no mention of alternatives such as add_component or get_component, and no stated prerequisites (e.g., a project must be open, or a component must already exist). The agent must infer all of this from the tool name and schema.

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