Skip to main content
Glama
robot-structural-mcp

robot-structural-mcp

by brdz4

Crear las combinaciones NEC-SE-CG

robot_create_nec_combinations

Creates NEC-SE-CG LRFD load combinations from your dead, live, roof-live, wind and seismic cases, including service D+L and orthogonal 30% rules, with a dry-run preview before applying.

Instructions

Genera y crea las combinaciones LRFD de la NEC-SE-CG §3.4.3 a partir de los casos indicados.

1.4D · 1.2D+1.6L+0.5Lr · 1.2D+1.6Lr+(L o 0.5W) · 1.2D+W+L+0.5Lr · 1.2D±E+L · 0.9D±W · 0.9D±E, más D+L de servicio. Las categorías vacías se omiten. Devuelve lo mismo que robot_create_combinations: {dry_run, applied, …, to_create:[{number, name, type, nature, expression, factors}], next_step? | created}. El nombre lleva el número de caso (E7 = caso 7). Si la escala del espectro (I·g/R, ajuste al cortante estático) no está en los casos sísmicos sino en las combinaciones, pásala en seismic_scale_x/y: multiplica el factor de cada caso sísmico, también en el 30 % ortogonal. Es un dato del proyecto; si no lo sabes, pregunta o copia el de las combinaciones existentes (robot_list_combinations). No invalida resultados. Falla sin crear nada si ya existe una combinación con el mismo nombre (cambia prefix) o si un caso no existe.

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": {
      "dead": "<dead>"
    },
    "name": "robot_create_nec_combinations"
  }
}

Input Schema

NameRequiredDescriptionDefault
deadYesCasos de carga muerta D (peso propio y sobrecarga permanente); se suman.
liveNoCasos de carga viva L; se suman.
windNoCasos de viento W; cada uno entra por separado.
prefixNoPrefijo del nombre de cada combinación.NEC
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.
serviceNotrue = añadir la combinación de servicio D+L (SLS) para flechas.
roof_liveNoCasos de carga viva de cubierta Lr (o granizo); se suman.
seismic_xNoCasos sísmicos en X (estático o espectral); cada uno por separado.
seismic_yNoCasos sísmicos en Y; cada uno por separado.
both_signsNotrue = cada sismo con + y − (los espectrales no tienen signo físico).
orthogonalNotrue = 100 % de una dirección + 30 % de la otra, emparejando seismic_x[i] con seismic_y[i].
seismic_scale_xNoEscala de los casos sísmicos X (p. ej. I·g/R, o el ajuste al cortante estático). 1 = el caso ya está escalado.
seismic_scale_yNoEscala de los casos sísmicos Y; igual que seismic_scale_x.
seismic_live_factorNoFactor de L en 1.2D+E+L: 1.0, o 0.5 donde la NEC lo permite (L ≤ 4.8 kN/m², salvo garajes y lugares de reunión).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: 'No invalida resultados', it fails atomically without creating anything on name collision (and suggests changing prefix) or if a load case is missing, and it explains that empty categories are omitted. This is exactly the failure-mode and side-effect context an agent needs for a non-idempotent write.

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?

Front-loads the purpose and the generated expression set, then moves to return shape, scaling semantics and failure conditions. The formula block is long but earns its place as the tool's defining contract; a few parenthetical digressions could be trimmed.

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 14-parameter mutation tool this covers everything an agent needs: what gets created, dry_run discipline, name-collision and missing-case failure behavior, seismic scaling and orthogonal pairing, and return payload. Despite an output schema existing, restating the payload shape aids the comparison with the sibling.

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 still adds real meaning: seismic_scale_x/y multiplies every seismic case factor including the 30% orthogonal pairing, and the note that the scale is a project datum to be copied from robot_list_combinations. The prefix parameter's role in resolving name collisions is also explained.

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+resource scoped to a code standard: 'Genera y crea las combinaciones LRFD de la NEC-SE-CG §3.4.3 a partir de los casos indicados'. The explicit listing of the exact combination expressions (1.4D, 1.2D+1.6L+0.5Lr, etc.) and the note that it returns the same shape as robot_create_combinations make the boundary against the generic sibling concrete.

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 operational guidance: always run dry_run first and show the plan, pass seismic_scale_x/y when the spectrum scale lives in the combinations rather than the seismic cases, ask the user or copy from robot_list_combinations if unknown. It never states in one sentence when to pick this over robot_create_combinations, so the exclusion is implied rather than explicit.

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