Skip to main content
Glama

Stop a rental

stop_rental
DestructiveIdempotent

End an AmpleRun rental to stop the workload and its metering. Returns rental_id and new state; files remain read-only for a limited retrieval window.

Instructions

Stop an AmpleRun rental: ends the workload and its metering. Files inside the machine stay reachable read-only only for a limited retrieval window. Stopping again is harmless. Returns rental_id and the new state (STOPPING or a later state). Write tool: refused unless the server was started with AMPLERUN_MCP_ALLOW_SPEND=1 (the default is read-only).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
reasonNoRecorded with the stop.stopped by an AI agent via @amplerun/mcp
rental_idYesrental_id from create_rental or list_rentals.
idempotency_keyNoUUID that makes retries safe. Generated when omitted.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.1

TDQS

A4.2/5.0
Behavior5/5

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

Adds substantial context beyond the annotations: files remain reachable read-only for a limited retrieval window, the operation is safe to repeat, the return payload (rental_id plus STOPPING or later state), and the AMPLERUN_MCP_ALLOW_SPEND=1 gate that otherwise refuses the write. This is exactly the destructive/auth behavior an agent needs and annotations alone cannot convey.

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?

Four compact sentences, front-loaded with the core effect before the retrieval-window caveat and the auth gate. Each sentence carries non-redundant information, though the return-value sentence is slightly terse relative to the rest.

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

Completeness5/5

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

For a destructive, gated mutation with no output schema, the description covers effect, consequence window, idempotency, return shape, and the auth requirement. Nothing an agent needs to invoke it correctly is missing.

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 rental_id, reason, and idempotency_key are already fully documented in the schema. The description adds nothing parameter-specific, so the baseline 3 applies.

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?

States a specific verb+resource ('Stop an AmpleRun rental') and immediately scopes the effect: the workload and its metering end. It is clearly distinguishable from siblings like get_rental or list_rentals, which are read operations.

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 is implied by the verb and the noted idempotency ('Stopping again is harmless'), but it never explicitly says when to use this versus checking state with get_rental first, nor any prerequisites beyond the env-var gate. Adequate but leaves the when-to-use inference to the agent.

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