Skip to main content
Glama
eng-toolkit

eng-toolkit

by Lin830326

Structures Truss

structures_truss

Analyze 2D/3D pin-jointed trusses using direct stiffness to compute nodal displacements, reactions, axial forces, stresses, elongations, and optional Euler buckling under mechanical and thermal loads.

Instructions

2D/3D pin-jointed truss direct stiffness, thermal initial strain, nodal displacement/reactions, axial tension/compression, stress and elongation. Reports equilibrium residual and refuses mechanisms. Optional member I gives pinned Euler load. data.applied_total_fx/fy and loaded_nodes show the joint loads summed: compare with your hand total. Linear small displacement, axial bars only; <=200 nodes/400 members.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "structures_truss"
  }
}

Input Schema

NameRequiredDescriptionDefault
loadsNoJoint forces 'node,Fx,Fy[,Fz]', e.g. 'b,10 kN,0 N'; '' omits loads; <=400 records, repeated loads add.
nodesNoRequired nodes 'id,x,y[,z]' with lengths, e.g. 'a,0 m,0 m;b,2 m,0 m'; <=200, semicolon/newline separators.
membersNoRequired bars 'id,node_i,node_j,E,A[,I]', e.g. 'e,a,b,200 GPa,100 mm^2'; I enables Euler compression checks; <=400.
thermalNoMember temperature/expansion overrides 'member,dT,alpha', e.g. 'e,100 K,0.00001 1/K'; '' omits overrides.
supportsNoRestrained global directions 'node,axes', e.g. 'a,xy;b,y'; unique x/y/z letters, <=200; '' omits but model must be stable.
dimensionNoSpatial dimension, 2 or 3; node/load rows must have that many components.
unit_systemNoOutput units: metric (m, N, Pa) or imperial (inch, lbf, psi). CSV columns explicitly name their units.metric
buckling_factorNoDimensionless effective-length K for Euler checks of members with I, e.g. 1.0; range 0.1..10.
thermal_expansionNoDefault linear thermal expansion per temperature, e.g. '0.00001 1/K'; requires temperature_change; '' omits.
temperature_changeNoDefault member temperature difference, e.g. '50 K'; requires thermal_expansion; '' omits; absolute offset units refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.1

TDQS

A3.7/5.0
Behavior4/5

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

No annotations exist, so the description carries the full behavioral burden, and it does substantial work: it discloses that mechanisms are refused, that an equilibrium residual is reported, that the analysis is linear/small-displacement with axial bars only, that member I triggers pinned Euler buckling, and that applied_total_fx/fy and loaded_nodes are returned for hand-checking. It does not say how failures other than mechanisms surface or what the full return shape/format is beyond those named fields. Strong disclosure, but not exhaustive.

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 description is dense and front-loaded — capability first, then behavioral caveats, then the verification hint and the size/assumption limits. Almost every clause carries distinct information, though the node/member limits partially duplicate what the schema's parameter descriptions already state. The fragment style is efficient but slightly harder to parse than full sentences.

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?

For a 10-parameter, no-output-schema analysis tool, the description supplies the assumptions, the constraint envelope, the refusal behavior, and names key result fields, which is most of what an agent needs to call it correctly. Since no output schema exists, a fuller account of the returned result set (besides the two applied-total fields) would have closed the remaining gap. Complete enough to invoke confidently, short of fully self-contained.

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

Parameters3/5

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

Schema description coverage is 100%, so every parameter already carries its own semantics, syntax example, and defaults; the baseline is 3. The description's only parameter-level addition is 'Optional member I gives pinned Euler load', which largely restates the schema's 'I enables Euler compression checks'. The applied_total_fx/fy and loaded_nodes remark concerns outputs rather than input parameters, so it does not deepen parameter meaning.

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 resource and method ('2D/3D pin-jointed truss direct stiffness') and enumerates the quantities produced (displacements, reactions, axial forces, stresses, elongations), which an agent can map to a distinct task. 'Axial bars only' implicitly separates it from the frame sibling, but no sibling is named explicitly, so differentiation is inferential rather than stated. The telegraphic, verb-less phrasing keeps it one notch below a fully self-explanatory purpose statement.

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 scope is implied by domain terms plus the constraints 'linear small displacement, axial bars only; <=200 nodes/400 members', which tell the agent which models this tool will not handle. There is no explicit when-to-use statement, no mention of alternatives (e.g. a rigid-frame or modal tool) for models outside the pin-jointed, small-displacement assumption, and no prerequisites named. Adequate for a specialist engineering calculator, but the routing guidance is left to inference.

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

Deploy Server

Other Tools