Skip to main content
Glama
robot-structural-mcp

robot-structural-mcp

by brdz4

Detectar irregularidades (NEC §5.2)

robot_check_irregularities
Read-onlyIdempotent

Detects torsional, soft-story, and mass irregularities in a Robot structural model per NEC-SE-DS §5.2 to support seismic code checks.

Instructions

Detecta irregularidad torsional, piso flexible e irregularidad de masa, según NEC-SE-DS §5.2.

  • Torsional (planta): por piso, Δmax > 1.2·(Δ1+Δ2)/2, con Δ1 y Δ2 las derivas de los dos bordes opuestos de la planta en la dirección del caso, leídas de los nudos de cada nivel.

  • Piso flexible (elevación): rigidez K = V/Δ menor que el 70 % de la del piso superior, o que el 80 % del promedio de los tres superiores.

  • Masa (elevación): masa del piso mayor que 1.5 veces la de un piso adyacente (no la cubierta). La masa se lee de mass_case; sin análisis modal, Robot da una masa distinta por caso. Devuelve {results_status, cases, mass_case, mass:[…], soft_storey:[{case, direction, storeys:[…]}], torsional:[{case, direction, approximate, storeys:[{storey, edge_drift_1_mm, edge_drift_2_mm, ratio, irregular, rigid_diaphragm, interior_deviation?, line_displacements_mm?}]}], summary:{torsional, soft_storey, mass, non_rigid_floor}, notes}. rigid_diaphragm indica si los desplazamientos de las líneas de pórtico del piso varían linealmente entre bordes (como exige un diafragma rígido). Si es false, los pórticos se mueven por separado, la relación de bordes no mide torsión e 'irregular' queda en null: en ese caso avisa al usuario de que el modelo no tiene diafragma rígido, enséñale line_displacements_mm ([coordenada m, desplazamiento mm] por línea) y pregúntale si el edificio real lo tiene. Límites que hay que decir al usuario: en casos espectrales la deriva de borde se aproxima como diferencia de desplazamientos combinados (approximate=true); la torsional debe evaluarse con la excentricidad accidental incluida en el caso; y no se revisan las demás irregularidades de la norma (retrocesos, discontinuidad de diafragma, ejes no paralelos, geométrica), que dependen de la geometría.

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

Input Schema

NameRequiredDescriptionDefault
casesYesNúmeros de caso o combinación: '5', '1 2 3', '101to108' (ver robot_list_load_cases). Al leer resultados se ignoran los que no existan; en las verificaciones robot_check_* es un error.
mass_caseNoCaso del que leer la masa de cada piso. Omitir = el caso modal si existe; si no, el primero de 'cases'.

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 declare a safe read-only, idempotent operation, and the description goes well beyond them: it defines the exact numeric thresholds, discloses that edge drift in spectral cases is approximated (approximate=true), explains that 'irregular' becomes null when the diaphragm is not rigid, and states what to surface to the user (line_displacements_mm) in that case.

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?

Front-loaded with purpose and criteria, and the bullet structure aids scanning, but the description restates the entire return object shape field-by-field ({results_status, cases, mass_case, mass:[…], torsional:[…], summary:{…}}) even though an output schema exists, adding substantial length that does not earn its place.

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 multi-criterion code-compliance checker this is complete: each irregularity has its formula and threshold, the rigid-diaphragm edge case is fully handled, and the normative limitations are spelled out so the agent can caveat results accurately.

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 baseline is 3, but the description adds real meaning to mass_case by explaining that mass is read from that case and that Robot reports different mass per case absent a modal analysis — a non-obvious consequence of the parameter choice. The 'cases' parameter is left to the schema.

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?

Names the specific verb and resource ("Detecta irregularidad torsional, piso flexible e irregularidad de masa") and states the governing code (NEC-SE-DS §5.2), then explicitly lists the irregularities it does NOT evaluate (retrocesos, discontinuidad de diafragma, ejes no paralelos, geométrica), which scopes it away from sibling robot_check_* tools without ambiguity.

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 concrete preconditions for a valid check (torsional must be evaluated with accidental eccentricity included in the case; mass is read from mass_case and varies per case without modal analysis) and instructs the agent what to ask the user when rigid_diaphragm is false. It lacks an explicit routing statement such as when to prefer robot_check_drifts over this tool, so it stops 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.