Skip to main content
Glama

save_session_from_browser

Saves cookies from aa.com after you log in through aa-auth-browser, preserving your AAdvantage session.

Instructions

Pull cookies from a logged-in Chromium (started by aa-auth-browser) and save them.

Workflow:

  1. Run aa-auth-browser <account> to launch Chromium with --remote-debugging-port.

  2. Log into aa.com in that browser.

  3. Call this tool — it connects to the debug port via CDP and saves all aa.com cookies.

Args: account: Account name to associate with the saved cookies. Default: "default". port: Chromium remote-debugging port as a string. Empty/omitted uses the default (9224, matches aa-auth-browser). Pass as string to avoid MCP type-coercion issues with some clients.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
accountNodefault
portNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

No annotations are provided, so the description carries full burden. It explains the tool connects via CDP, saves all aa.com cookies, and depends on an external browser session. Does not specify overwrite behavior, but overall transparent.

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?

Description is well-structured: one-liner purpose, numbered workflow, then parameter docs. Every sentence adds value, no fluff, front-loaded.

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's complexity (requires prior steps, state-changing), the description covers prerequisites, workflow, and parameters. There is an output schema, so return value need not be explained. Could mention multiple runs, but overall 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 has 0% description coverage. The description adds value by explaining each parameter's purpose (account name, port) and details why port should be passed as string, with defaults clearly stated.

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?

Description clearly states the tool pulls cookies from a Chromium browser started by aa-auth-browser and saves them. It includes a workflow that differentiates it from sibling tools (e.g., check_auth_status are read-only queries).

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?

Explicit workflow steps are provided: run aa-auth-browser, log in, then call this tool. While no direct alternatives are mentioned, the context makes usage clear. Lacks explicit when-not-to-use, but strong for its purpose.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thehesiod/aa-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server