---
title: "read_plan_quotas"
description: "Generated reference for the management action read_plan_quotas: its description, access metadata, payload contract, and registration status."
slug: /reference/actions/read-plan-quotas
order: 86
visibility: public
redirects_from: []
---

# read\_plan\_quotas

Generated automatically from the [published contract sources](/cloud/reference/about/#contract-sources).

A script calls this action over HTTPS at `POST https://tzcloud.dev.turnzero.ai/v1/read_plan_quotas`, with a bearer credential and the action's payload as the JSON body. It also accepts `GET`. An MCP connection lists this action as the tool `tzcloud_read_plan_quotas`.

OAuth access tokens and minted tokens, including the turnzero command's computer token, are bearer credentials. The action determines which kinds, scopes and grants it accepts ([Sign-in, sessions, and tokens](/cloud/concepts/sign-in-sessions-and-tokens/)).

**Build metadata:** Registered in this build. Registration describes the default dispatcher in this build. It does not guarantee that a caller has the required credential or grant, that a tool is listed for that connection, or that the required service is configured.

## Contract description

Read size quotas without an application\. Pass `plan` as `shared-0.5gb`, `shared-1gb`, `dedicated-4gb`, or `dedicated-8gb` for that size's rows\. Omit `plan` and `measure` for the sizes' rows\. Without `plan`, you get the shared sizes' rows only\. Pass `measure` for an entry's row on each size that sets it\. Pass both for at most one row\.

Use `create_environment` to turn on development\. Development uses shared compute for an application on a dedicated size\.

## More about this action

The answer has the selected sizes' enforced entries and served values\. Where functions are available, this read also includes the seven function limits\. Read them before choosing an application's kind\. For a serverless application, read the `shared-0.5gb` rows\. It returns the sizes' rows where you pass neither `plan` nor `measure`\. Each row has its quantity, null for an Unset cell, and its `unit`\. With `stamps: true`, it also gives its stamp and author\. Any signed\-in credential can read the rows, a token bounded to an application included\.

Where your credential has the `super_admin` grant or your account is unbilled, no per\-account application limit applies to you\. The answer then has `application_limit_exemption`, set to `super_admin` or `unbilled`\. It is absent otherwise\. With that exemption, `create_application` does not refuse `account_application_limit`\.

Each quantity is in its entry's base unit, given by `unit`\. Entries retired for the sizes have no row in this read\.

A platform setting that is the same on every size has no row here\. The schedule window is one: `read_schedules` and `submit_manifest` return it as `window_seconds`\.

The `log-retained-capacity` rows give the maximum bytes each size can keep in its logs\. Use `log_retention_days` in `read_balance` for the number of days an application keeps logs\.

Pass `stamps: true` to get when and by whom each row was last set\. A size's `development-` rows give its development environment's bounds\.

Left out or `false`, the `stamps` argument gives rows with neither stamp, and each row's `unit` gives its unit\.

## Access and action metadata

```json
{
  "name": "read_plan_quotas",
  "resource": "account",
  "tier": "observe",
  "surface": "tzcloud",
  "addresses": [
    "tzcloud"
  ],
  "product": "cloud",
  "clients": [
    "bearer",
    "browser_session"
  ],
  "summary": "Return the served quantities of the selected sizes, or the sizes' rows where neither `plan` nor `measure` is passed. A read without `plan` includes only the two shared sizes. Name a dedicated size in `plan` to read its rows. For each size the rows are the enforced entries, then its served values. Each row gives its unit, and with `stamps: true` its stamp and author. Any signed-in credential can read them, an application-bounded token included. No application at that size is needed.\n\nWhere the credential and account bypass the application limit, `application_limit_exemption` gives the exemption.",
  "annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "openWorldHint": false,
    "idempotentHint": true
  }
}
```

## MCP catalog entry

```json
{
  "name": "read_plan_quotas",
  "title": "Read size quotas",
  "tier": "observe",
  "scenario": "CHI-L0-09",
  "summary": "Read size quotas without an application. Pass `plan` as `shared-0.5gb`, `shared-1gb`, `dedicated-4gb`, or `dedicated-8gb` for that size's rows. Omit `plan` and `measure` for the sizes' rows. Without `plan`, you get the shared sizes' rows only. Pass `measure` for an entry's row on each size that sets it. Pass both for at most one row.\n\nUse `create_environment` to turn on development. Development uses shared compute for an application on a dedicated size.",
  "owners": [
    "PRC-L0-16",
    "API-L0-17",
    "ACB-L0-84"
  ]
}
```

## request

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | Type: object<br>Additional properties: false |
| /<wbr>properties/<wbr>plan | That size's rows alone, or with `measure` at most one row\. Over the HTTP route an unlisted value is refused `invalid_request`\.<br><br>Type: string<br>Allowed values: \["shared\-0\.5gb","shared\-1gb","dedicated\-4gb","dedicated\-8gb"\] |
| /<wbr>properties/<wbr>measure | That entry's row on each size that sets it\. With `plan`, at most a row is returned, and none where that size sets no such value\. The `detail` then says so\. Over the HTTP route an unlisted value is refused `invalid_request`\.<br><br>Type: string<br>Allowed values: \["stored\-data\-capacity","database\-connection\-limit","schedule\-minimum\-interval","schedule\-count\-limit","deploys\-per\-day","log\-retained\-capacity","function\-tree\-capacity","function\-count\-limit","function\-memory\-capacity","function\-cpu\-time","function\-answer\-time","function\-calls\-at\-once","function\-temporary\-capacity","free\-idle\-stop","development\-halt\-after\-days","development\-realm\-account\-limit","signin\-code\-sends\-per\-hour","egress\-connections\-per\-minute","egress\-bytes\-per\-day","websocket\-connections\-per\-replica","push\-messages\-capacity","email\-recipients\-per\-hour","email\-recipients\-per\-day"\] |
| /<wbr>properties/<wbr>stamps | `true` adds each row's `set_at` and `set_by`\. Without `measure`, it also adds the full unit list to `detail`\. With `measure`, `detail` gives that measure's unit\. Over HTTP, a non\-boolean value is refused `invalid_request`\.<br><br>Type: boolean |

## response

| JSON pointer | Description and constraints |
|---|---|
| "" \(root\) | The selected sizes' quota rows, or the sizes' rows where neither `plan` nor `measure` was passed\. For each size they give its enforced entries, then its served values\.<br><br>Each row gives its quantity, null for an Unset cell, and its unit\. With `stamps: true`, it also gives the stamp and author\. Where the credential and account bypass the application limit, `application_limit_exemption` gives the exemption\. Entries retired for the sizes are not returned\.<br><br>Type: object<br>Required fields: \["contract\_version","quotas"\]<br>Additional properties: false |
| /<wbr>properties/<wbr>contract\_version | Required value: 1 |
| /<wbr>properties/<wbr>quotas | Type: array |
| /<wbr>properties/<wbr>quotas/<wbr>items | Type: object<br>Required fields: \["plan","measure","quantity","unit"\] |
| /<wbr>properties/<wbr>quotas/<wbr>items/<wbr>properties/<wbr>plan | Type: string<br>Allowed values: \["shared\-0\.5gb","shared\-1gb","dedicated\-4gb","dedicated\-8gb"\] |
| /<wbr>properties/<wbr>quotas/<wbr>items/<wbr>properties/<wbr>measure | Type: string<br>Allowed values: \["stored\-data\-capacity","database\-connection\-limit","schedule\-minimum\-interval","schedule\-count\-limit","deploys\-per\-day","log\-retained\-capacity","function\-tree\-capacity","function\-count\-limit","function\-memory\-capacity","function\-cpu\-time","function\-answer\-time","function\-calls\-at\-once","function\-temporary\-capacity","free\-idle\-stop","development\-halt\-after\-days","development\-realm\-account\-limit","signin\-code\-sends\-per\-hour","egress\-connections\-per\-minute","egress\-bytes\-per\-day","websocket\-connections\-per\-replica","push\-messages\-capacity","email\-recipients\-per\-hour","email\-recipients\-per\-day"\] |
| /<wbr>properties/<wbr>quotas/<wbr>items/<wbr>properties/<wbr>quantity | The quantity in its entry's base unit, or null for an Unset cell\. The row's `unit` gives it\. `schedule-minimum-interval` uses minutes\. `free-idle-stop` and `function-answer-time` use seconds; `function-cpu-time` uses milliseconds\. `development-halt-after-days` uses days\. `stored-data-capacity`, `log-retained-capacity`, `egress-bytes-per-day`, `function-tree-capacity`, `function-memory-capacity` and `function-temporary-capacity` use bytes\. Every other returned entry is a count\.<br><br>Type: \["integer","null"\] |
| /<wbr>properties/<wbr>quotas/<wbr>items/<wbr>properties/<wbr>unit | The unit of `quantity`: `count`, `minutes`, `seconds`, `milliseconds`, `days`, `hours`, `bytes`, `micro-dollars`, or `1 or 0`\.<br><br>Type: string<br>Allowed values: \["count","minutes","seconds","milliseconds","days","hours","bytes","micro\-dollars","1 or 0"\] |
| /<wbr>properties/<wbr>quotas/<wbr>items/<wbr>properties/<wbr>set\_at | Under `stamps: true` alone: when the row was last set\.<br><br>Type: string |
| /<wbr>properties/<wbr>quotas/<wbr>items/<wbr>properties/<wbr>set\_by | Under `stamps: true` alone: `seed` for a row a migration wrote, otherwise the setting operator's account identifier\.<br><br>Type: string |
| /<wbr>properties/<wbr>application\_limit\_exemption | Present only where this call's credential and account bypass the per\-account application limit: `super_admin` under the super\-admin grant, `unbilled` for an account carrying the mark\. `create_application` then does not refuse `account_application_limit` for it\.<br><br>Type: string<br>Allowed values: \["super\_admin","unbilled"\] |
| /<wbr>properties/<wbr>detail | Describes the rows\. With no `measure`, `stamps: true` adds the full unit list\. With a `measure`, the detail gives that measure's unit, where a row exists\.<br><br>Type: string |

## Complete payload contract

```json
{
  "request": {
    "type": "object",
    "properties": {
      "plan": {
        "type": "string",
        "enum": [
          "shared-0.5gb",
          "shared-1gb",
          "dedicated-4gb",
          "dedicated-8gb"
        ],
        "description": "That size's rows alone, or with `measure` at most one row. Over the HTTP route an unlisted value is refused `invalid_request`."
      },
      "measure": {
        "type": "string",
        "enum": [
          "stored-data-capacity",
          "database-connection-limit",
          "schedule-minimum-interval",
          "schedule-count-limit",
          "deploys-per-day",
          "log-retained-capacity",
          "function-tree-capacity",
          "function-count-limit",
          "function-memory-capacity",
          "function-cpu-time",
          "function-answer-time",
          "function-calls-at-once",
          "function-temporary-capacity",
          "free-idle-stop",
          "development-halt-after-days",
          "development-realm-account-limit",
          "signin-code-sends-per-hour",
          "egress-connections-per-minute",
          "egress-bytes-per-day",
          "websocket-connections-per-replica",
          "push-messages-capacity",
          "email-recipients-per-hour",
          "email-recipients-per-day"
        ],
        "description": "That entry's row on each size that sets it. With `plan`, at most a row is returned, and none where that size sets no such value. The `detail` then says so. Over the HTTP route an unlisted value is refused `invalid_request`."
      },
      "stamps": {
        "type": "boolean",
        "description": "`true` adds each row's `set_at` and `set_by`. Without `measure`, it also adds the full unit list to `detail`. With `measure`, `detail` gives that measure's unit. Over HTTP, a non-boolean value is refused `invalid_request`."
      }
    },
    "additionalProperties": false
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "quotas"
    ],
    "properties": {
      "contract_version": {
        "const": 1
      },
      "quotas": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "plan",
            "measure",
            "quantity",
            "unit"
          ],
          "properties": {
            "plan": {
              "type": "string",
              "enum": [
                "shared-0.5gb",
                "shared-1gb",
                "dedicated-4gb",
                "dedicated-8gb"
              ]
            },
            "measure": {
              "type": "string",
              "enum": [
                "stored-data-capacity",
                "database-connection-limit",
                "schedule-minimum-interval",
                "schedule-count-limit",
                "deploys-per-day",
                "log-retained-capacity",
                "function-tree-capacity",
                "function-count-limit",
                "function-memory-capacity",
                "function-cpu-time",
                "function-answer-time",
                "function-calls-at-once",
                "function-temporary-capacity",
                "free-idle-stop",
                "development-halt-after-days",
                "development-realm-account-limit",
                "signin-code-sends-per-hour",
                "egress-connections-per-minute",
                "egress-bytes-per-day",
                "websocket-connections-per-replica",
                "push-messages-capacity",
                "email-recipients-per-hour",
                "email-recipients-per-day"
              ]
            },
            "quantity": {
              "type": [
                "integer",
                "null"
              ],
              "description": "The quantity in its entry's base unit, or null for an Unset cell. The row's `unit` gives it. `schedule-minimum-interval` uses minutes. `free-idle-stop` and `function-answer-time` use seconds; `function-cpu-time` uses milliseconds. `development-halt-after-days` uses days. `stored-data-capacity`, `log-retained-capacity`, `egress-bytes-per-day`, `function-tree-capacity`, `function-memory-capacity` and `function-temporary-capacity` use bytes. Every other returned entry is a count."
            },
            "unit": {
              "type": "string",
              "enum": [
                "count",
                "minutes",
                "seconds",
                "milliseconds",
                "days",
                "hours",
                "bytes",
                "micro-dollars",
                "1 or 0"
              ],
              "description": "The unit of `quantity`: `count`, `minutes`, `seconds`, `milliseconds`, `days`, `hours`, `bytes`, `micro-dollars`, or `1 or 0` (PRC-L0-16)."
            },
            "set_at": {
              "type": "string",
              "description": "Under `stamps: true` alone: when the row was last set."
            },
            "set_by": {
              "type": "string",
              "description": "Under `stamps: true` alone: `seed` for a row a migration wrote, otherwise the setting operator's account identifier."
            }
          }
        }
      },
      "application_limit_exemption": {
        "type": "string",
        "enum": [
          "super_admin",
          "unbilled"
        ],
        "description": "Present only where this call's credential and account bypass the per-account application limit: `super_admin` under the super-admin grant, `unbilled` for an account carrying the mark. `create_application` then does not refuse `account_application_limit` for it (ACB-L0-84)."
      },
      "detail": {
        "type": "string",
        "description": "Describes the rows. With no `measure`, `stamps: true` adds the full unit list. With a `measure`, the detail gives that measure's unit, where a row exists."
      }
    },
    "additionalProperties": false,
    "description": "The selected sizes' quota rows, or the sizes' rows where neither `plan` nor `measure` was passed. For each size they give its enforced entries, then its served values.\n\nEach row gives its quantity, null for an Unset cell, and its unit. With `stamps: true`, it also gives the stamp and author (PRC-L0-16). Where the credential and account bypass the application limit, `application_limit_exemption` gives the exemption (ACB-L0-84). Entries retired for the sizes are not returned."
  }
}
```

## Shared contracts

- [Refusals](/cloud/reference/refusals/): every refusal, by surface, with its cause and its remedy
- [schemas/wire\_error\.schema\.json](/cloud/reference/sources/schemas/wire-error-schema/)
- [schemas/wire\_errors\.json](/cloud/reference/sources/schemas/wire-errors/)
- [schemas/action\_payloads\.json](/cloud/reference/sources/schemas/action-payloads/) (includes shared shapes)
- [management\_api\_contract\.md](/cloud/reference/sources/management-api-contract/)
