Skip to main content
Glama
robot-structural-mcp

robot-structural-mcp

by brdz4

Añadir cargas a un caso

robot_add_loads

Adds self-weight, nodal, bar, or panel loads to an existing simple load case without altering current loads. Validates with a dry run first and reports whether results are invalidated.

Instructions

Añade cargas a un caso simple existente. No modifica ni borra las cargas que ya tenga.

Devuelve {dry_run, applied, results_status_before, invalidates_results, case:{number, name}, records_before, loads:[{type, objects?, objects_count?, valores…}], next_step? | records_after, results_status_after}. records_* cuentan solo las cargas del usuario: si los paneles son de reparto, Robot genera además las cargas sobre las vigas al calcular. Tras aplicar, comprueba el total con robot_get_reactions una vez recalculado.

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": {
      "case": "<case>",
      "loads": "<loads>"
    },
    "name": "robot_add_loads"
  }
}

Input Schema

NameRequiredDescriptionDefault
caseYesNúmero de un caso simple estático (ver robot_list_load_cases).
loadsYesCargas a añadir. type: 'self_weight' (peso propio), 'node_force' (fuerza/momento en nudos, kN y kN·m), 'bar_uniform' (carga repartida en barras, kN/m) o 'panel_uniform' (carga superficial en paneles, kN/m²). Ejes globales; Z negativo = hacia abajo.
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 readOnly=false and destructive=false, but the description adds real nuance: appends without touching existing loads, that records_* count only user loads while distribution panels cause additional beam loads generated at calculation time, and that results may be invalidated (invalidates_results/results_status_after). It does not explain permissions or the requirement to explicitly accept invalidating existing results, which keeps it below a 5.

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 purpose is correctly front-loaded in one short sentence, but most of the text is a dense enumeration of return fields ({dry_run, applied, results_status_before, ...}) that duplicates the existing output schema and is hard to scan. Those lines do not earn their place against a machine-readable output schema.

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?

With annotations, full schema coverage and an output schema, the definition is nearly complete: purpose, append semantics, result-invalidation hint and a verification loop are all present. Remaining gap is the omitted prerequisite chain (list/create the case) and the explicit discard_results acceptance rule, which are only implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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; "caso simple existente" does add meaning to `case` beyond the schema's "ver robot_list_load_cases", but parameter-level semantics for loads/dry_run/discard_results are fully carried by the schema. The description's added value is on the return contract rather than the inputs, so the baseline applies.

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?

"Añade cargas a un caso simple existente" names a specific verb (add) and resource (loads on a simple case), and the next sentence "No modifica ni borra las cargas que ya tenga" delimits it against update/delete siblings such as robot_delete_loads. An agent can tell exactly what this does without opening the schema.

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?

It states the prerequisite that the case must already exist, and gives one explicit follow-up instruction ("comprueba el total con robot_get_reactions una vez recalculado"). However, it never says when to prefer this over robot_create_load_case / robot_delete_loads / robot_list_loads, and the critical dry-run-first workflow lives only in the schema, not in the description.

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