Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_analyze_merge_request

Analyze GitLab merge requests to extract commits, group changes by type, and identify Redmine issues, then return suggested ERPNext tasks for review before creation.

Instructions

Analyze one or multiple GitLab merge requests and generate intelligent task breakdown. Extracts commits, groups them by type (features/fixes/refactors), and identifies Redmine issues from MR descriptions. Returns suggested tasks for user review before creation.

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

Input Schema

NameRequiredDescriptionDefault
mr_urlNoSingle GitLab merge request URL (use this OR mr_urls). Example: https://gitlab.example.com/project/-/merge_requests/123
mr_urlsNoMultiple GitLab merge request URLs (use this OR mr_url). For analyzing multiple MRs together.
projectNoERPNext project name to assign tasks to (optional)
group_byNoHow to group commits into tasks (default: "auto")
include_redmine_tasksNoWhether to create tasks from Redmine issues found in MR description (default: true)

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 provided, the description carries the full burden. It does disclose meaningful behavior: what is extracted from the MR, how commits are grouped, that Redmine issues are parsed from descriptions, and that the result is suggestions rather than created records. It omits permissions/auth expectations, rate-limit or failure behavior for multi-MR batches, and what the returned task objects look like.

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?

Three compact sentences that lead with purpose, then mechanism, then the output contract. Every sentence carries information and nothing is redundant, though the middle sentence leans on list-like enumeration rather than the most scannable structure.

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

Completeness4/5

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

For a five-parameter, zero-required tool with no annotations or output schema, the description covers the input modes, the processing model, and the shape of the result well enough to call it correctly. The remaining gap is behavioral edge cases for multi-MR analysis, which is a modest omission rather than a blocker.

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 are already documented, giving a baseline of 3. The description adds only loose context: the grouping-by-type sentence relates to group_by and the Redmine-issue sentence to include_redmine_tasks, but it adds no format or constraint details (such as mutual exclusivity of mr_url and mr_urls) beyond the schema.

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 ('Analyze') and resource ('GitLab merge requests') and states the concrete output: commits extracted, grouped by type, Redmine issues identified, and suggested tasks returned. The closing clause ('for user review before creation') implicitly separates it from erpnext_create_tasks_from_analysis, though no sibling is named explicitly.

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 phrase 'Returns suggested tasks for user review before creation' hints that this is a read-only analysis step preceding a creation call, which is useful implied usage. However, it never states when to use this over erpnext_get_mr_details or erpnext_list_merge_requests, and gives no prerequisites for the analysis workflow.

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