Skip to main content
Glama

session_adopt

Adopt an existing managed Bridge session: verify it exists and is hosted, then tag it for MCP and register its session ID and purpose.

Instructions

写:用户点名接管一个既有托管会话。先校验会话存在且在 bridge 侧是托管会话,再打 MCP 标签、写入登记册(参数 sessionId + purpose)。

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": {
      "sessionId": "<sessionId>",
      "purpose": "<purpose>"
    },
    "name": "session_adopt"
  }
}

Input Schema

NameRequiredDescriptionDefault
purposeYes接管后这条用途线的短名
sessionIdYesBridge 会话 ID(必须是本连接器登记册内的会话;session_adopt 是唯一接管入口)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does disclose real behavior: pre-flight validation that the session exists and is managed on the bridge side, followed by MCP tagging and a registry write. It omits failure semantics, idempotency if a session is already adopted, and any permission requirements, leaving meaningful gaps for a mutation tool.

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?

Two front-loaded sentences beginning with the write character '写', with the validation step before the side effects. There is minor redundancy in restating the parameter names, but nothing wasteful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The two required parameters are fully covered by the schema and preconditions plus side effects are described, which is adequate for a simple two-parameter write. Since no output schema exists, the absence of any statement about what is returned or what errors look like leaves a gap relative to the tool's mutation semantics.

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%, with both sessionId and purpose fully documented in the schema, including the constraint that the session must already be in this connector's registry. The description merely echoes '参数 sessionId + purpose' without adding syntax, format, or edge-case meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb and resource: it is the write path that adopts ('接管') an already-existing managed session, which distinguishes it from creation-style siblings like session_open through the word '既有' (existing). It does not name a sibling explicitly, so the differentiation is implied rather than stated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

It is clear that adoption is triggered by a user explicitly designating a session ('用户点名'), which is usable context. However, there is no explicit when-not guidance, no mention of the alternative for creating new sessions, and no statement of prerequisites such as ownership or permission.

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