Skip to main content
Glama

Create a new session

post_sessions

Verifies Firebase ID token, creates a session for workspaceName, stores serialized payload (defaults to {} when omitted), and returns sessionToken (JWT; subject = internal session id). Default server-side TTL is 1 hour (implementation detail).

If the Firebase token includes email, the server best-effort persists it on the workspace end-user row (for audit display). Prefer POST /sessions/get-or-create for hosted-login-style flows that should reuse an active session.

Source: POST /api/v1/sessions Requires auth.firebaseToken and forwards it as a Bearer token. Prefer connection.workspaceName and connection.appId as stable config instead of generating identity fields dynamically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
authNo
bodyYes
queryNo
paramsNo
connectionYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It discloses the auth verification step, the session creation side effect, payload serialization/defaulting, the JWT response with subject=internal session id, a 1-hour TTL implementation detail, and best-effort email persistence. This is substantial and transparent, though it stops short of describing error behavior or idempotency.

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?

The description is well-organized: core behavior first, then side effects and alternative routing, then source and configuration guidance. It is dense but each sentence contributes useful information. Slight redundancy exists between 'Requires auth.firebaseToken' and the earlier 'Verifies Firebase ID token', but overall it is structured effectively.

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?

Given the tool has no output schema, the description explains the key return value (sessionToken JWT) and includes source endpoint, auth requirements, TTL, side-effect email persistence, and a routing alternative. It lacks error scenarios and response envelope details, but it is sufficient for an agent to select and invoke the tool correctly.

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?

The schema has 0% coverage per the context signal, so the description must compensate. It adds meaning for payload (serialized, defaults to {}), auth.firebaseToken (verified and sent as Bearer), and connection.workspaceName/appId (preferred stable config). However, it does not add detail about body.app_id beyond what the schema itself already says, and it omits guidance for host, so compensation is partial.

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 clearly states it verifies a Firebase ID token, creates a session for workspaceName, stores payload, and returns a sessionToken JWT. It also distinguishes itself from post_sessions_get_or_create by explicitly mentioning that the alternative should be preferred for hosted-login-style flows, making sibling differentiation strong.

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?

The description gives explicit routing guidance: 'Prefer POST /sessions/get-or-create for hosted-login-style flows that should reuse an active session.' It also provides operational prerequisites such as requiring auth.firebaseToken and forwarding it as a Bearer token. It does not cover exclusions for all sibling tools, but it gives clear context for the most relevant alternative.

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.

TDQS

A3.7/5.0
Disambiguation2/5

Several tools cover nearly identical actions with subtle differences: post_sessions, post_sessions_get_or_create, and post_sessions_renew_session_token all create/reuse sessions; get_auth_logout and post_auth_logout both log out; and the two revoke endpoints overlap heavily. An agent would struggle to pick the correct variant without reading detailed descriptions.

Naming Consistency2/5

Naming mixes HTTP-verb prefixes (get_, post_, delete_) with domain-specific verbs (auth_session_callback, secureflows_build_login_url), and get_sessions_get_key is redundant and awkward. The pattern is inconsistent across the set even though individual chunks are readable.

Tool Count3/5

18 tools is on the heavy side for what is essentially session lifecycle management plus a few helper utilities. Many tools could be consolidated (e.g., one logout tool, one revoke tool, one key-access pattern), making the surface feel fragmented.

Completeness4/5

The session lifecycle is well covered: create, renew, revoke, logout, get payload, set/delete keys, identity, and self-service listing are all present. Minor gaps include no direct TTL adjustment after creation and no admin-level session management, but the core workflows are complete.