Skip to main content
Glama

Connect an account

connect_account

Start connecting an account for a connector, destination or MCP.

Returns a browser authorization_url the user opens to authorize (OAuth), or instructions when the connector needs a different method. For a BigQuery service account it returns instructions plus a follow_up to the action that ingests the key — the secret never travels through this tool.

role disambiguates BigQuery: role='source' connects it as a data source (read the user's own tables); the default connects it as a destination (write results). Ignored for every other connector.

company_id says which company the authorization should land in. Pass it whenever the user holds a role in more than one company — reconnecting an account that lives in a client's or a colleague's company is exactly that case. list_accounts reports the company_id of every account, so reconnect a broken one with the company it is already in; otherwise the authorization can land somewhere else and leave the broken one untouched.

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": {
      "connector": "<connector>"
    },
    "name": "connect_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
roleNo
methodNo
connectorYes
company_idNo
redirect_uriNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say this is a non-destructive, open-world write. The description adds substantial behavior beyond them: the flow is out-of-band (the user opens a URL), the two possible return shapes (authorization_url vs instructions), the BigQuery service-account special case with a follow_up action, and the security note that the secret never travels through this tool. That is meaningful operational context an agent could not infer from readOnlyHint/destructiveHint.

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?

Front-loaded with the return contract, then parameter-specific paragraphs, which mirrors how an agent reads it. The company_id paragraph is slightly repetitious ('reconnecting an account ... is exactly that case' restates the preceding clause), but nothing is wasted overall.

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 five-parameter, one-required tool with an output schema, the description covers the tricky branch points (role, company_id) and the non-obvious secret-handling behavior, so an agent can call it correctly in the common cases. The gap is the unexplained method and redirect_uri parameters, which matters more given zero schema coverage.

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 0%, so the description must carry the parameter burden. It does well for role (BigQuery-only, source vs destination default) and company_id (authorization routing), but leaves method and redirect_uri entirely unexplained in both schema and prose. Two of five parameters remain opaque.

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 opening sentence gives a specific verb and resource ('Start connecting an account') plus the scope ('connector, destination or MCP'), and the following sentences describe exactly what the call produces (an authorization_url or instructions). No sibling tool overlaps this connect-flow behavior, so an agent can identify it without opening the 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?

It explicitly states the condition for passing company_id ('whenever the user holds a role in more than one company') and the reconnect case, and names list_accounts as the way to discover the existing company. It also explains the role-based branching for BigQuery. It stops short of giving an explicit when-not-to-use or pointing to a tool for locating the connector identifier first.

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