list_context

Generated automatically from the published contract sources.

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.

A script calls this action over HTTPS at POST https://turnzero.ai/api/v1/actions/list_context, with a bearer credential and the action's payload as the JSON body. It also accepts GET.

Contract description

List the context IDs visible to this connection: contracts, guides, implemented skills, and available documentation trees. A skill's entry names it in one line: its text opens with what the implementer must do, so read it with read_context before acting on the skill. Results are paged; use `next_offset` with the returned `stamp` until `next_offset` is null.

Access and action metadata

{
  "name": "list_context",
  "resource": "platform_context",
  "tier": "observe",
  "access": "anonymous",
  "summary": "List the platform context catalog, including contracts, guides, live skills and available documentation trees. Start here to discover what to read.",
  "annotations": {
    "readOnlyHint": true,
    "destructiveHint": false,
    "openWorldHint": false,
    "idempotentHint": true
  }
}

MCP catalog entry

{
  "name": "list_context",
  "tier": "observe",
  "scenario": "CHI-L0-05",
  "summary": "List the context IDs visible to this connection: contracts, guides, implemented skills, and available documentation trees. A skill's entry names it in one line: its text opens with what the implementer must do, so read it with read_context before acting on the skill. Results are paged; use `next_offset` with the returned `stamp` until `next_offset` is null.",
  "owners": []
}

request

JSON pointer Description and constraints
"" (root) Type: object
Required fields: []
Additional properties: false
/properties/offset Zero-based catalog entry offset; defaults to 0. Use the previous response's next_offset for continuation. A nonzero offset requires its stamp.

Type: integer
Minimum: 0
Maximum: 9007199254740991
/properties/stamp The SHA-256 stamp returned by the previous page. Required with a nonzero offset. A change to the catalog entries returns context_changed; restart at offset 0 without a stamp. The stamp does not grant access.

Type: string
Pattern: ^[a-f0-9]{64}$

response

JSON pointer Description and constraints
"" (root) Type: object
Required fields: ["contract_version","stamp","offset","total","next_offset","entries"]
Additional properties: false
/properties/contract_version Required value: 1
/properties/stamp Type: string
Pattern: ^[a-f0-9]{64}$
/properties/offset Type: integer
Minimum: 0
Maximum: 9007199254740991
/properties/total Type: integer
Minimum: 0
Maximum: 9007199254740991
/properties/next_offset Type: ["integer","null"]
Minimum: 0
Maximum: 9007199254740991
/properties/entries Type: array
/properties/entries/items Type: object
Required fields: ["id","summary","tool","authentication"]
Additional properties: false
/properties/entries/items/properties/id Type: string
/properties/entries/items/properties/summary Type: string
/properties/entries/items/properties/tool Allowed values: ["read_context","read_documentation"]
/properties/entries/items/properties/authentication Allowed values: ["optional","required"]
/properties/entries/items/properties/tree Allowed values: ["cloud","blueprint","tzdocs"]
/properties/entries/items/properties/part Allowed values: ["index","full"]

Complete payload contract

{
  "request": {
    "type": "object",
    "properties": {
      "offset": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991,
        "description": "Zero-based catalog entry offset; defaults to 0. Use the previous response's next_offset for continuation. A nonzero offset requires its stamp."
      },
      "stamp": {
        "type": "string",
        "pattern": "^[a-f0-9]{64}$",
        "description": "The SHA-256 stamp returned by the previous page. Required with a nonzero offset. A change to the catalog entries returns context_changed; restart at offset 0 without a stamp. The stamp does not grant access."
      }
    },
    "required": [],
    "additionalProperties": false
  },
  "response": {
    "type": "object",
    "properties": {
      "contract_version": {
        "const": 1
      },
      "stamp": {
        "type": "string",
        "pattern": "^[a-f0-9]{64}$"
      },
      "offset": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "total": {
        "type": "integer",
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "next_offset": {
        "type": [
          "integer",
          "null"
        ],
        "minimum": 0,
        "maximum": 9007199254740991
      },
      "entries": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "summary": {
              "type": "string"
            },
            "tool": {
              "enum": [
                "read_context",
                "read_documentation"
              ]
            },
            "authentication": {
              "enum": [
                "optional",
                "required"
              ]
            },
            "tree": {
              "enum": [
                "cloud",
                "blueprint",
                "tzdocs"
              ]
            },
            "part": {
              "enum": [
                "index",
                "full"
              ]
            }
          },
          "required": [
            "id",
            "summary",
            "tool",
            "authentication"
          ],
          "additionalProperties": false
        }
      }
    },
    "required": [
      "contract_version",
      "stamp",
      "offset",
      "total",
      "next_offset",
      "entries"
    ],
    "additionalProperties": false
  }
}

Shared contracts