Skip to main content
Glama

Typebar (formerly SuperDocs)

init_session

Create a session AND open N saved documents into it in ONE call (the documents are SHARED, never copied — the same cross-session behavior as /documents/open). The web UI passes its own session_id so its session model stays consistent; an MCP/API integrator can omit it and the server mints one — the one-call way to start a session with documents already open. With no document_ids it just returns a fresh, empty session. The open semantics (first document focused, durable binding, returned roster) are identical to /documents/open.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
session_idNoOptional client-chosen session id (the web UI passes its own so its session model stays consistent). Omit and the server mints one — the one-call way for an MCP/API integrator to start a session with documents already open.
document_idsNoDurable document ids (from GET /v1/documents) to open into the brand-new session. Omit/empty to start an empty session.
include_htmlNoInclude each document's full reassembled HTML body. Default false (token-light — recommended for AI agents enumerating or switching tabs): returns only ids, title, section count, focused flag, and page setup, omitting the body which can be hundreds of KB per document. The web app passes true to render document content.
authorizationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that documents are SHARED and never copied, that the first document is focused, the binding is durable, and a roster is returned. It is silent on the authorization parameter and on error/failure behavior, which are meaningful gaps for a session-creating mutation.

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

Conciseness3/5

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

The purpose is front-loaded, but the text repeats the 'one-call way to start a session with documents already open' idea and the '/documents/open' cross-reference twice. Some sentences could be consolidated without loss.

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?

For a combined create-plus-open tool with no annotations and no output schema, the description covers the key behaviors an agent needs (sharing semantics, focus, empty-session case). It lacks only authorization and failure-mode detail to be fully complete.

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 coverage is 75%, and the description reinforces session_id semantics (client-chosen vs server-minted) and the document_ids roles beyond the schema. It adds little for include_html (already fully documented) and leaves the authorization parameter unaddressed in both schema and description.

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?

The description names a specific verb+resource (create a session and open N documents) and precisely scopes it as a combined one-call operation. It implicitly separates this from the sibling open_documents by framing it as the way to start a session with documents already open.

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

Usage Guidelines4/5

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

It gives concrete usage context: the web UI passes its own session_id, while an MCP/API integrator omits it and the server mints one; with no document_ids it returns an empty session. It never names the sibling open_documents or states an explicit when-not-to-use, so it stops short of full routing guidance.

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.