Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_list_merge_requests

List GitLab merge requests by state, author, date range, or target branch to select MRs for task creation analysis.

Instructions

List merge requests from a GitLab project with filters (state, author, date range). Returns a list of MRs that can be selected for task creation analysis.

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

Input Schema

NameRequiredDescriptionDefault
sortNoSort by field (default: "created_date")
limitNoMaximum number of results to return (default: 40)
stateNoFilter by MR state (default: "merged")
project_pathYesGitLab project path (e.g., "mercuryfx/tcil/mudra2/intranet/retail-app/retail")
created_afterNoFilter MRs created after this date (ISO format: YYYY-MM-DD)
target_branchNoFilter by target branch (e.g., "main", "development")
created_beforeNoFilter MRs created before this date (ISO format: YYYY-MM-DD)
author_usernameNoFilter by author username (e.g., "sharatyaragatti")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; "List" plus "Returns a list" does establish this as a read-only retrieval, and the workflow hint adds context beyond the schema. It is silent on pagination behavior, what a returned entry contains, and the consequence of the schema default state="merged" (opened MRs are excluded unless overridden), which is a meaningful behavioral nuance.

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?

Two short sentences, front-loaded with the action and scope, with no filler. The second sentence is slightly vague ("task creation analysis") but earns its place by orienting the agent to the follow-on workflow.

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 an 8-parameter listing tool with no output schema and no annotations, the description covers purpose and filter dimensions but omits return shape, pagination/limit behavior, and the notable default of state="merged". Adequate to start a call, but not fully self-sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description goes slightly beyond by grouping the filters (state, author, date range) into a coherent summary of the parameter surface. It doesn't add format or semantics beyond what the schema's per-property descriptions already state, so it is not a full 5.

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 ("List merge requests from a GitLab project") plus the filter dimensions it supports, which is more precise than the tool name alone. It does not explicitly distinguish itself from likely siblings such as erpnext_get_mr_details or erpnext_analyze_merge_request, leaving overlap resolution to the agent.

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?

The trailing clause "can be selected for task creation analysis" hints at a downstream workflow (list, then analyze, then create tasks), which implies when to reach for this tool. However, there is no explicit when-to-use vs. when-not guidance and no named alternative for getting detail on a single MR.

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