Skip to main content
Glama

連上本人的帳號

connect_account

第一次使用時呼叫一次:取得 api_key、login_url 與確認代碼(code)。把 login_url 交給本人並告訴他代碼,他打開連結用 Google 或 LINE 登入、看到相同的代碼後按允許,這把 api_key 才能用(連結 30 分鐘內有效)。請保存 api_key,之後不用再登入;用 get_account 確認是否已經連上。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "connect_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelNo選填。你的名稱,例如 Claude;本人在確認頁與網站的「我的」會看到。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations supply only readOnlyHint=false; the description goes well beyond that by disclosing that a human approval step is required, that the api_key is unusable until approval, that the login link expires in 30 minutes, and that the key should be persisted across sessions. These are the exact behavioral facts an agent needs and none of them are available from the annotations or schema.

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?

It is front-loaded with the trigger condition and return values, then the human-in-the-loop flow, then the persistence and verification rules. Every sentence carries operational information the agent must act on; nothing is decorative or repeated.

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?

With no output schema, the description correctly enumerates the returned fields, their meaning, and the expiry constraint on login_url. Combined with the persistence and get_account verification guidance, an agent has everything needed to run the flow and recover afterwards.

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% and the single optional label parameter is fully documented in the schema itself, so the baseline of 3 applies. The description never mentions the label parameter or when to set it, adding no meaning beyond the schema.

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 description states a concrete verb and outcome (obtain api_key, login_url, and confirmation code) and explicitly names the sibling get_account as the way to check connection status. An agent can distinguish it from the other connect_* and get_account tools without inspecting 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit timing ("call once on first use"), an explicit follow-up rule ("save the api_key, no need to log in again"), and an explicit verification path via get_account. Both the when-to-use and the when-not-to-repeat conditions are stated.

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.