Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_get_mr_details

Fetch GitLab merge request details from an MR URL, including detected customer, version, Redmine IDs, and patch/test report links from notes.

Instructions

Get details from a GitLab merge request URL including auto-detected customer, version, Redmine IDs from description, and auto-fetched patch/test report URLs from MR notes

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

Input Schema

NameRequiredDescriptionDefault
mr_urlYesGitLab merge request URL

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 carries the full burden, and it does disclose real behavior beyond the schema: customer and version are auto-detected, Redmine IDs are parsed out of the MR description, and patch/test report URLs are fetched from MR notes. That implies extra GitLab API calls and dependence on note content, but the description never states auth requirements, failure behavior when notes are empty, or latency. Useful but incomplete for a zero-annotation tool.

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 front-loaded sentence that puts the resource first and the enrichment details second, with no filler. It is a long run-on clause chain, but every clause names a concrete returned field rather than padding.

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?

No output schema exists, so the description must cover return values, and it does by enumerating the four categories of detail returned. Gaps remain around return format and what happens on an unreachable or non-matching MR URL, which matters for a tool that makes outbound calls.

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 a single parameter at 100% schema coverage, so the schema already documents mr_url. The description adds only the constraint that it must be a GitLab merge request URL, which the schema's own text already conveys. Baseline 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 uses a specific verb ('Get details') on a specific resource ('GitLab merge request URL') and enumerates the payload: auto-detected customer, version, Redmine IDs, and patch/test report URLs. That is far more concrete than a bare 'get MR' statement. It does not, however, distinguish itself from the sibling erpnext_analyze_merge_request, which an agent could easily confuse it with.

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: an agent can infer it should call this when it has an MR URL and wants enrichment. There is no explicit when-to-use statement, no exclusion, and no pointer to the analyze_merge_request sibling or to erpnext_get_redmine_issue_details for the extracted IDs.

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