Skip to main content
Glama

rotate_component

Set a board device's absolute rotation angle while keeping its position unchanged, so components can be reoriented in LibrePCB projects.

Instructions

Set a board device's rotation, keeping its position.

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>",
      "rotation_deg": "<rotation_deg>"
    },
    "name": "rotate_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
boardNoBoard name, UUID or index; default: first
componentYesComponent designator (e.g. 'R1') or UUID
project_pathYesPath to the project's *.lpp file or its directory
rotation_degYesAbsolute rotation

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the mutation profile is largely carried by structured data. The description adds one genuinely useful behavioral trait (position is preserved), but says nothing about anchoring/origin, whether the change is reversible, or what is returned. Note the annotation idempotentHint=false sits oddly against an absolute-rotation parameter, but the description does not itself contradict the annotations.

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 short sentence with zero filler, and the key invariant is placed at the end where it is still immediately visible. Nothing is redundant, though the extreme terseness leaves the definition doing very little work overall.

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

Completeness4/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 full schema coverage and annotations covering the safety profile, the description supplies the essential intent plus the position-preservation invariant. Return values are not needed since there is no output schema, and remaining gaps (rotation origin, units beyond the param name) are minor.

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 (board, component, project_path, rotation_deg) are already documented in the schema, including that rotation is absolute. The description adds only the invariant that position is untouched, which is a marginal gain over the schema baseline of 3.

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 and resource ('Set a board device's rotation') plus a scope qualifier ('keeping its position') that implicitly separates it from move_component and place_component. It stops short of naming any sibling, so the differentiation is inferred rather than explicit.

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?

'Keeping its position' hints at when this is preferred over a move/re-place operation, but there is no explicit when-to-use, when-not-to-use, or named alternative. An agent must infer the routing from that clause alone.

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