Skip to main content
Glama

Import cookies into a browser profile

import_browser_profile_cookies
Destructive

Adds sign-in cookies to a browser profile so authenticated sessions persist, with optional per-site import and encrypted storage.

Instructions

Add sign-in cookies to a browser profile. This is what gumloop browser import-logins calls. Send the cookies in Chrome extension (chrome.cookies.Cookie) or Chrome DevTools Protocol Cookie shape. With url, only that site's cookies are kept and the import replaces that site; without it, every site in the payload is imported. Cookies are encrypted with the profile's key before storage and are never returned by any endpoint.

Use default as the profile_id to import into the owner's default profile, creating it if needed. Explicit confirmation is required for this exact account operation. Runs can spend credits or trigger downstream actions; never resubmit unknown outcomes automatically.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoImport only the cookies for this site and replace what the profile had for it. Omit to import every site in `cookies`.
accountNoNamed private Gumloop account; selects private credentials and user/team identity.
confirmNoSet true only when the user asked for exactly this action.
cookiesNoCookies in `chrome.cookies.Cookie` or CDP `Cookie` shape.
payloadNoComplete JSON request body instead of body flags. Preserves current endpoint fields and values.
team_idNoImport into a team-owned profile instead of a personal one.
profile_idYesA profile id, or `default`.
payload_fileNoRegular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv3.0.0
    • changedInput schema / properties / confirm / description
      Previous value: -"Must be true for this exact requested account change, agent/flow execution, upload or deletion."New value: +"Set true only when the user asked for exactly this action."
  2. First observedv2.0.1

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations (destructiveHint=true, openWorldHint=true), the description discloses that cookies are encrypted with the profile's key before storage, are never returned by any endpoint, that confirmation is required for this exact account operation, and that runs can spend credits or trigger downstream actions. This is exactly the extra behavioral context annotations cannot carry.

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 purpose and the key url/no-url behavior are front-loaded, and each paragraph covers a distinct concern (import semantics, then confirmation/credit risk). It is slightly dense and the url explanation duplicates the schema text, but nothing is wasted.

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 complex tool (8 params, nested payload object, no output schema) it covers the critical ground: mutating/destructive nature, encryption and non-return of secrets, confirmation requirement, and credit/spend risk. The various body-flag vs payload vs payload_file alternatives are left to the schema, but that is reasonable given the schema already documents them fully.

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%, so the baseline is 3. The description restates the `url` semantics and the `default` profile_id hint that already appear in the schema, adding only marginal meaning (e.g., default profile is created if needed). It does not add syntax or format detail beyond the structured fields.

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 opens with a specific verb+resource ('Add sign-in cookies to a browser profile') and even identifies the underlying CLI command it maps to, leaving no ambiguity about what the tool does. No sibling tool operates on browser-profile cookies, so the agent can immediately tell this apart from list_browser_profiles or the many unrelated 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?

It gives clear conditional behavior: with `url` only that site's cookies are kept and replaced, without it every site in the payload is imported, plus the `default` profile_id convention. It also flags that explicit confirmation is required and warns against auto-resubmitting unknown outcomes. It stops short of naming an alternative or a 'when not to use' boundary, but the operative conditions are spelled out.

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

Deploy Server

Other Tools