Skip to main content
Glama

Spicrawl

Create a browsing session

spicrawl_session_create

Create a session: a persistent browser identity (cookie jar, localStorage, pinned engine and, by default, a sticky exit IP) that survives across scrapes. Use it for multi-step flows — log in, then fetch pages behind the login — by passing the returned id as session_id to every spicrawl_scrape call that should share the state. The engine is pinned for the session's lifetime. Without engine, the server picks one this deployment runs: obscura, else chromium, else fetch. Release the session with spicrawl_session_release when done. Returns the session object (id, engine, status, sticky_key, proxy, expires_at).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
engineNoEngine pinned for the session's lifetime. Default: `obscura` if deployed, else `chromium`, else `fetch`. `camoufox` is coming soon: do not pin it yet.
rotate_ipNoComing soon: not available yet, do not send. Keep the cookie jar stable but rotate the managed-pool exit IP per request. Cannot combine with sticky_key.
sticky_keyNoComing soon: not available yet, do not send. Pin the managed-pool exit IP to this key; sessions sharing a key share an exit. Cannot combine with rotate_ip.
fingerprintNoComing soon: not available yet, do not send. Camoufox fingerprint pin, stored verbatim. Only valid with engine `camoufox`.
region_poolNoComing soon: not available yet, do not send. Managed-pool region to draw the exit from.
ttl_secondsNoIdle lifetime in seconds (min 30, default 1800; the organization's maximum is enforced, not clamped).
domain_scoresNoSeed per-domain error scores (usually copied from a spicrawl_session_context dump).
premium_proxyNoComing soon: not available yet, do not send. Use a residential managed-pool exit, exactly as on spicrawl_scrape.
proxy_countryNoComing soon: not available yet, do not send. ISO-3166 alpha-2 exit country; requires premium_proxy.
session_contextNoSeed the session's state (cookies, storage) — e.g. the `session_context` object from spicrawl_session_context, to clone a session.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the mutation safety profile (readOnly=false, idempotent=false); the description adds the real behavioral context an agent needs — state survives across scrapes, the engine is pinned for the session's lifetime and cannot change, the default engine resolution order (obscura → chromium → fetch), and the fields returned. This is substantive disclosure 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.

Conciseness4/5

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

Front-loaded with purpose and usage, then defaults, release, and return shape. It is long but each sentence carries information; the closing field enumeration ('id, engine, status, sticky_key, proxy, expires_at') is slightly redundant padding since no output schema exists but the list is still useful.

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

Completeness5/5

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

For a 10-parameter, no-required-param, no-output-schema creation tool, the description covers purpose, sibling routing (scrape, release), engine-pinning semantics, defaults, and a field-level summary of the return value. Nothing essential for correct invocation is missing.

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

Parameters4/5

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

Schema description coverage is 100% and the schema already flags the 'coming soon' parameters, so the baseline is 3. The description still adds value by explaining the engine default-selection fallback logic and the sticky exit IP default, though it does not go deeper into the remaining parameters (ttl_seconds, domain_scores, session_context) than the schema.

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

Purpose5/5

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

States a specific verb and resource ('Create a session') and immediately defines what a session is (persistent browser identity: cookie jar, localStorage, pinned engine, sticky exit IP), which cleanly separates it from sibling read/lifecycle tools like spicrawl_session_get or spicrawl_session_context.

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

Usage Guidelines5/5

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

Explicitly states when to use it ('multi-step flows — log in, then fetch pages behind the login'), how to consume it ('passing the returned id as session_id to every spicrawl_scrape call that should share state'), and how to end it ('Release the session with spicrawl_session_release'). Alternatives and lifecycle are named, not inferred.

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