Skip to main content
Glama

create_pair

Establish a new learner-agent relationship to begin a course, using the learner's exact registered name and your provider/model/display name. Rejects if a pair already exists.

Instructions

建立一段新的 learner-agent 关系 (pair) —— 真入学的唯一正门 (get_context 报 No active pair 时走这里, 流程见 recipe://bootstrap 的"无 pair 分支": 先说明、知情同意对话、再建对)。⚠️ 名字主权红线: learner_display_name 必须与学习者本人在首跑页亲手登记的名字逐字一致——名字是学习者的主权动作, agent 代填代猜即越权; 学习者还没登记时本工具会拒绝, 此时引导她去首跑页亲手输入自己的名字, 不要替她填。agent 三件套 (provider/model/display_name) 由你自报——一千个不同的好老师, 系统不推断你的身份。守卫: 该学习者已有 active pair 时拒绝重复建对, 回执指路既有关系。成功后 pair 即为"当前关系" (真 pair 永远优先于 demo 样板间), 下一步读 recipe://learner-orientation 上开学第一课, 顺势谈第一份契约。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
localeNo可选——学习者的语言偏好 (如 zh-CN / en), 来自学习者本人的表达。
agent_modelYes必填——你的模型系, 自报 (如 claude / gpt / gemini / custom)。
preferencesNo可选——学习者偏好对象 (如 {timezone, learning_style_notes}), 浅合并进登记行的既有 preferences。learner-owned: 只写学习者本人说过的, 不猜。
agent_providerYes必填——你的宿主环境, 自报 (如 claude-code-cli / cursor / claude-desktop / windsurf / custom)。
idempotency_keyNo可选。幂等键 (建议 uuid) —— 同一 key 重放此调用返回首次结果, 不重复写入. 网络重试/断线重连时带上同一个 key, 而不是猜"上次到底写没写".
agent_display_nameYes必填——你在这段关系里的名字, 学习者会在界面上看到它。
learner_display_nameYes必填——逐字来自学习者在首跑页亲手登记的名字 (trim 后 1-80 字符)。代填即越权。
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so thoroughly. It discloses key behavioral traits: refusal when the learner name is not registered, refusal on duplicate active pair, success makes the pair current, real pair precedence over demo, and required sequential steps (consent conversation before pairing). No annotation contradiction exists.

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?

The description is a single dense paragraph, but it is well-structured and front-loaded with purpose. Every sentence adds value, though it could be slightly trimmed. It uses emojis and section markers for readability, earning a 4.

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?

For a tool with 7 parameters, nested objects, and no output schema, the description is remarkably complete. It covers prerequisites (name registration), pre-steps (informed consent), post-steps (read orientation recipe), edge cases (duplicate pair), and current-relationship semantics. It fully equips an agent to invoke the tool 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 coverage is 100%, so baseline is 3. The description adds meaningful context beyond the schema for critical parameters: learner_display_name has a sovereignty red line, agent_provider/model/display_name are self-reported by the agent, and idempotency_key is implied for retry safety via 'same key replay'. This extra semantic weight justifies a 4.

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 clearly states the tool's function: to establish a new learner-agent relationship (pair). It specifies the exact resource and action, and distinguishes itself from siblings by calling itself the 'only proper door to real enrollment' and referencing when get_context reports No active pair.

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?

Explicit usage guidance is provided: use this tool when get_context reports no active pair, and follow the bootstrap recipe's no-pair branch. It also states when not to use (if an active pair already exists, the tool refuses and points to the existing relationship), giving clear context and alternatives.

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

Install Server

Other Tools

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/sf-shenfeng/learn-shell'

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