Skip to main content
Glama

Start provider connection

provider_connect_handoff

Creates a connection link for the person represented by the current actor.

The link carries only an attempt ID and grants nothing: the browser signs in, refuses anyone but this person, then runs provider consent and required choices. No dashboard is needed. Each call creates a new attempt, valid for 30 minutes. Only read scope is required because the link is inert: the person's browser session authorizes every step. provider_status exposes configuration; configured=false means required deployment configuration is missing. browser_url is the person's connection page. readback_tool with readback_arguments reports that exact attempt after browser completion. Google Drive ends with file selection in Google Picker; Gmail ends with support-address selection; Meta ends with Facebook Page and Instagram selection. No provider code, state, token or secret is accepted or returned. LINE credentials belong only on the connect page, never in chat. Discord connects the customer's own bot through the same private browser page, including its token and application secret, provider consent, server and channel selection. The page includes setup and repair instructions. These secrets never belong in tool arguments.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "agent_id": "<agent_id>",
      "provider": "<provider>"
    },
    "name": "provider_connect_handoff"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage of the person's provider-connection page.en
agent_idYesAgent ID from agents_list or agent_create.
providerYesProvider for the new browser connection attempt.

Output Schema

NameRequiredDescriptionDefault
cancelYes
resumeYes
statusYes
expiredYes
agent_idYes
providerYes
attempt_idYes
expires_atYes
browser_urlYes
browser_pathYes
workspace_idYes
readback_toolYes
workspace_nameYes
readback_argumentsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / agent_id / description
      Added value: +"Agent ID from agents_list or agent_create."
    • addedInput schema / properties / locale / description
      Added value: +"Language of the person's provider-connection page."
    • addedInput schema / properties / provider / description
      Added value: +"Provider for the new browser connection attempt."
  2. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations declare this is a non-read-only, non-idempotent, non-destructive call, but the description adds substantial context beyond them: the link is inert and carries only an attempt ID, only read scope is required, the browser session authorizes each step, attempts expire after 30 minutes, and no provider code, state, token or secret is accepted or returned. It also discloses per-provider end states (Drive file Picker, Gmail support-address, Meta Page/Instagram, Discord bot token and channel selection), which is behavior an agent cannot infer from the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core behavior and validity window are front-loaded, which is good, but the secret-handling warning is repeated three times ("no provider code, state, token or secret," "LINE credentials belong only on the connect page," "These secrets never belong in tool arguments"), and the per-provider ending list is long. The content earns its place individually, but the repetition inflates the definition beyond what is needed.

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?

For a handoff tool with an output schema and annotations already present, the description supplies everything an agent needs: the security model, attempt lifetime, what happens in the browser, provider-specific endings, and the readback_tool/readback_arguments follow-up path. Nothing material about calling it correctly is missing.

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 coverage is 100% with enums for provider and locale, so the schema already carries the parameter documentation and a baseline of 3 applies. The description adds meaning around the resulting attempt, its 30-minute lifetime and the readback mechanism, but it does not clarify agent_id versus "the current actor" or explain the locale parameter, so it does not exceed the baseline.

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?

"Creates a connection link for the person represented by the current actor" gives a specific verb and resource with clear scope. It also distinguishes itself from the sibling provider_status, which it explicitly says only "exposes configuration," so an agent can tell the two apart without opening either schema.

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?

The description gives a clear operational context: no dashboard is needed, and each call mints a fresh 30-minute attempt, which tells the agent this is repeatable rather than a one-shot. It also steers the agent to provider_status when configured=false, indicating missing deployment configuration. It stops short of an explicit when-not rule, so a 4 rather than a 5.

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.

Resources