ampl_display
Evaluate AMPL display expressions to fetch model results, including file loads that are permitted but flagged with warnings.
Instructions
Evaluate an arbitrary AMPL display expression. The reach-anything tool.
A warnings list appears on the result when expr carries a
file-loading statement (include, commands, model, data, load).
Loading is permitted on purpose, but the loaded file's contents are
executed WITHOUT being guard-checked.
This tool evaluates AMPL, so AMPL's own output redirection (display 1 > 'somewhere.txt';) applies and is NOT confined to the session working
directory. The path guard covers this server's own path ARGUMENTS, not
AMPL expression text.
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": {
"expr": "<expr>"
},
"name": "ampl_display"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| expr | Yes | ||
| limit | No | ||
| session | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||