read_rate_card #

View this page as Markdown

On this page

Generated automatically from the published contract sources.

A script calls this action over HTTPS at POST https://dev.turnzero.ai/api/v1/read_rate_card, 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 read_rate_card.

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).

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 the current price and unit for each rate on this estate's rate card. The read takes no arguments and writes nothing. It lists rates in registry order and includes the job-size rates only when jobs are enabled on this estate.

A price is in its key's unit. effective_from is the UTC day it took effect, in YYYY-MM-DD form. With no row in effect, unset is true and both price and effective_from are null, never zero or free. The unit then comes from a future row if one exists, and is null otherwise.

It returns no reason, stamp or author. Read it before quoting a price or estimating a cost. Charges above the allowance draw on any credit you already hold. While prepaid credit is unavailable, a billed account pauses when its balance runs out. You pay nothing for a month if your account's total charges for that month are at or below its allowance. That allowance is your account's monthly Free Allowance plus the introduction bonus while it lasts.

More about this action #

The row in effect is each key's newest row whose effective day is no later than the call's UTC day. The returned price is in that row's unit, at its stored precision; effective_from is its effective UTC day.

Where no row is in effect, unset is true and price and effective_from are null. That is no price, never zero, free or a default. The unit comes from a future row if the table holds one, and is null otherwise. The card lists rates in registry order. Job-size rates appear only when jobs are enabled on this estate. The response includes an item for every other rate key, including keys with no rate in effect.

The read takes no arguments. An unexpected request member is refused invalid_request by that member's name.

The read returns no reason, stamp or author. This read supplies the current rates for a price quote or cost estimate.

Access and action metadata #

{
  "name": "read_rate_card",
  "resource": "account",
  "tier": "observe",
  "surface": "account",
  "addresses": [
    "tzcloud",
    "tztools"
  ],
  "clients": [
    "bearer",
    "browser_session"
  ],
  "summary": "Read the current rate card with no arguments. The card lists rates in registry order. Job-size rates appear only when jobs are enabled on this estate. Each item gives the unit, price, effective UTC day and `unset`. If no rate is in effect, `unset` is true and both the price and effective day are null. The response omits the reason, stamp and author.",
  "annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "openWorldHint": false,
    "idempotentHint": true
  }
}

MCP catalog entry #

{
  "name": "read_rate_card",
  "title": "Read the current rate card",
  "tier": "observe",
  "scenario": "CHI-L0-09",
  "summary": "Read the current price and unit for each rate on this estate's rate card. The read takes no arguments and writes nothing. It lists rates in registry order and includes the job-size rates only when jobs are enabled on this estate.\n\nA price is in its key's unit. `effective_from` is the UTC day it took effect, in YYYY-MM-DD form. With no row in effect, `unset` is true and both `price` and `effective_from` are null, never zero or free. The unit then comes from a future row if one exists, and is null otherwise.\n\nIt returns no reason, stamp or author. Read it before quoting a price or estimating a cost. Charges above the allowance draw on any credit you already hold. While prepaid credit is unavailable, a billed account pauses when its balance runs out. You pay nothing for a month if your account's total charges for that month are at or below its allowance. That allowance is your account's monthly Free Allowance plus the introduction bonus while it lasts.",
  "owners": [
    "PRC-L0-16",
    "PRC-L0-02"
  ]
}

request #

JSON pointer Description and constraints
"" (root) Type: object
Additional properties: false

response #

JSON pointer Description and constraints
"" (root) Type: object
Required fields: ["contract_version","rates","detail"]
/properties/contract_version Required value: 1
/properties/reference The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call’s record row. Quote it when you report the call.

Type: string
Pattern: ^[0-9a-f]{10}$
/properties/rates One item for each listed rate key, in registry order, including keys with no rate in effect. Job-size rates appear only when jobs are enabled on this estate.

Type: array
/properties/rates/items Type: object
Required fields: ["key","unit","price","effective_from","unset"]
Additional properties: false
/properties/rates/items/properties/key The rate key whose price and unit this item describes.

Type: string
Allowed values: ["monthly-free-usage","launch-bonus","server-shared-0.5gb","server-shared-1gb","server-dedicated-4gb","server-dedicated-8gb","server-dedicated-16gb","job-2gb","job-4gb","job-8gb","database-shared","database-dedicated-2gb","database-dedicated-4gb","database-dedicated-8gb","database-storage","file-storage","data-transfer","function-calls","email","signin-users","custom-domain","logs-extended","ai-markup","chat-image-standard-1k","chat-image-standard-2k","chat-image-standard-4k","chat-image-pro-2k","chat-image-pro-4k","tztrack-ai-passes","tzteam-addition"]
/properties/rates/items/properties/unit The unit of the row in effect. If none is in effect, the unit of a future row where one exists, or null where the table holds no row for this key.

Type: ["string","null"]
/properties/rates/items/properties/price The price in this key's unit, as stored. Null where no row is in effect; null is never zero, free or a default.

Type: ["number","null"]
Minimum: 0
/properties/rates/items/properties/effective_from The UTC day the current price took effect, in YYYY-MM-DD form, or null where no row is in effect.

Type: ["string","null"]
Pattern: ^\d{4}-\d{2}-\d{2}$
/properties/rates/items/properties/unset True where this key has no row in effect at the call; price and effective_from are then null. False where a row is in effect.

Type: boolean
/properties/detail What the rate items describe, how an unset key is represented, and how server time, a shared database and other usage make up an application's monthly total.

Type: string

Complete payload contract #

{
  "request": {
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "rates",
      "detail"
    ],
    "properties": {
      "contract_version": {
        "const": 1
      },
      "reference": {
        "type": "string",
        "pattern": "^[0-9a-f]{10}$",
        "description": "The short reference the platform recorded your call under: ten lowercase hexadecimal characters, the value in the call’s record row. Quote it when you report the call."
      },
      "rates": {
        "type": "array",
        "description": "One item for each listed rate key, in registry order, including keys with no rate in effect. Job-size rates appear only when jobs are enabled on this estate.",
        "items": {
          "type": "object",
          "required": [
            "key",
            "unit",
            "price",
            "effective_from",
            "unset"
          ],
          "properties": {
            "key": {
              "type": "string",
              "enum": [
                "monthly-free-usage",
                "launch-bonus",
                "server-shared-0.5gb",
                "server-shared-1gb",
                "server-dedicated-4gb",
                "server-dedicated-8gb",
                "server-dedicated-16gb",
                "job-2gb",
                "job-4gb",
                "job-8gb",
                "database-shared",
                "database-dedicated-2gb",
                "database-dedicated-4gb",
                "database-dedicated-8gb",
                "database-storage",
                "file-storage",
                "data-transfer",
                "function-calls",
                "email",
                "signin-users",
                "custom-domain",
                "logs-extended",
                "ai-markup",
                "chat-image-standard-1k",
                "chat-image-standard-2k",
                "chat-image-standard-4k",
                "chat-image-pro-2k",
                "chat-image-pro-4k",
                "tztrack-ai-passes",
                "tzteam-addition"
              ],
              "description": "The rate key whose price and unit this item describes."
            },
            "unit": {
              "type": [
                "string",
                "null"
              ],
              "description": "The unit of the row in effect. If none is in effect, the unit of a future row where one exists, or null where the table holds no row for this key."
            },
            "price": {
              "type": [
                "number",
                "null"
              ],
              "minimum": 0,
              "description": "The price in this key's unit, as stored. Null where no row is in effect; null is never zero, free or a default."
            },
            "effective_from": {
              "type": [
                "string",
                "null"
              ],
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
              "description": "The UTC day the current price took effect, in YYYY-MM-DD form, or null where no row is in effect."
            },
            "unset": {
              "type": "boolean",
              "description": "True where this key has no row in effect at the call; price and effective_from are then null. False where a row is in effect."
            }
          },
          "additionalProperties": false
        }
      },
      "detail": {
        "type": "string",
        "description": "What the rate items describe, how an unset key is represented, and how server time, a shared database and other usage make up an application's monthly total."
      }
    }
  }
}

Shared contracts #