Skip to main content
Glama
daomengKJ
by daomengKJ

submit_leave_application

Submit a leave application with user details, organization, leave type, dates, and attachments to receive an application number.

Instructions

提交请假申请。

调用接口 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: 包含申请单号。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
end_dateYes
file_idsNo
lv_reasonYes
user_codeYes
user_nameYes
file_namesNo
leave_daysYes
start_dateYes
user_tokenYes
selected_orgYes
avlb_ot_leaveYes
end_time_codeNoPM
avlb_annl_leaveYes
leave_type_codeYes
start_time_codeNoAM
leave_type_valueYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
messageYes执行结果描述
successYes是否执行成功
apply_idNo请假申请单号
Behavior3/5

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

No annotations are provided, so the description carries full burden. It discloses that the tool submits a leave process and returns an application number, indicating mutation. However, it does not detail side effects, authentication requirements, error handling, or data validation behaviors beyond the basic action.

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 well-structured with a purpose statement, a workflow note, and a detailed parameter list. While it is somewhat lengthy, the structured format compensates for the complexity of 16 parameters. Every sentence adds value, but could be slightly more concise.

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?

Given the complexity and lack of output schema in the provided data, the description includes a Returns section specifying 'SubmitResult: 包含申请单号'. It also references all necessary prerequisite tools, making it a complete guide for using this tool in the leave application workflow.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, but the description's Args section provides clear, tool-specific context for each parameter, including source tool (e.g., 'from init_leave_flow') and allowed values (e.g., 'file_ids: 附件 ID 列表...无附件时为 None'). This adds significant meaning beyond the schema titles.

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 '提交请假申请' (submit leave application) and '返回申请单号' (returns application number). It distinguishes itself from sibling tools like init_leave_flow and calculate_leave_days by being the final submission step.

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

Usage Guidelines4/5

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

The description explains that all information must be gathered from other tools (user info from init_leave_flow, organization from select_organization, etc.), providing implicit workflow guidance. It lacks explicit when-not-to-use or alternative tool mentions but effectively communicates the prerequisite context.

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/daomengKJ/leave_mcp'

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