Skip to main content
Glama

List sessions

spicrawl_session_list
Read-onlyIdempotent

List this API key's project's sessions, newest first. Returns { sessions: [...], next_cursor? }; pass next_cursor back as cursor for the next page. Never includes the stored credentials.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoPage size (default 50, max 200).
cursorNo`next_cursor` from a previous page, verbatim.
engineNoOnly sessions on this rendering tier.
statusNoOnly sessions in this state.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
sessionsYesSessions on this page, newest first; may be short or empty under a `status` filter.
next_cursorNoPass back as `cursor` for the next page; absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "next_cursor": {
      +      "description": "Pass back as `cursor` for the next page; absent on the last page.",
      +      "type": "string"
      +    },
      +    "sessions": {
      +      "description": "Sessions on this page, newest first; may be short or empty under a `status` filter.",
      +      "items": {
      +        "additionalProperties": true,
      +        "properties": {
      +          "context": {
      +            "anyOf": [
      +              {
      +                "additionalProperties": true,
      +                "properties": {
      +                  "bytes": {
      +                    "description": "Serialised size of the stored context.",
      +                    "type": "integer"
      +                  },
      +                  "cookies": {
      +                    "description": "Cookies stored.",
      +                    "type": "integer"
      +                  },
      +                  "origins": {
      +                    "description": "Distinct origins with stored web storage.",
      +                    "type": "integer"
      +                  },
      +                  "schema_version": {
      +                    "type": "integer"
      +                  }
      +                },
      +                "type": "object"
      +              },
      +              {
      +                "type": "null"
      +              }
      +            ],
      +            "description": "Size summary of the stored context (counts only, no secrets); null once the session is not active."
      +          },
      +          "created_at": {
      +            "description": "Creation time, RFC 3339 UTC.",
      +            "type": "string"
      +          },
      +          "domain_scores": {
      +            "additionalProperties": {
      +              "additionalProperties": true,
      +              "properties": {
      +                "bad": {
      +                  "description": "Failed requests counted.",
      +                  "type": "integer"
      +                },
      +                "good": {
      +                  "description": "Successful requests counted.",
      +                  "type": "integer"
      +                },
      +                "last_updated": {
      +                  "description": "Last update, Unix milliseconds.",
      +                  "type": "number"
      +                },
      +                "retired": {
      +                  "description": "Hard block for this domain; use a new session for it.",
      +                  "type": "boolean"
      +                },
      +                "score": {
      +                  "description": "Error score; rises on failures, decays on successes. Blocked at 3.",
      +                  "type": "number"
      +                }
      +              },
      +              "type": "object"
      +            },
      +            "description": "Per-domain standing, keyed by domain. Omitted when empty.",
      +            "type": "object"
      +          },
      +          "engine": {
      +            "description": "Rendering tier the session is bound to: fetch, js or browser.",
      +            "type": "string"
      +          },
      +          "expires_at": {
      +            "description": "Current expiry (slides on use), RFC 3339 UTC.",
      +            "type": "string"
      +          },
      +          "fingerprint": {
      +            "additionalProperties": {},
      +            "description": "Browser fingerprint, as stored.",
      +            "type": "object"
      +          },
      +          "hard_expires_at": {
      +            "description": "Fixed ceiling the expiry never passes, RFC 3339 UTC.",
      +            "type": "string"
      +          },
      +          "id": {
      +            "description": "Session id; pass it as `session_id` to spicrawl_scrape.",
      +            "type": "string"
      +          },
      +          "last_used_at": {
      +            "description": "Last successful scrape, RFC 3339 UTC; null if never used.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "lease": {
      +            "additionalProperties": true,
      +            "description": "Present only while a scrape holds the session; release and delete are refused until it lapses unless `force`.",
      +            "properties": {
      +              "expires_at": {
      +                "description": "When the lease lapses at the latest, RFC 3339 UTC.",
      +                "type": "string"
      +              },
      +              "holder": {
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "project_id": {
      +            "description": "Project the session belongs to.",
      +            "type": "string"
      +          },
      +          "proxy": {
      +            "additionalProperties": true,
      +            "description": "The session's exit intent (never an IP or endpoint).",
      +            "properties": {
      +              "country": {
      +                "description": "Lowercase alpha-2 exit country, when one was requested.",
      +                "type": "string"
      +              },
      +              "region_pool": {
      +                "description": "Regional pool requested at creation.",
      +                "type": "string"
      +              },
      +              "tier": {
      +                "description": "Exit tier: datacenter or residential.",
      +                "type": "string"
      +              }
      +            },
      +            "type": "object"
      +          },
      +          "released_at": {
      +            "description": "Release time, on released sessions, RFC 3339 UTC.",
      +            "type": "string"
      +          },
      +          "retired": {
      +            "description": "Why the session was taken out of service (expired, usage_exhausted, explicit); absent while usable.",
      +            "type": "string"
      +          },
      +          "status": {
      +            "description": "active, released or expired; derived from the clock, and only `active` sessions can be used.",
      +            "type": "string"
      +          },
      +          "sticky_key": {
      +            "description": "Exit pin in use (empty when rotate_ip was set).",
      +            "type": "string"
      +          },
      +          "usage_count": {
      +            "description": "Successful scrapes that used the session.",
      +            "type": "integer"
      +          },
      +          "warnings": {
      +            "description": "Decisions made on your behalf at creation, e.g. a TTL reduced to the organization maximum.",
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "id"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    }
      +  },
      +  "required": [
      +    "sessions"
      +  ],
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / engine / description
      Previous value: -"Only sessions pinned to this engine."New value: +"Only sessions on this rendering tier."
    • changedInput schema / properties / engine / enum
      Previous value: -[
      -  "fetch",
      -  "obscura",
      -  "chromium",
      -  "camoufox"
      -]New value: +[
      +  "fetch",
      +  "js",
      +  "browser"
      +]
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds a security-relevant trait: "Never includes the stored credentials." It also discloses the return envelope shape and that next_cursor is the pagination handle, going beyond structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, front-loaded with scope and ordering, then return shape and pagination, then the credential caveat. No filler and every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values needn't be fully explained, and the description covers scope, ordering, pagination, and the credential exclusion. It stops short of noting how the engine/status filters interact, but those are documented in the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so all four params are self-documented, making 3 the baseline. The description's note that next_cursor is passed back as cursor largely restates the cursor param's own schema text, adding little beyond it.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource+scope ("List this API key's project's sessions") and adds ordering semantics ("newest first"). An agent can tell this is a paginated list apart from the singular session_get / session_context siblings, though it doesn't explicitly name an alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by the verb (list = enumerate sessions) and it explains the pagination loop, but there is no explicit when-to-use/when-not guidance or routing against siblings like requests_list or session_get. Adequate but with clear gaps.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources