Leave MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| API_ENV | No | Environment to use: 'uat' or 'prd' | uat |
| API_BASE_UAT | No | UAT API base URL | https://zhgr-mp-uat.huanhuigroup.cn |
| API_BASE_PROD | No | Production API base URL | https://zhgr-mp.huanhuigroup.cn |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| init_leave_flowA | 初始化请假流程。 依次执行:获取用户信息(接口1)→ 检查未销假(接口4)→ 获取请假类型(接口2)→ 查询剩余假期(接口3)。 如果存在未销假记录,返回 has_pending_leave=true,LLM 应提示用户先销假。 两种调用方式:
Args: user_token: 用户认证 Token(可选,优先使用)。 user_code: 用户编码(可选,user_token 为空时通过此编码自动获取 Token)。 Returns: InitFlowResult: 包含用户信息、岗位列表、请假类型、剩余假期、Token。 |
| select_organizationA | 根据用户选择的序号返回岗位信息。 用于用户有多个岗位时,从 init_leave_flow 返回的 user_orgs 中选择一个。 索引从 0 开始(与 Python 列表一致)。如果用户输入的是从 1 开始的序号, LLM 应在调用前转换为从 0 开始的索引。 Args: user_orgs: 岗位列表,来自 init_leave_flow 的返回值。 selected_index: 选中的岗位索引(从 0 开始)。 Returns: SelectOrgResult: 包含选中的岗位信息。 |
| calculate_leave_daysA | 计算实际休假天数并校验假期余额。 调用接口 5 计算实际休假天数,然后根据请假类型校验余额:
Args: user_token: 用户认证 Token。 leave_type_code: 请假类型编码(来自 init_leave_flow 的 leave_types)。 start_date: 开始日期,格式 yyyy-MM-dd。 end_date: 结束日期,格式 yyyy-MM-dd。 user_code: 用户编码。 leave_type: 请假类型名称(如 "年休假"、"调休假"),用于余额校验。 avlb_annl_leave: 年假剩余天数(来自 init_leave_flow)。 avlb_ot_leave: 调休假剩余天数(来自 init_leave_flow)。 start_time_code: 开始时间编码,AM 或 PM,默认 AM。 end_time_code: 结束时间编码,AM 或 PM,默认 AM。 Returns: CalcDaysResult: 包含休假天数和余额校验结果。 |
| check_attachment_requirementA | 根据请假类型检查附件要求。 7 类请假类型的附件规则:
如果用户已上传附件(has_attachment=true),则 action=submit; 否则需上传时 action=upload。 Args: leave_type: 请假类型名称(如 "病假"、"婚假")。 leave_days: 实际休假天数(字符串,来自 calculate_leave_days)。 has_attachment: 用户是否已上传附件。 Returns: AttachmentCheckResult: 包含 action(upload/submit/reject)和提示信息。 |
| upload_attachmentA | 批量上传附件文件。 将 base64 编码的文件内容解码后调用接口 7 上传。支持同时上传多个附件。 单文件大小上限由 MAX_ATTACHMENT_SIZE_MB 控制(默认 10MB)。 Args: user_token: 用户认证 Token。 files: 附件列表,每个元素包含 file_name、mime_type、file_base64。 Returns: UploadResult: 包含上传后的文件 ID 和文件名列表。 |
| submit_leave_applicationA | 提交请假申请。 调用接口 8 提交请假流程,返回申请单号。需要汇总所有信息: 用户信息、岗位信息、请假类型、日期、天数、原因、附件等。 Args: user_token: 用户认证 Token。 user_name: 申请人姓名(来自 init_leave_flow)。 user_code: 申请人编码(来自 init_leave_flow)。 selected_org: 选中的岗位信息(来自 select_organization)。 avlb_annl_leave: 年假剩余天数(来自 init_leave_flow)。 avlb_ot_leave: 调休假剩余天数(来自 init_leave_flow)。 leave_type_code: 请假类型编码。 leave_type_value: 请假类型名称。 start_date: 开始日期,格式 yyyy-MM-dd。 end_date: 结束日期,格式 yyyy-MM-dd。 leave_days: 实际休假天数(来自 calculate_leave_days)。 lv_reason: 请假原因。 start_time_code: 开始时间编码,AM 或 PM,默认 AM。 end_time_code: 结束时间编码,AM 或 PM,默认 AM。 file_ids: 附件 ID 列表(来自 upload_attachment,无附件时为 None)。 file_names: 附件名列表(来自 upload_attachment,无附件时为 None)。 Returns: SubmitResult: 包含申请单号。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| leave_flow_guide | 请假申请流程引导。 返回请假流程的完整引导提示词,帮助 LLM 按正确顺序调用工具。 包含 6 个步骤的调用指南和附件规则速查表。 |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/daomengKJ/leave_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server