Skip to main content
Glama

save_auth_profile

Save authentication profiles for test runs using environment variables, browser storage state, or cookie JSON files, enabling reusable login configurations.

Instructions

Save an authentication profile for use in test runs.

Args: profile_name: Unique name for this profile auth_type: One of "env_login", "storage_state", or "cookie_json" login_url: Login page URL (required for env_login) username_env: Name of env var holding the username (default: TEST_USERNAME) password_env: Name of env var holding the password (default: TEST_PASSWORD) storage_state_path: Path to a Playwright storage_state.json file cookie_json_path: Path to a JSON file containing cookie objects user_data_dir: Optional path to a persistent Chromium profile directory (helps with anti-bot OAuth)

Returns: dict with profile_name, auth_type, status, note

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
auth_typeYes
login_urlNo
password_envNoTEST_PASSWORD
profile_nameYes
username_envNoTEST_USERNAME
user_data_dirNo
cookie_json_pathNo
storage_state_pathNo
Behavior2/5

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

No annotations are provided, so the description carries the full burden for behavioral disclosure. It states the return dict but does not mention side effects, persistence location, overwrite behavior, or required permissions. For a save operation, this is a notable gap.

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 well-structured with an Args block and a Returns line, front-loading the core purpose. Every line earns its place by adding parameter semantics or clarifying expected output without redundancy.

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 an 8-parameter tool with no annotations and no output schema, the description supplies strong invocation guidance: all parameters, defaults, conditional requirements, and return keys. It falls short only on side effects and tool-selection context, but is largely sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema has 0% description coverage, yet the description compensates thoroughly by explaining every parameter, its purpose, default values, and conditional requirements. It adds meaningful context such as 'user_data_dir helps with anti-bot OAuth' that the schema alone cannot convey.

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 clearly states the tool saves an authentication profile for use in test runs, with a specific verb and resource. It does not explicitly distinguish itself from sibling tools like capture_auth_session, so it misses the top score.

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

Usage Guidelines3/5

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

The description provides conditional usage details such as login_url being required for env_login and default environment variable names. However, it never explicitly says when to use save_auth_profile versus alternatives like capture_auth_session, so usage guidance is only implied.

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/n2400813g/blop-mcp'

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