Skip to main content
Glama
robot-structural-mcp

robot-structural-mcp

by brdz4

Verificar derivas inelásticas (NEC §6.3.9)

robot_check_drifts
Read-onlyIdempotent

Computes maximum inelastic storey and frame-line drifts for seismic cases, compares them with NEC-SE-DS §6.3.9 limits, and reports governing storey, direction, and pass/fail status.

Instructions

Deriva inelástica máxima por piso, ΔM = 0.75·R·ΔE, frente al límite de la NEC-SE-DS §6.3.9.

ΔE es la deriva de entrepiso de Robot (dr/altura) multiplicada por el factor 'scale' del caso. Además de la tabla de pisos de Robot (un valor por planta), calcula la deriva de cada línea de pórtico paralela a la dirección principal del caso, con el desplazamiento medio de sus nudos, y reporta la mayor (frame_line). Sin diafragma rígido cada pórtico se mueve por su cuenta y es esa la que gobierna; la tabla de pisos puede quedarse corta. Devuelve {results_status, formula, r, limit, storeys:[{storey, height_m, by_case:[{case, scale, elastic_x, elastic_y, inelastic_x, inelastic_y, governing, passes, frame_line?:{direction, coordinate_m, drift_mm, inelastic, passes, approximate}}]}], summary:{max_inelastic, storey, case, direction, source ('storey_table' | 'frame_line'), coordinate_m?, utilization, passes, storey_table_max}}. Las derivas son adimensionales (0.015 = 1.5 %). coordinate_m es la Y (caso en X) o la X (caso en Y) de la línea. approximate=true en casos espectrales: la deriva de línea sale de restar desplazamientos ya combinados. Usa los casos sísmicos (no las combinaciones con gravedad). R y scale son datos del proyecto: si no los conoces, pregúntalos; un scale equivocado invalida la verificación.

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": {
      "cases": "<cases>",
      "r": "<r>"
    },
    "name": "robot_check_drifts"
  }
}

Input Schema

NameRequiredDescriptionDefault
rYesFactor de reducción R del sistema estructural (NEC Tablas 15 y 16).
casesYesCasos sísmicos a verificar, cada uno con su factor de escala.
limitNoDeriva máxima admisible: 0.02 hormigón, acero y madera; 0.01 mampostería.
amplificationNoCoeficiente de la NEC en ΔM = 0.75·R·ΔE.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), yet the description adds substantial behavioral context beyond them: ΔE is Robot's dr/height times the case scale, the tool additionally evaluates each frame line and reports the governing one, the storey table may under-report when there is no rigid diaphragm, and spectral-case frame-line values are flagged approximate.

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?

It is front-loaded with the formula and the frame-line caveat, but it then restates the entire return object field by field even though an output schema exists, which is the least valuable part. The result is dense but longer than necessary for an agent that can already read the schemas.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a code-compliance check with four parameters and low structural complexity, nothing an agent needs is missing: methodology, units (dimensionless, 0.015 = 1.5 %), the meaning of coordinate_m, the approximate flag, precondition on R and scale, and which cases to pass are all stated.

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

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already documents all four parameters and the baseline would be 3. The description adds formula-level meaning by tying scale, R and ΔE together in ΔM = 0.75·R·ΔE and warning that an incorrect scale invalidates the check, which is semantics the schema alone does not convey.

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?

The first sentence names a specific verb+resource (maximum inelastic drift per storey), the governing formula (ΔM = 0.75·R·ΔE) and the code article (NEC-SE-DS §6.3.9). It is clearly distinguishable from sibling checks such as robot_check_p_delta or robot_check_irregularities without opening any schema.

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?

It gives an explicit exclusion: use seismic cases, not combinations with gravity. It also states a prerequisite for calling correctly: R and scale come from the project and must be asked for if unknown, since a wrong scale invalidates the verification. It never names a sibling as the alternative path, which keeps it short of a 5.

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