Skip to main content
Glama

Read provider connection attempt

provider_connect_attempt_read
Read-onlyIdempotent

Reads one connection attempt created by this actor through provider_connect_handoff.

pending, authorizing or choosing means browser work is unfinished. connected means done; result summarizes the connection (GitHub: account and repositories; Linear: organization and team; Meta: Page and channels with message-subscription status; Discord: bot, server and channels; Google Drive: account and picked files, each importing or refreshing as the Agent's source; Gmail: account and channel support address). GitHub/Linear grant no Agent access by themselves: provider_resources_read exposes both revisions for github_resources_select/linear_resources_select. Meta, Discord and Gmail channels are connected to the Agent. cancelled, expired or failed attempts need a new link if the person still wants to connect.

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": {
      "attempt_id": "<attempt_id>"
    },
    "name": "provider_connect_attempt_read"
  }
}

Input Schema

NameRequiredDescriptionDefault
attempt_idYesConnection attempt ID from provider_connect_handoff.

Output Schema

NameRequiredDescriptionDefault
resultYes
statusYes
agent_idYes
providerYes
attempt_idYes
expires_atYes
next_actionYes
failure_codeYes
workspace_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedOutput schema / $defs / DiscordBot
      Added value: +{
      +  "properties": {
      +    "application_id": {
      +      "title": "Application Id",
      +      "type": "string"
      +    },
      +    "id": {
      +      "title": "Id",
      +      "type": "string"
      +    },
      +    "name": {
      +      "title": "Name",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "id",
      +    "name",
      +    "application_id"
      +  ],
      +  "title": "DiscordBot",
      +  "type": "object"
      +}
    • removedOutput schema / $defs / DiscordConnectionResult / description
      Removed value: -"A connected attempt's summary: the server and the channels the Agent answers in."
    • addedOutput schema / $defs / DiscordConnectionResult / properties / bot
      Added value: +{
      +  "$ref": "#/$defs/DiscordBot"
      +}
    • changedOutput schema / $defs / DiscordConnectionResult / required
      Previous value: -[
      -  "guild",
      -  "channels"
      -]New value: +[
      +  "bot",
      +  "guild",
      +  "channels"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / attempt_id / description
      Added value: +"Connection attempt ID from provider_connect_handoff."
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety is covered; the description adds the genuinely new behavioral fact that the state machine's non-terminal values mean browser work is unfinished and that terminal failures are unrecoverable without a new link. The per-provider result summary overlaps somewhat with the existing output schema, which keeps it from a 5.

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 opening sentence is well front-loaded and the state glossary is useful, but the long middle sentence packs five provider-specific result shapes into one dense run-on. That content largely restates the output schema and makes the definition harder to scan than it needs to be.

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 multi-provider connection state machine with an output schema in place, the definition covers states, terminal-vs-nonterminal meaning, and the correct next tool for each provider family. The main gap is operational: nothing about polling cadence, link expiry windows, or whether reads are cheap enough to repeat.

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?

With a single parameter at 100% schema description coverage, the schema already explains that attempt_id is a UUID from provider_connect_handoff. The description reinforces the provenance but adds no format, validation, or edge-case meaning beyond what the schema 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?

The first sentence gives a specific verb (Reads), a specific resource (one connection attempt), and a scope restriction (created by this actor through provider_connect_handoff), which also names the producing sibling. An agent can distinguish this from provider_resources_read, provider_status, or the disconnect tools without opening any 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 clearly positions the tool in the workflow: call it after provider_connect_handoff to interpret the attempt state, look to provider_resources_read for GitHub/Linear revisions before github_resources_select/linear_resources_select, and issue a new link when the attempt is cancelled/expired/failed. What is left implicit is polling behavior while the attempt is pending and whether this tool is the only way to observe state, so it stops short of full when/when-not coverage.

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