AgentStack
SKILL verified MIT Self-run

Lark Contact

skill-ddpie-lark-mcp-on-agentcore-lark-contact · by ddpie

飞书 / Lark 通讯录:按姓名 / 邮箱解析成 open_id,或按 open_id 反查姓名 / 部门 / 邮箱 / 联系方式 / 个人状态 / 签名。当用户提到某人姓名要下一步发消息 / 排日程,或拿到 open_id 想查具体信息时使用。不负责部门树遍历、按部门列员工、组织架构图,这类需求走原生 OpenAPI。

No reviews yet
0 installs
10 views
0.0% view→install

Install

$ agentstack add skill-ddpie-lark-mcp-on-agentcore-lark-contact

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Lark Contact? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

contact (v2)

选哪个工具

user 身份和 bot 身份是两条完全独立的路径。MCP server 始终使用 user 身份,按下表选工具:

| 想做什么 | user 身份 | bot 身份 | |---|---|---| | 按姓名 / 邮箱搜员工拿 openid | lark_contact_search_user (参见 lark_get_skill(domain="contact", section="search-user")) | 不支持 | | 已知 openid 取他人资料 | lark_contact_search_user(user_ids="") | ⚠️ 需要 bot 身份,MCP server 不可用 | | 查看自己 | lark_contact_get_user()lark_contact_search_user(user_ids="me") | 不支持 | | 查同事的个人状态 / 签名 | 通过 lark_invoke 调用 lark_contact_user_profiles_batch_query | 不支持 |

已知 open_id 只是想发消息 / 排日程,不必经过 contact —— 直接用 lark_get_skill(domain="im") / lark_get_skill(domain="calendar")

典型场景

找张三给他发消息:先搜,确认 open_id,再发:

lark_contact_search_user(query="张三", has_chatted=true)
lark_im_messages_send(user_id="ou_xxx", text="Hi!")

批量查同事的个人状态 / 个性签名(先用 lark_discover 看参数)。

lark_discover(query="contact.user_profiles.batch_query")
lark_invoke(tool_name="lark_contact_user_profiles_batch_query", args={
  params: {"user_id_type": "open_id"},
  data: {"user_ids": ["ou_xxx", "ou_yyy"], "query_option": {"include_personal_status": true, "include_description": true}}
})

搜索命中多条且后续操作有副作用(发消息、邀请会议等),把候选列给用户挑;不要擅自选第一条。

注意事项

  • 41050 / Permission denied 受当前身份的可见范围限制(两条工具都可能遇到)。需要管理员调整可见范围。
  • 跨租户用户(is_cross_tenant=true)多数业务字段为空字符串,这是飞书可见性规则,下游做空值兜底。
  • ID 类型:默认 open_idlark_contact_get_user 可用 user_id_type="union_id""user_id"lark_contact_search_user 只接受 open_id

不在本 skill 范围

  • 发消息 / 查聊天记录 → lark_get_skill(domain="im")
  • 排日程 / 邀请会议 → lark_get_skill(domain="calendar")
  • 部门树 / 按部门列员工 / 组织架构 → lark_get_skill(domain="openapi-explorer") 查找原生接口

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.