Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_get_leave_application

Fetch details of a specific leave application using its Leave ID to review leave dates, status, and employee data.

Instructions

Get details of a specific leave application

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

Input Schema

NameRequiredDescriptionDefault
nameYesLeave ID (e.g., HR-LAP-2025-01700)

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?

With no annotations supplied, the description carries the full disclosure burden. 'Get' implies a read-only operation, but it says nothing about permission constraints (can it fetch another employee's application?), what happens if the ID is invalid, or what 'details' actually comprises — meaningful gaps for a tool with zero annotation coverage.

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?

One short sentence, front-loaded with the verb and resource, with no filler or redundancy. Its brevity is efficient, though it borders on under-specification rather than maximal economy of useful information.

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?

There is no output schema and no annotations, so the description is the only source of behavioral information, and it does not indicate what fields are returned for a leave application or how errors surface. For a simple one-parameter read tool this is passable, but the vague term 'details' leaves the agent guessing about the response.

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%: the single parameter 'name' is documented as the Leave ID with a concrete example (HR-LAP-2025-01700). The description adds no further meaning about format, alternates, or lookup behavior, so the baseline of 3 applies.

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 states a specific verb and resource ('Get details of a specific leave application'), which lets an agent distinguish it from list-style siblings by scope (single record, identified by ID). It stops short of explicitly naming which sibling to use instead, so it is clear but not sibling-differentiated to a 5 level.

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 prerequisites, and no reference to alternatives such as erpnext_list_leave_applications or erpnext_get_my_approved_leaves. The agent must infer that this is the single-record lookup path purely from the word 'specific'.

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