Skip to main content
Glama

session_use

Switch to a specific session for stateful multi-step browser automation, persisting the active session to file for subsequent calls.

Instructions

Set the active session (persisted to active-session file).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesSession name.
leaseNoOptional lease token to present if the target session is leased (0.7.0). Threaded per-call; never read from the server's env.
sessionNoOptional session name to target (omit for the shared 'default'). On a daemon shared with other agents, pass a UNIQUE name for stateful multi-step work (go→click→fill) so you don't collide on 'default'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It reveals that the change is persisted to a file, which is useful context. However, it does not mention side effects, whether the operation overwrites an existing session, or how it interacts with leases. For a state-changing tool, this is minimal but not misleading.

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?

The description is a single, efficient sentence that front-loads the core action ('Set the active session') and includes the key persistence note. Every word earns its place with no fluff or repetition.

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

Completeness2/5

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

For a tool that changes persistent state and has multiple related siblings, the description is underspecified. It does not explain what happens after setting the session, potential return values, or error conditions. The schema covers parameter details, but the overall behavior and selection context are missing, leaving an agent without enough information to confidently invoke the tool.

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 description coverage is 100%, and the schema already provides meaningful descriptions for all parameters, including the note about using a unique session name on a shared daemon. The tool description adds nothing about parameters beyond what the schema covers, so the baseline of 3 applies.

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?

The description states a specific verb and resource ('Set the active session') and adds the persistence detail. However, it does not distinguish it from the sibling tool 'session_switch', which also deals with session switching. The agent might be unsure which one to pick based solely on this description.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like session_switch or session_new. It does not mention any prerequisites, conditions, or exclusion criteria. An agent receives no help in choosing between session_use and its closely related siblings.

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