Herramientas del MCP
Las herramientas que el servidor MCP de Rischio le da a un agente: qué hace cada una, qué recibe y si solo lee o también cambia tus modelos.
Estas son las herramientas que usa un agente conectado a Rischio, tal como el servidor se las describe: en inglés, que es lo que el agente lee. Para conectar uno, mira Conecta tu agente.
Lo primero que el servidor le dice a todo agente:
Rischio designs retaining walls, footings, piles and open channels, and its engine calculates every number, as in the studio's editor. To build a model, call list_tools for the tools, their templates and each one's contract_version, and get_tool_schema for a tool's parameters in the mode of the model, with the rules a model of it is built by: follow both. Then create_model, from a template or with parameters, and calculate_model to run its checks; change it with update_model and calculate again. Where checks fail, suggest_fixes says what to resize and to what. A model is judged in free mode (no design code: only the limits in design.limits give a verdict, and what the codes and manuals ask comes beside each check) or by a design code (AASHTO LRFD); a new one starts in the user's. Switching it is a change of design.code with what the new mode asks, as its schema says. Every model's parameters carry the tool's contract_version; a model get_model reads is already on it. A schema's x- marks: x-unit is each number's unit (null where it has none), x-catalog the sections a designation names, x-sized that suggest_fixes can size the design; x-group, x-in, x-added and advanced only say where the studio shows a field. Results give each check with its trace, the quantities those traces name (get_model reads any other by its id), the warnings, and each method: who chose it and why, what it moves, which other options would move a number. Parameters and results are SI, whatever units the user reads a model in (si or us, as get_model says; create_model and update_model set them): a number the user gives in another unit goes in as text with it ("125 pcf"), which Rischio converts exactly, and you answer in the user's units. Calculations are limited per user: don't use them for sweeps or Monte Carlo studies. Models can't be deleted here.
Las herramientas
list_tools
Solo leeList Rischio's tools
Rischio's design tools (retaining walls, footings, piles and open channels): what each models, its contract_version (every model's parameters carry it) and its templates, complete models to start from. Call get_tool_schema for a tool's parameters and how a model of it is built.
get_tool_schema
Solo leeGet a tool's parameters
A tool's parameters for a model in one mode, as a JSON Schema: every field that mode takes, what it is and its unit (SI: kN, m, kPa, kN/m³, degrees), and the fields it requires; with the rules a model of the tool is built by. A model's parameters, in create_model and update_model, follow it, design.code its mode.
- tool*
- "retaining-wall" | "shallow-foundation" | "deep-foundation" | "open-channel"
- code
- "free_mode" | "aashto_lrfd_10" · The mode of the model being built, its design.code: free_mode, or a design code (aashto_lrfd_10). Without it, the user's: the mode a new model starts in. The channel has none.
list_models
Solo leeList my models
The user's models, newest first: id, name, tool, whether its results pass or fail (null when never calculated), whether they are out of date, and its page in the studio.
get_model
Solo leeGet a model
A model's parameters and, once calculated, its results: each check with its value, its trace and, where it has a limit (the user's in free mode, or the code's), the limit and whether it passes; the quantities the checks' traces name, and any other asked for by its id; each method it used, who chose it and why, and the checks it moves (methods); and the warnings. A model the engine's new contract migrated says what that dropped or changed of its parameters (upgrade_notes: each at the path it speaks of, "" the model) until it's calculated again. With its page and its report in the studio. Its parameters and results are SI whatever units the user reads it in (units: si or us, US customary).
- id*
- string · The model's id, as list_models gives it.
- quantities
- array · Quantities to read too, by their ids, each with its trace: a trace's terms name the quantities it comes from.
create_model
Cambia tus modelosCreate a model
Creates a model of a tool, from one of its templates (list_tools) or from parameters that follow its schema (get_tool_schema). It starts in the user's mode (free mode, or the design code they work by) unless the parameters name one in design.code, and in the user's units unless units says. The engine checks the parameters first; if it rejects them, it says which field and why. The model isn't calculated: calculate_model does it.
- tool*
- "retaining-wall" | "shallow-foundation" | "deep-foundation" | "open-channel"
- name*
- string
- template
- string · A template's filename, from list_tools.
- parameters
- object · The model's parameters, as the tool's schema says.
- units
- "si" | "us" · The units the user reads the model in: si, or us (US customary). Its parameters and results stay SI either way.
update_model
Cambia tus modelosUpdate a model
Renames a model, switches the units the user reads it in, or replaces its parameters with new ones (all of them, as get_model gives them, with your changes; another mode is another design.code, with what its schema asks). Give the version get_model gave: if the model changed since (the user may be editing it in the studio), it's refused, and you read it again. The engine checks the parameters first; if it rejects them, it says which field and why. Results calculated before stay, marked out of date, until calculate_model.
- id*
- string · The model's id, as list_models gives it.
- version*
- integer · The model's version, as get_model (or the last change) gave it.
- name
- string
- units
- "si" | "us" · The units the user reads the model in: si, or us (US customary). Its parameters and results stay SI either way.
- parameters
- object · The model's parameters, all of them.
calculate_model
Cambia tus modelosCalculate a model
Runs the engine on a model: each check with its value, its trace and, where it has a limit, the limit and whether it passes (in free mode only the user's limits, design.limits, give a verdict, and what the codes and manuals ask comes beside each check as limit_references; under a code, the code's), the quantities the checks' traces name (get_model reads any other), each method it used (methods: who chose it, by = data, code, designer or default, and why; the checks it moves; the other options that would move a number; how close the data are to switching it), the warnings, and the report's address. Calculations are limited (30 a minute, 500 a day for each user): change what the results point to, then calculate.
- id*
- string · The model's id, as list_models gives it.
suggest_fixes
Solo leeSuggest how to fix a model
For a calculated model whose checks fail, how to fix it, as the editor's How to fix it says: each part of the design the engine sizes (a footing's size and its depth; a wall's base and its embedment, a gabion wall's back face, an MSE wall's reinforcement, a cantilever's bars closer, face by face, and a face's cover up to AASHTO's least; a pile's length and its section, and more piles), with its fields, their values now and the ones that fix it (SI, in the steps it's built in, in the model's units; none where it fixes nothing), the checks it fixes and those that still fail, and `along`, the bars that come closer with it where its new size would fail them (apply them together). Never the ground or a load. Apply one with update_model, then calculate_model. It counts as one calculation; asked again of the same results, it answers what it found. A channel has nothing to size.
- id*
- string · The model's id, as list_models gives it.
* obligatorio
El servidor también ofrece prompts: pedidos listos para correr, que tu agente muestra como comandos. Están en Conecta tu agente, en Pruébalo.