---
title: "StopServerToolsWhenMaxCost"
---

Stop once cumulative cost across the loop exceeds this dollar threshold.


## Fields

| Field                                                                                        | Type                                                                                         | Required                                                                                     | Description                                                                                  |
| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| `max_cost_in_dollars`                                                                        | *float*                                                                                      | :heavy_check_mark:                                                                           | N/A                                                                                          |
| `type`                                                                                       | [components.StopServerToolsWhenMaxCostType](../components/stopservertoolswhenmaxcosttype.mdx) | :heavy_check_mark:                                                                           | N/A                                                                                          |