Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_apply_leave

Apply for single-day or multi-day leave by specifying dates, leave type, half-day status, and a reason.

Instructions

Apply for leave (single or multiple days)

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": {
      "from_date": "<from_date>"
    },
    "name": "erpnext_apply_leave"
  }
}

Input Schema

NameRequiredDescriptionDefault
to_dateNoEnd date (YYYY-MM-DD)
half_dayNoHalf day leave?
from_dateYesStart date (YYYY-MM-DD)
leave_typeNoLeave type (default: Leave)
descriptionNoReason for leave
half_day_dateNoHalf day date

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.5/5.0
Behavior2/5

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

No annotations are provided, so the description bears the full disclosure burden for a write operation. It says nothing about whether the application is created as a draft or submitted, whether approval is required, what happens with insufficient balance, or whether half-day requires a matching half_day_date.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single short parenthetical sentence with no wasted words and no burying of key information. However, its brevity reflects under-specification rather than disciplined conciseness.

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

Completeness2/5

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

For a six-parameter mutation tool with no annotations and no output schema, the description leaves critical behavior unstated: creation status, approval flow, and the half-day/date interaction. It is not sufficient on its own for correct invocation.

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 description coverage is 100%, so each parameter is already documented, and baseline is 3. The phrase 'single or multiple days' hints that to_date is optional for one-day leave, but no other meaning is added beyond the schema.

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

Purpose3/5

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

The description names a specific verb and resource ('Apply for leave') and notes it covers single or multiple days. It does not distinguish this from the sibling 'erpnext_submit_leave_application', leaving the apply-vs-submit boundary ambiguous for an agent choosing between them.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance, no mention of how this differs from submitting an existing draft application, and no stated prerequisites (e.g., employee record or leave balance). The agent must infer all routing.

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