Skip to main content
Glama
robot-structural-mcp

robot-structural-mcp

by brdz4

Crear barras

robot_create_bars

Create structural bars between existing nodes and optionally assign an existing section. Validates node and section existence and duplicate bars, with dry-run preview before applying changes.

Instructions

Crea barras entre nudos existentes y, opcionalmente, les asigna una sección existente.

Devuelve {dry_run, applied, results_status_before, invalidates_results, to_create:[{number, start_node, end_node, length_m, section?}], next_step? | created, results_status_after}. Falla sin crear nada si algún nudo o sección no existe, o si ya hay una barra entre los mismos dos nudos. Crea antes los nudos (robot_create_nodes) y las secciones (robot_define_concrete_section).

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": {
      "bars": "<bars>"
    },
    "name": "robot_create_bars"
  }
}

Input Schema

NameRequiredDescriptionDefault
barsYesBarras a crear.
dry_runNotrue (por defecto) = solo valida y describe lo que haría, sin modificar nada. false = aplica el cambio. Haz siempre primero el ensayo y muestra el plan al usuario.
discard_resultsNoObligatorio true para aplicar un cambio que invalida resultados vigentes del modelo (habrá que recalcular). Ponlo solo si el usuario lo aceptó.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare it is a non-read-only, non-destructive, non-idempotent write. The description adds real behavioral context beyond that: all-or-nothing failure when a node/section is missing or a duplicate bar already spans the same node pair, plus the results_status_before/after and invalidates_results signals. It does not discuss limits like the 500-bar cap or what happens on partial numbering collisions.

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?

Purpose is front-loaded in the first sentence, followed by the return shape, failure semantics, and prerequisite order. It is efficient overall, though the inline return-object dump partially duplicates the output schema and takes space that could have gone to usage nuance.

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 mutating batch-creation tool with annotations and an output schema, the description covers purpose, atomic failure, and prerequisite ordering, which is what an agent needs to call it safely. Nothing critical is missing; extra depth on numbering collisions or the bar cap would be the only additions.

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 dry_run, discard_results, number, section and the node references are all documented in the schema itself. The description adds no format or syntax meaning beyond that, only the failure conditions. Baseline 3 applies when the schema carries the parameter load.

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?

States a specific verb and resource ('Crea barras entre nudos existentes') plus the optional section assignment, which separates it from plain node creation and from pure section assignment. The scope is qualified immediately with 'entre nudos existentes', so the agent knows the tool is not a general element creator.

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?

Explicit prerequisites are given: create nodes first via robot_create_nodes and sections via robot_define_concrete_section, and it says creation fails entirely if those are missing. What is not addressed is when to prefer this over robot_assign_section for putting a section on a bar, which is the one overlap an agent could hesitate over.

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