Skip to main content
Glama

request_oauth_integration_url

Initiate an OAuth handoff to a vendor integration (Google Ads, GA4, Search Console, Sheets, Drive, BigQuery, Meta Ads, Jira, Confluence). Returns an authorization URL the user opens in a browser. After the user clicks Allow, the user must return to the clariBI app (same browser, signed in as themselves) and confirm the connection under Settings > Integrations; nothing is connected until they do. Poll check_integration_status(handoff_id) to find out when it is live. There is deliberately no tool to confirm on the user's behalf.

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": {
      "provider": "<provider>"
    },
    "name": "request_oauth_integration_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
providerYesOAuth provider to authorize. Currently supports the native-OAuth catalog: Google (Ads, Analytics 4, Search Console, Sheets, Drive, BigQuery), Meta Ads, and Atlassian Jira / Confluence.
integration_typeNoPer-provider sub-type. Google accepts google_ads, gsheets, ga4, gsc, gdrive, bigquery, gcs, gcp, basic. Meta accepts ads or basic. Jira and Confluence accept basic. Defaults to basic.

Output Schema

NameRequiredDescriptionDefault
providerYes
next_stepYesTool to call next, normally "check_integration_status".
handoff_idYes
authorize_urlYesOpen in a browser to grant consent.
integration_typeYes
expires_in_secondsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only mark this non-read-only and open-world; the description goes well beyond them, disclosing that the call yields a URL rather than a live connection, that nothing is connected until the user confirms in-app, and that a companion tool must be polled for state. It also states a hard boundary (no server-side confirmation) that the agent cannot infer from any structured field.

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 action and the provider catalog, then the post-call workflow. Every sentence is load-bearing (confirm step, polling, no-confirm boundary), though the parenthetical provider enumeration partially duplicates the schema enum and makes the opening sentence dense.

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?

Even setting aside the output schema, the description covers the full handoff lifecycle: what is returned, what the user must do, what the app state is until then, and how to detect completion. Nothing an agent needs to call this correctly and set expectations 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 description coverage is 100% and both parameters carry their own descriptions and enums, so baseline 3 applies. The description's provider list loosely mirrors the provider enum and gives no added detail on integration_type defaults or valid per-provider combinations beyond what the schema already states.

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?

Opens with a specific verb plus resource: 'Initiate an OAuth handoff to a vendor integration,' and enumerates the concrete providers covered (Google Ads, GA4, Search Console, Sheets, Drive, BigQuery, Meta Ads, Jira, Confluence). It separates itself from the sibling check_integration_status by assigning that tool the polling role, so the agent can pick between them without inspecting schemas.

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?

Gives an explicit when-to-use chain: call this to get the URL, the user authorizes in a browser, the user returns to clariBI and confirms under Settings > Integrations, then poll check_integration_status(handoff_id). It also rules out a nonexistent alternative with 'There is deliberately no tool to confirm on the user's behalf,' which prevents the agent from hunting for a confirmation sibling.

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