Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_list_leave_applications

List and filter leave applications by status, leave type, date range, and limit to review employee leave requests in ERPNext.

Instructions

List leave applications with filters

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "erpnext_list_leave_applications"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoResults limit (default: 10)
statusNoStatus (Open, Approved, Rejected, Cancelled)
to_dateNoTo date (YYYY-MM-DD)
from_dateNoFrom date (YYYY-MM-DD)
leave_typeNoLeave type

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It implies a read operation but does not confirm it, does not mention the default result cap behavior implied by the limit parameter, and says nothing about sorting, pagination beyond limit, or what a returned leave application contains. For a zero-annotation tool this is a significant gap.

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?

Five words, front-loaded verb, no filler or repetition. It is as tight as it can be, though the tightness comes at the cost of specification rather than being a model of efficient information density.

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 five-parameter query tool with no annotations and no output schema, the description leaves too much unsaid: no confirmation of read-only semantics, no return structure, no note that all filters are optional and unfiltered calls return the default page. Complete enough only in the narrowest sense that the schema covers the inputs.

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 all five parameters (limit, status, to_date, from_date, leave_type) are already documented in the schema with formats and allowed status values. The description's phrase "with filters" adds no meaning beyond that. Baseline 3 applies.

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?

States a verb ("List") and a resource ("leave applications"), so the basic operation is clear. However, "with filters" is vague and it never distinguishes this from the adjacent single-record reader erpnext_get_leave_application or the other leave tools. Adequate but no sibling differentiation.

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 guidance at all: nothing says to call this for browsing multiple leave requests versus fetching one record via erpnext_get_leave_application, nor when to prefer erpnext_get_leave_balance. The agent must infer the usage context from the tool name alone.

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