Skip to main content
Glama

Get the user a link to sign Bowmark in to a site

add_connection

Get a sign-in link for one site, so the user can sign Bowmark in to it right now, before any run needs it. Pass the site as a domain (youtube.com), a URL, or a provider id. Call this whenever the user asks to log in, sign in, connect or link an account on a site — never send them to the Bowmark Link extension or the dashboard to do it themselves.

It returns url, a single-use link that expires (expiresAt). Give the user that URL and say which site it is for. On that page they sign in with Bowmark's own browser, or, in desktop Chrome with Bowmark Link installed, press "Use Chrome extension" to send the login that Chrome already holds. Then call wait_for_sign_in with the returned ref: it answers the moment they finish, and every later run uses the new login.

When Bowmark cannot sign in to that site, it says so and returns sites, the sites it can sign in to. Tell the user plainly. Do not offer a workaround that asks for their password. A public page on that site still works without a login: get_library shows what can read it.

To sign back in to a saved login that stopped working, pass its id from list_connections as connection. The fresh session goes into the SAME id.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
siteYesThe site to sign in to: a domain (`youtube.com`), a URL, its name, or a provider id.
connectionNoOptional. The `id` of a saved login from `list_connections`, to sign back in to it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

With annotations already covering safety traits, the description adds substantial behavioral context: the return value is a single-use expiring URL, the user signs in on that page, wait_for_sign_in completes the flow, failures return a list of supported sites, and re-signing in targets the same connection id.

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 trigger are front-loaded, and the multi-paragraph structure follows the workflow logically. It is longer than necessary but most sentences carry actionable detail for a complex sign-in flow.

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?

There is no output schema, so the description must explain return values; it does so with url and expiresAt. It also covers failure behavior, the next step with wait_for_sign_in, and the saved-login case, which is complete for this tool.

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 coverage is 100%, so the baseline is 3. The description adds meaning by explaining the connection parameter’s use case: signing back in to a saved login that stopped working, with the fresh session going into the same id.

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 states a specific verb and resource: get a sign-in link for one site. It distinguishes this tool from sibling tools by explaining that wait_for_sign_in is called afterward and that the user should not be sent to the extension or dashboard.

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

Usage Guidelines5/5

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

It gives explicit triggers: call whenever the user asks to log in, sign in, connect, or link an account on a site. It also states when not to use it, names the follow-up tool, handles the saved-login case, and explains failure behavior.

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.