Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_get_leave_balance

Retrieves an employee's leave balance for a specified leave type, helping check available leave before submitting a request.

Instructions

Get leave balance for employee

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_get_leave_balance"
  }
}

Input Schema

NameRequiredDescriptionDefault
leave_typeNoLeave type to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/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 burden. It does not say whether the balance is derived from leave applications, whether it reflects allocated vs. consumed days, whether it requires authentication, or whether an omitted leave_type returns all types. For a read tool with zero annotation coverage this is a meaningful gap, though the read-only nature is at least implied by 'Get'.

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?

A single short sentence with no waste and the resource front-loaded. It is efficient but borders on under-specification given the unresolved employee scope.

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?

The tool is simple (one optional param, no output schema), but the description omits what a 'balance' contains, whose balance is returned, and what happens when leave_type is omitted. For an agent deciding whether this answers a user's question, these are core omissions.

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 coverage is 100% and the single optional leave_type parameter is documented in the schema, so the baseline of 3 applies. The description adds nothing beyond it, and its phrase 'for employee' hints at an employee argument that does not exist in the schema, leaving the employee scoping undefined.

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

Purpose4/5

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

States a specific verb and resource: get leave balance. An agent can tell this is a read of leave entitlement, distinct from the apply/cancel/list siblings. However, it never resolves whose balance (current user vs. a specified employee), which is the single most important disambiguation for this tool.

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, no mention of alternatives such as erpnext_get_my_approved_leaves or erpnext_list_leave_applications, and no statement of prerequisites. The agent must infer usage from the name alone.

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