Skip to main content
Glama
MCP ERPNext
by sharat9703

erpnext_create_software_release

Create ERPNext software release documents from GitLab merge request URLs, auto-filling version, product, customer, reviewer, and linked Redmine ticket details.

Instructions

Create a software release document in ERPNext from GitLab merge request URL(s). When template_release_url is provided, auto-fills Product, Customer, and Reviewer from that release. Also auto-fetches: Redmine IDs from MR description (#123456), patch/test report URLs from MR notes, and Redmine ticket titles if REDMINE_API_KEY configured. All links in release notes are clickable.

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_urls": "<mr_urls>"
    },
    "name": "erpnext_create_software_release"
  }
}

Input Schema

NameRequiredDescriptionDefault
mr_urlsYesGitLab merge request URL(s). Redmine IDs like #124323 in description will be auto-extracted.
productNoProduct name (e.g., MercuryFx). Auto-filled from template_release_url if provided, otherwise required.
versionNoVersion string (e.g., "5.0.0.411"). Auto-detected from MR branch/title.
customerNoCustomer name. Auto-filled from template_release_url, or auto-detected from GitLab project path.
reviewerNoReviewer name. Auto-filled from template_release_url if provided.
patch_urlsNoPatch file URL(s). Auto-fetched from GitLab MR notes/description if not provided.
config_urlsNoConfiguration file URL(s). Auto-fetched from GitLab MR notes/description if not provided.
redmine_idsNoRedmine ticket ID(s). Auto-extracted from MR description if not provided (looks for #123456 patterns).
release_dateNoRelease date (YYYY-MM-DD). Default: today
release_nameNoRelease name. Auto-generated if not provided.
release_typeNoType of release. Auto-filled from template or defaults to Patch.
redmine_titlesNoTitles for each Redmine ID. Auto-fetched if REDMINE_API_KEY is configured.
test_report_urlsNoTest report URL(s). Auto-fetched from GitLab MR notes/description if not provided.
manual_script_urlsNoManual script URL(s). Auto-fetched from GitLab MR notes/description if not provided.
template_release_urlNoURL of existing software release to use as template. Auto-fills: Product, Customer, Reviewer, Release Type from this release.

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?

With no annotations, the description carries the full burden, and it does disclose meaningful behavior: external lookups into GitLab MR descriptions/notes, Redmine title fetching gated on REDMINE_API_KEY, and template-driven defaults. It omits key operational facts for a write tool — permissions required, what happens on duplicate/existing release, failure modes for bad URLs, and whether the created doc is draft or submitted.

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?

Roughly four sentences, front-loaded with the primary action and then the auto-fill pipeline; density is high and little is wasted. The closing sentence about links being clickable is a presentation detail that does not help an agent decide or invoke correctly.

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 15-parameter mutation tool with no annotations and no output schema, the description covers the interesting mechanics (template inheritance, GitLab/Redmine enrichment, env-var dependency) reasonably well. It is not complete: nothing is said about the return value or ID of the created document, error behavior on invalid MRs, or whether fields conflict when both template and explicit params are supplied.

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 every one of the 15 parameters is already documented in the schema, establishing a baseline of 3. The description adds only the precedence rule around template_release_url auto-fill and the reconfirmation that Redmine IDs come from #123456 patterns, both of which are also present in 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?

States a specific verb and resource ('Create a software release document in ERPNext') plus the input source ('from GitLab merge request URL(s)'), which is unambiguous. It never names or contrasts with the clearly related siblings erpnext_preview_software_release or erpnext_get_software_release, so differentiation is left 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 description implies the intended workflow by explaining that supplying template_release_url auto-fills Product/Customer/Reviewer, which hints at the preferred invocation pattern. However, it never says when to use this versus the sibling preview tool, nor when creating multiple releases would be wrong.

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