Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_get_my_approved_leaves

Retrieve approved leave applications for the current employee, with an optional results limit, to check approved time off.

Instructions

Get approved leave applications for current 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_my_approved_leaves"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoResults limit (default: 10)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description must carry the behavioral burden. 'Get' correctly signals a non-mutating read, but nothing is said about result ordering, how 'current employee' is resolved, what an empty result means, or whether all approved leaves are returned versus only a page. For a simple read tool these gaps are moderate rather than severe.

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 front-loaded clause with no filler; the resource and scope appear immediately. It is efficient, though so terse that it borders on under-specification rather than optimal sizing.

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

Completeness3/5

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

For a one-parameter read tool with no output schema and no annotations, the description is adequate but thin: it never clarifies return shape, ordering, or identity resolution for 'current employee'. An agent could call it correctly but would not know what to expect back.

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?

There is one optional parameter and schema description coverage is 100%, with the schema already stating 'Results limit (default: 10)'. The description adds nothing about the limit or pagination, so the baseline of 3 applies when the schema does the documentation work.

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?

The description gives a specific verb and resource ('Get approved leave applications') plus a scope qualifier ('for current employee'), which separates it from erpnext_get_my_pending_leaves by status and from erpnext_get_leave_application by ownership. It does not explicitly name any sibling, so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied: 'approved' signals this is the tool for finalized leaves rather than pending ones, and 'my' signals self-scoped queries rather than arbitrary records. There is no explicit when-to-use statement, no exclusion of erpnext_get_my_pending_leaves or erpnext_get_leave_balance, and no note about what to do if no employee record exists.

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