Skip to main content
Glama

browser_save_session

Save the sign-in of an OPEN page into the browser identity the page was opened with (browser.open with identity), the same as a person's "I'm logged in, save session" button. Without it a sign-in made in a browser.open page is lost when the page closes, and everything that reads the identity (channels.reconnect, integrations) keeps the old session. Call it ONLY after checking the page shows the signed-in state (a logged-out page would replace a working session), before closing it. Refused when the page was opened without an identity, when the identity is not active or expired, or when the page is not signed in to the identity's own site. Nothing secret is returned. Needs the member, admin or owner role.

Input Schema

NameRequiredDescriptionDefault
page_idYespage_id of the open, signed-in page (from browser.open with identity).
in_workspaceNoRun this one call in this workspace id instead of the session's. Nothing is stored; other sessions are not affected.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (which only say not-read-only, non-destructive, non-idempotent, closed-world): it discloses the consequence of skipping the call, three explicit refusal conditions, that the identity may be inactive or expired, and that the role must be member/admin/owner. It also states that nothing secret is returned, covering return behavior in the absence of an output schema.

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?

Every sentence carries information and the critical constraint (verify signed-in, call before closing) is front-loaded. It is one dense run-on paragraph, though, so the refusal conditions and role requirement are easier to miss than if they were broken out.

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 two-parameter mutation with no output schema, the description supplies everything an agent needs: precondition, ordering relative to page close, failure modes, authorization role, and return sensitivity. Nothing material is left unstated.

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 both `page_id` and `in_workspace` are already documented in the schema. The description reinforces that the page must be an open, signed-in page opened with an identity, but adds nothing about `in_workspace` or `page_id` format beyond the schema. Baseline 3 is appropriate when the schema carries the semantics.

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?

Names a specific verb and resource (save a page's sign-in into the browser identity the page was opened with) and anchors it with a concrete human analogy ("I'm logged in, save session" button). It also names the exact companion call that creates the precondition (browser.open with `identity`), so an agent can place it precisely among the browser_* siblings.

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?

Very explicit timing: call it ONLY after verifying the page shows the signed-in state and before closing the page, plus the reason (a logged-out page would overwrite a working session). It does not compare against the neighboring identity tools (browser_attach_identity) that could be confused as an alternative way to attach a session, so it stops short of full when/when-not/alternatives coverage.

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.