Skip to main content
Glama
robot-structural-mcp

robot-structural-mcp

by brdz4

Verificar efectos P-Δ (NEC §6.3.8)

robot_check_p_delta
Read-onlyIdempotent

Computes per-storey P-Delta stability index Q from gravity load and seismic drift/shear per NEC-SE-DS §6.3.8, then classifies each floor for amplification or instability.

Instructions

Índice de estabilidad por piso, Qi = Pi·Δi / (Vi·hi), según NEC-SE-DS §6.3.8.

Pi es la carga vertical acumulada del piso en 'gravity_case'; Δi y Vi son la deriva y el cortante del piso en el caso sísmico, en su dirección principal. Como Δi y Vi salen del mismo caso, el factor de escala del sismo no influye en Qi. Devuelve {results_status, formula, gravity_case, cases:[{case, direction, storeys:[{storey, p_kn, drift_mm, shear_kn, height_m, q, classification, amplification_factor?}], max_q, classification}], summary}. classification: DESPRECIABLE (Q < 0.10), AMPLIFICAR (0.10 a 0.30: multiplicar derivas y fuerzas por 1/(1−Q), que se da en amplification_factor) o INESTABLE (Q > 0.30: rigidizar).

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": {
      "seismic_cases": "<seismic_cases>",
      "gravity_case": "<gravity_case>"
    },
    "name": "robot_check_p_delta"
  }
}

Input Schema

NameRequiredDescriptionDefault
gravity_caseYesCaso o combinación con la carga vertical total SIN mayorar (muerta + viva), p. ej. una combinación 'CM+CV'.
seismic_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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare read-only, idempotent, closed-world behavior, so the description's added value is in the mechanics: it explains that scaling the seismic case does not change Qi, and it defines the three classification bands and what the amplification_factor means. It stops short of stating prerequisites such as needing storeys defined or a solved model.

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?

The formula and the parameter definitions are front-loaded, then the return shape and classification bands. It is dense but each sentence carries information; the inline enumeration of the returned object is slightly long but not wasteful.

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?

An output schema exists, yet the description still explains the classification thresholds and amplification semantics, which is the interpretive part an agent needs. Combined with annotations covering safety, the definition is complete enough to call correctly; only preconditions and failure modes are unstated.

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; the description goes further by explaining that Pi is the accumulated vertical storey load taken from gravity_case and that drift and shear are read from the seismic case in its principal direction, clarifying how the two parameters combine.

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?

The description names a specific computation (per-storey stability index Qi = Pi·Δi / (Vi·hi)) with the governing code clause, so an agent knows exactly what is produced. It does not explicitly contrast itself with siblings such as robot_check_drifts or robot_check_base_shear, which would be needed for a 5.

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?

Usage is only implied: it states that Δi and Vi must come from the seismic case in its principal direction, and the schema requires an un-factored gravity case. There is no explicit 'use this when…' or exclusion versus the other robot_check_* verification tools.

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