Skip to main content
Glama

platform_connect

Establish a live session connection to begin receiving execution traces for debugging. Authenticates automatically, accepts a server URL, and reports active environment details.

Instructions

[Arch Debug] Arch connects to live sessions, traces failures, and inspects execution state. Connect to the server WebSocket to start receiving traces. Call this first before using other Arch debug tools. Auth is automatic — stored credentials or device auth are tried in order. If device auth is needed, the browser opens automatically and the tool polls until approved (single call, no two-phase). Credentials are saved to the MCP-owned credential store for future sessions. If already connected and a new authToken is provided, the authenticated WebSocket is safely replaced before the token is committed. Changing environments while connected is rejected unless force=true is explicitly provided. Every successful response includes activeTarget identity and environment metadata; surface it to the user when context changes. If no serverUrl is given and AGENTS_URL is unset, ask the user which environment to connect to (production/dev/staging/qa) instead of guessing. If it fails, report the error as-is to the user. Do NOT try alternative approaches like REST calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoForce reconnection even if already connected. Use when the auth token has expired or you need to re-authenticate.
wsUrlNoDeprecated: use serverUrl instead. Runtime WebSocket URL.
httpUrlNoDeprecated: use serverUrl instead. Runtime HTTP API URL.
authTokenNoJWT auth token. If not provided, authentication is automatic (stored credentials → device auth with browser launch).
serverUrlNoRuntime server URL. If the user has not specified an environment, ask which one to connect to before proceeding — production (https://agents.kore.ai), dev (https://agents-dev.kore.ai), staging (https://agents-staging.kore.ai), or qa (https://agents-qa.kore.ai). Falls back to the AGENTS_URL env var if not provided.
deviceCodeNoDeprecated. Device auth now auto-polls in a single call. Only needed if resuming a previously interrupted flow.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv1.5.0

TDQS

A4.9/5.0
Behavior5/5

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

Describes authentication flow in detail: stored credentials → device auth with automatic browser opening and polling, single call, no two-phase. Discloses credential storage, safe WebSocket replacement on new authToken, environment change restrictions, and successful response metadata. Since no annotations exist, description carries full burden and exceeds it.

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

Conciseness5/5

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

Though lengthy, every sentence adds critical context. Front-loads purpose and usage order, then covers auth, edge cases, and error handling without redundancy. Each clause earns its place.

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?

Comprehensive for a connection tool with 6 params, no output schema, and no annotations. Covers prerequisites, authentication flow, failure handling, environment selection, and response metadata, leaving no critical gap for an agent to call it correctly.

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 description coverage is 100%, so baseline is 3. Description adds valuable context beyond schema: authToken replacement behavior, serverUrl environment selection fallback, force requirement for environment changes, and deprecation guidance. This pushes above baseline but not to 5 since schema already covers core semantics.

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?

States a specific action: connect to the server WebSocket for Arch debugging. Clearly identifies it as the first step before other Arch debug tools, distinguishing it from siblings like debug_list_active_sessions or debug_traces.

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?

Explicitly says 'Call this first before using other Arch debug tools.' Provides conditions for force usage, environment change rejection, and tells the agent to ask the user for environment if not specified. Also forbids alternative approaches like REST calls.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Koredotcom/agents-mcp-tools'

If you have feedback or need assistance with the MCP directory API, please join our Discord server