Skip to main content
Glama
robot-structural-mcp

robot-structural-mcp

by brdz4

Esfuerzos en barras

robot_get_bar_forces
Read-onlyIdempotent

Retrieves internal bar forces in local axes—axial, shear, bending, and torsion—by load case and station for structural analysis and design checks.

Instructions

Esfuerzos internos de barras en ejes locales (kN y kN·m), por caso y estación.

Devuelve {results_status, cases, total, count, offset, has_more, next_offset?, items:[{bar, by_case:[{case, stations:[{x, fx_kn, fy_kn, fz_kn, mx_knm, my_knm, mz_knm}]}]}]}. x es la posición relativa (0 = nudo inicial, 1 = nudo final; cuáles son, en robot_list_bars: en una columna el inicial suele ser la base). Convención de Robot: FX > 0 = compresión; MY = flexión principal por gravedad (alrededor del eje local y; negativa en apoyos, positiva en vano), MZ = flexión lateral; FZ = cortante vertical, FY = cortante lateral; MX = torsión. En casos espectrales el signo no es físico: usa el valor absoluto o las combinaciones. Cada estación cuesta una lectura lenta: para máximos de muchas barras usa robot_get_result_extremes.

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_get_bar_forces"
  }
}

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.
limitNoMáximo de elementos a devolver (1-500).
offsetNoElementos a saltar; usa next_offset de la respuesta anterior.
pointsNoEstaciones por barra, equiespaciadas de 0 a 1 (2 = solo extremos).
storeyNoNombre exacto de un piso (ver robot_list_storeys). Incluye las columnas que nacen en ese piso y las vigas de su nivel superior; las vigas de cubierta son las del último piso.
sectionNoNombre exacto de una sección (ver robot_list_sections) para filtrar barras.
selectionNoNúmeros de elemento: '1to10', '3 7 12', '1to50By5'. Omitir = todos.
structural_typeNoFiltra por tipo estructural de la barra: COLUMN (columnas) o BEAM (vigas).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare a safe read (readOnly, idempotent, non-destructive, closed world), so the description is free to add the domain behavior an agent cannot infer: the Robot sign conventions (FX>0 compression, MY principal gravity bending negative at supports, MZ lateral, MX torsion) and the caveat that signs in spectral cases are not physical. It also discloses the per-station latency cost, which materially affects how the agent should loop.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose, then response shape, then conventions, then the performance/routing note — a logical order for an agent. Every line carries information; nothing is filler, and the compact bullet-like convention block is dense but readable.

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?

With an output schema present, the description need not restate return values, yet it still sketches the envelope so the agent knows to page via count/offset/has_more/next_offset. Combined with 100% schema coverage and clear annotations, an agent has everything needed to call this correctly and interpret the numbers.

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 baseline is 3, but the description adds meaning the schema lacks: x is a relative position where 0 is the start node and 1 the end node, and it flags that identifying which node is which requires robot_list_bars. It also reinforces that stations are the cost driver, giving the points parameter practical weight.

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 precise verb+resource with units: internal bar forces in local axes (kN and kN·m), per case and station. It is unambiguously distinguishable from robot_get_bar_deflections, robot_get_reactions and robot_get_panel_forces, and it explicitly hands off the maxima use case to robot_get_result_extremes.

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 a concrete routing rule: for maxima over many bars use robot_get_result_extremes, because each station costs a slow read. It also points to robot_list_bars to interpret which end is x=0. It stops short of stating explicit exclusions (e.g. when to prefer node displacements or panel forces instead), so it is strong but not a full when/when-not map.

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