Stop a rental
stop_rentalEnd 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).
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": {
"rental_id": "<rental_id>"
},
"name": "stop_rental"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Recorded with the stop. | stopped by an AI agent via @amplerun/mcp |
| rental_id | Yes | rental_id from create_rental or list_rentals. | |
| idempotency_key | No | UUID that makes retries safe. Generated when omitted. |