Skip to main content
Glama

ampl_close_session

Close an AMPL optimization session by disposing its engine and removing the workdir if created, freeing resources and returning the system to a clean state.

Instructions

Dispose the engine, removing the workdir if the server created it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

The description adds a useful behavioral detail—removal of the workdir if the server created it—which goes beyond a mere 'close' verb. However, with no annotations, it does not disclose whether the operation is reversible, what happens to unsaved data, or whether calling it on an already-closed session is safe.

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?

The description is a single sentence of 11 words, front-loaded with the primary action. Every word earns its place, and it is appropriately sized for the tool's simplicity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the session lifecycle context and lack of annotations, the description omits critical information: the meaning of the 'name' parameter, when to invoke this tool vs. sibling session tools, and the consequences of disposal. The presence of an output schema does not compensate for these gaps.

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

Parameters2/5

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

The sole parameter 'name' is entirely undocumented. The schema shows only its type (string or null) with a default of null, and the description does not mention it. With 0% schema description coverage, the description fails to clarify whether 'name' identifies the session or something else.

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 description 'Dispose the engine, removing the workdir if the server created it' clearly identifies this as a session teardown operation. It distinguishes the tool from siblings like ampl_init_session (creation), ampl_use_session (selection), and ampl_restart_session (restart).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description offers no explicit guidance on when to use this tool versus alternatives. It does not state that it should be called when finished with a session, nor does it exclude usage during active work or mention any prerequisites.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/worc4021/ampl-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server