Skip to main content
Glama
robot-structural-mcp

robot-structural-mcp

by brdz4

Borrar barras, nudos, paneles o casos

robot_delete_elements
DestructiveIdempotent

Deletes selected bars, nodes, panels, or load cases from a Robot Structural Analysis model after dry-run validation, requiring confirmation for irreversible changes.

Instructions

Borra elementos del modelo. NO hay deshacer: haz el ensayo, enséñalo y aplica solo con permiso expreso.

Devuelve {dry_run, applied, results_status_before, invalidates_results, kind, count, numbers, not_found, cases?:[{number, name, type}], next_step? | deleted, results_status_after}. Se niega a borrar nudos que usan barras (borra antes las barras) y casos que usa una combinación que no se borra a la vez. Borrar solo combinaciones no invalida resultados. Recomienda al usuario guardar antes (robot_save_project con path, como copia).

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": {
      "kind": "<kind>",
      "selection": "<selection>"
    },
    "name": "robot_delete_elements"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYesQué borrar: barras, nudos, paneles o casos/combinaciones.
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.
selectionYesNúmeros a borrar: '17to20', '5 9'. Obligatorio; no se admite 'todos'.
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/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, and the description still adds substantial behavior: no undo exists, the tool refuses to delete nodes referenced by bars or cases tied to a combination not deleted in the same call, and deleting only combinations does not invalidate results. It also discloses the invalidation/recalculation consequence and the discard_results gate, which the annotations alone would not convey.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The destructive warning and the dry-run-first instruction are correctly front-loaded, but the multi-line return-shape dump ({dry_run, applied, results_status_before, invalidates_results, ...}) is redundant since an output schema exists and is hard to parse in prose. The refusal rules earn their space; that block does not.

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 destructive 4-parameter tool, the description covers the safety-critical surface: irreversibility, dry-run workflow, prerequisite save, referential-integrity refusals, and result invalidation. Return values are documented by the output schema, so the prose recap is extra rather than missing, and nothing essential for a correct call is absent.

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 coverage is 100% and the schema already explains dry_run (default true, validate-only) and discard_results (must be true to apply an invalidating change), so the description mostly restates that ground. Its only added meaning is the linkage between discard_results and the invalidates_results output, which is marginal beyond the schema baseline.

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 ("Borra elementos del modelo") and the title/schema enum pin down the four deletable kinds (bars, nodes, panels, cases), which separates it from robot_delete_loads and the create_* siblings. It never enumerates the kinds inside the prose itself, relying on the title and enum to do that work.

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?

Gives explicit operating procedure: always dry-run first, show the plan, apply only with express permission, and recommend robot_save_project beforehand as a backup — naming a concrete sibling for the pre-step. It lacks an explicit statement of when to prefer this over other deletion paths, but the safety workflow is unusually clear.

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