start #

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/start, 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 start.

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 your account, its products, and your credential. If the account has tzCloud, the answer includes its applications and each environment's state. This call changes nothing. Call it first. It returns the versions available to your connection. It also says whether your credential admits test end users on production. read_account returns the account alone, with its sign-in identities. read_status returns one application's live health. read_context with id overview holds the platform's rules.

Access and action metadata #

{
  "name": "start",
  "resource": "account",
  "tier": "observe",
  "surface": "account",
  "addresses": [
    "tzcloud",
    "tztools"
  ],
  "admits": [
    "device_sign_in"
  ],
  "summary": "A connection's first read: the acting account (`id` and `standing`), the connection's credential (`credential`, a minted token's grants among it, with whether it admits test end users on production), the products the account holds under the profile rule (`products`), and its tzCloud applications as `list_applications` returns them (`applications`, absent where the account does not hold tzCloud), with `product_lines`, a line for each other product whose tools the connection lists and whose state `start` reads, empty where it lists none.",
  "annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "openWorldHint": false,
    "idempotentHint": true
  }
}

MCP catalog entry #

{
  "name": "start",
  "title": "Start here",
  "tier": "observe",
  "scenario": "CHI-L0-04",
  "summary": "Read your account, its products, and your credential. If the account has tzCloud, the answer includes its applications and each environment's state. This call changes nothing. Call it first. It returns the versions available to your connection. It also says whether your credential admits test end users on production. `read_account` returns the account alone, with its sign-in identities. `read_status` returns one application's live health. `read_context` with id `overview` holds the platform's rules.",
  "owners": [
    "MCP-08"
  ]
}

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","account","credential","products","product_lines","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/account The account your connection represents. read_account returns the rest of its record.

Type: object
Required fields: ["id","standing"]
Additional properties: false
/properties/account/properties/id Type: string
/properties/account/properties/standing The account's standing, active or suspended, as read_account returns it.

Type: string
/properties/credential The credential your connection holds. A minted token must be account-scoped to reach start. The answer gives the credential's kind and any grants described here. It omits the credential's value and label.

Type: object
Required fields: ["kind","detail"]
Additional properties: false
/properties/credential/properties/kind The kind of credential your connection holds: bearer for a sign-in connection's session, browser_session for the signed-in site's, and minted_token for a minted token.

Type: string
/properties/credential/properties/grants A minted token's grants, as list_tokens returns them. For a session, this contains only super_admin when the session holds that grant and is absent otherwise.

Type: array
/properties/credential/properties/grants/items Type: string
/properties/credential/properties/detail Says whether this credential creates, reads, and signs in test end users on production. When it holds the super-admin grant, a further sentence says that per-account application limits do not apply.

Type: string
/properties/products The products the account holds, each by its product word, as read_account lists them under profiles: tzcloud for tzCloud.

Type: array
/properties/products/items Type: string
/properties/applications The account's tzCloud applications as list_applications returns them, each with its environments and their states; absent where the account does not hold tzCloud.

$ref: #/shapes/list_applications
/properties/product_lines For a connection that lists another product's tools, a line for each such product whose state start reads, read from that product's own server; empty for every other connection.

Type: array
/properties/product_lines/items Type: object
Required fields: ["product","state","door","detail"]
Additional properties: false
/properties/product_lines/items/properties/product The product, by the name read_account lists under profiles.

Type: string
/properties/product_lines/items/properties/state read where the product's own server returned the line's read. setup_needed where it says the account has a step left, such as making its first issue space, the step in detail and, where the server gives the call, next. refused where it refused it for any other reason, its reason in detail. unavailable where it could not be read, so the line holds no state.

Allowed values: ["read","setup_needed","refused","unavailable"]
/properties/product_lines/items/properties/door The address of the product's own MCP server the line was read from, which you may also connect to directly.

Type: string
/properties/product_lines/items/properties/next Present where the product's own server gives the call that comes next: the call detail points at.

Type: object
Additional properties: false
Required fields: ["tool"]
/properties/product_lines/items/properties/next/properties/tool The tool to call, as this connection lists it.

Type: string
/properties/product_lines/items/properties/next/properties/arguments The arguments the product's server suggests for it.

Type: object
/properties/product_lines/items/properties/space Where the product keeps issues: the id of the account's default issue space, as its server gave it; null where the state is setup_needed or refused.

Type: ["string","null"]
/properties/product_lines/items/properties/waiting_for_person Where the product keeps issues: how many issues in the default space wait for your person, counted on a first page of at most 100; null where the state is setup_needed or refused.

Type: ["integer","null"]
Minimum: 0
/properties/product_lines/items/properties/more_waiting True where more issues wait for your person beyond the counted page.

Type: boolean
/properties/product_lines/items/properties/handle Where the product carries messages: your account's handle there, as its server gave it; null where the account has none yet or the server refused the read.

Type: ["string","null"]
/properties/product_lines/items/properties/agents Where the product carries messages: the handle of each standing agent your account holds there, empty where it holds none; null where the server refused the read. The unread count needs a participant, so read it with the product's own read tool.

Type: ["array","null"]
/properties/product_lines/items/properties/agents/items Type: string
/properties/product_lines/items/properties/detail Type: string
/properties/versions Read server and tzcloud as the plane's full build commit. The response includes a tzTrack or tzMesh version only when your connection lists that product's tools and the server holds a nonempty version from its latest MCP handshake. The response omits unavailable versions.

Type: object
minProperties: 1
Additional properties: false
/properties/versions/properties/server Type: string
Minimum length: 1
/properties/versions/properties/tzcloud Type: string
Minimum length: 1
/properties/versions/properties/tztrack Type: string
Minimum length: 1
/properties/versions/properties/tzmesh Type: string
Minimum length: 1
/properties/detail Type: string

Complete payload contract #

{
  "request": {
    "type": "object",
    "properties": {},
    "additionalProperties": false
  },
  "response": {
    "type": "object",
    "required": [
      "contract_version",
      "account",
      "credential",
      "products",
      "product_lines",
      "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."
      },
      "account": {
        "type": "object",
        "required": [
          "id",
          "standing"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "standing": {
            "type": "string",
            "description": "The account's standing, `active` or `suspended`, as `read_account` returns it."
          }
        },
        "additionalProperties": false,
        "description": "The account your connection represents. `read_account` returns the rest of its record."
      },
      "credential": {
        "type": "object",
        "required": [
          "kind",
          "detail"
        ],
        "properties": {
          "kind": {
            "type": "string",
            "description": "The kind of credential your connection holds: `bearer` for a sign-in connection's session, `browser_session` for the signed-in site's, and `minted_token` for a minted token."
          },
          "grants": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A minted token's grants, as `list_tokens` returns them. For a session, this contains only `super_admin` when the session holds that grant and is absent otherwise."
          },
          "detail": {
            "type": "string",
            "description": "Says whether this credential creates, reads, and signs in test end users on production. When it holds the super-admin grant, a further sentence says that per-account application limits do not apply."
          }
        },
        "additionalProperties": false,
        "description": "The credential your connection holds. A minted token must be account-scoped to reach `start`. The answer gives the credential's kind and any grants described here. It omits the credential's value and label."
      },
      "products": {
        "type": "array",
        "items": {
          "type": "string"
        },
        "description": "The products the account holds, each by its product word, as `read_account` lists them under `profiles`: `tzcloud` for tzCloud."
      },
      "applications": {
        "description": "The account's tzCloud applications as `list_applications` returns them, each with its environments and their states; absent where the account does not hold tzCloud.",
        "$ref": "#/shapes/list_applications"
      },
      "product_lines": {
        "type": "array",
        "items": {
          "type": "object",
          "required": [
            "product",
            "state",
            "door",
            "detail"
          ],
          "properties": {
            "product": {
              "type": "string",
              "description": "The product, by the name `read_account` lists under `profiles`."
            },
            "state": {
              "enum": [
                "read",
                "setup_needed",
                "refused",
                "unavailable"
              ],
              "description": "`read` where the product's own server returned the line's read. `setup_needed` where it says the account has a step left, such as making its first issue space, the step in `detail` and, where the server gives the call, `next`. `refused` where it refused it for any other reason, its reason in `detail`. `unavailable` where it could not be read, so the line holds no state."
            },
            "door": {
              "type": "string",
              "description": "The address of the product's own MCP server the line was read from, which you may also connect to directly."
            },
            "next": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "tool"
              ],
              "properties": {
                "tool": {
                  "type": "string",
                  "description": "The tool to call, as this connection lists it."
                },
                "arguments": {
                  "type": "object",
                  "description": "The arguments the product's server suggests for it."
                }
              },
              "description": "Present where the product's own server gives the call that comes next: the call `detail` points at."
            },
            "space": {
              "type": [
                "string",
                "null"
              ],
              "description": "Where the product keeps issues: the id of the account's default issue space, as its server gave it; null where the state is `setup_needed` or `refused`."
            },
            "waiting_for_person": {
              "type": [
                "integer",
                "null"
              ],
              "minimum": 0,
              "description": "Where the product keeps issues: how many issues in the default space wait for your person, counted on a first page of at most 100; null where the state is `setup_needed` or `refused`."
            },
            "more_waiting": {
              "type": "boolean",
              "description": "True where more issues wait for your person beyond the counted page."
            },
            "handle": {
              "type": [
                "string",
                "null"
              ],
              "description": "Where the product carries messages: your account's handle there, as its server gave it; null where the account has none yet or the server refused the read."
            },
            "agents": {
              "type": [
                "array",
                "null"
              ],
              "items": {
                "type": "string"
              },
              "description": "Where the product carries messages: the handle of each standing agent your account holds there, empty where it holds none; null where the server refused the read. The unread count needs a participant, so read it with the product's own read tool."
            },
            "detail": {
              "type": "string"
            }
          },
          "additionalProperties": false
        },
        "description": "For a connection that lists another product's tools, a line for each such product whose state start reads, read from that product's own server; empty for every other connection."
      },
      "versions": {
        "type": "object",
        "description": "Read `server` and `tzcloud` as the plane's full build commit. The response includes a tzTrack or tzMesh version only when your connection lists that product's tools and the server holds a nonempty version from its latest MCP handshake. The response omits unavailable versions.",
        "minProperties": 1,
        "properties": {
          "server": {
            "type": "string",
            "minLength": 1
          },
          "tzcloud": {
            "type": "string",
            "minLength": 1
          },
          "tztrack": {
            "type": "string",
            "minLength": 1
          },
          "tzmesh": {
            "type": "string",
            "minLength": 1
          }
        },
        "additionalProperties": false
      },
      "detail": {
        "type": "string"
      }
    }
  }
}

Shared contracts #