Skip to main content
Glama
EvgenVer

lira-sapr-mcp

by EvgenVer

lira_set_loads

Replace loads in a saved LIRA-SAPR model for selected load cases or all loads, rebuilding and verifying tables before overwriting the file with a backup.

Instructions

Replace loads of a saved model: of load_cases only, or all loads when omitted.

loads: [{case, target, type, direction, values}] as returned by lira_read_loads. LIRA has no API for loads, so the server rebuilds the model through LIRA's text format, copies every input table back, verifies tables and loads, and only then overwrites the file (after a backup). If verification fails, nothing changes. Models whose combination norms differ from those LIRA gives a model rebuilt from text are refused: the rebuild would change their load case kinds. Data that is neither in input tables nor in the text format cannot be verified: check the model in LIRA after this call.

Input Schema

NameRequiredDescriptionDefault
loadsYes
modelNo
load_casesNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and does so thoroughly: it discloses the text-format rebuild, table copying, verification, backup-then-overwrite ordering, all-or-nothing failure, refusal for models with differing combination norms, and the residual unverifiable-data risk requiring manual LIRA check. That is unusually rich behavioral disclosure for a mutation tool.

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?

Content is front-loaded with the purpose and then the payload contract before the long behavioral caveats, and nearly every clause adds information. The prose is somewhat dense and the final warning sentence is a bit sprawling, but there is no filler.

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, so return values need not be described, and the safety/atomicity story is fully covered. What remains thin is the 'model' parameter (default-null resolution) and whether the model must be open or saved beforehand — minor gaps for an otherwise complete definition.

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 0%, so the description must compensate: it documents the 'loads' item shape ({case, target, type, direction, values}) and the semantics of 'load_cases' (omit to replace all loads). The 'model' parameter is left entirely unexplained, which is the one remaining gap.

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?

The first clause states a specific verb and resource ('Replace loads of a saved model') plus scope ('of load_cases only, or all loads when omitted'), which lets an agent distinguish it from lira_read_loads and lira_fragment_loads without opening a schema. The second line additionally pins down the data shape expected.

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?

It implies when to use the tool via the load_cases selection semantics and references lira_read_loads as the source of the 'loads' payload, which is a useful workflow cue. But it never names an alternative (e.g. lira_fragment_loads) or states explicit when-not-to-use conditions beyond the refusal case, so guidance is implied rather than spelled out.

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