Skip to main content
Glama
pratik73

git-mcp

by pratik73

publish_merge_request

Publish a GitHub Pull Request or GitLab Merge Request with a title and body. Auto-detects the platform from the remote URL and uses environment tokens for authentication.

Instructions

Publish a Pull Request (GitHub) or Merge Request (GitLab) with the given title and body. The platform is auto-detected from the git remote URL. Auth tokens are read from environment variables: GITHUB_TOKEN or GITLAB_TOKEN.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cwdYesWorking directory — must be inside a git repository
baseNoTarget branch. Defaults to the repository's default branch.
bodyYesBody / description of the PR/MR
draftNoWhether to create the PR/MR as a draft
titleYesTitle of the PR/MR
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses that the platform is auto-detected from the git remote and that auth tokens come from specific env vars, which is useful behavioral context. However, it doesn't disclose side effects (opening a PR is externally visible/mutating), error behavior when tokens are missing, or what happens when base differs from current branch.

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?

The description is three sentences, each earning its place: what it does, how platform detection works, and auth requirements. It's front-loaded with the primary purpose. No redundant text.

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 tool with 5 parameters, full schema coverage, and no output schema, the description covers the essentials reasonably well. However, it lacks guidance on behavior when auth fails, what the function returns (PR/MR URL?), and how the base default is determined, which could trip up an agent. The prepare_merge_request sibling suggests a pairing workflow that isn't explicitly connected.

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 the structured schema already documents all 5 parameters (cwd, base, body, draft, title). The description adds the context that title and body are the content being published, but doesn't add format/content guidance beyond what the schema provides. Baseline 3 is appropriate given full schema coverage.

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 clearly states the action (publish a PR/MR), the resource (title and body), and distinguishes between GitHub and GitLab terminology. It doesn't explicitly contrast with sibling tools like prepare_merge_request, but the verb 'publish' versus 'prepare' offers implicit differentiation. The platform auto-detection detail adds useful specificity.

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 notes that platform is auto-detected and auth tokens come from env vars, which conveys prerequisites but not explicit when-to-use or when-not-to-use guidance. It doesn't explain when to prefer this over prepare_merge_request, though 'publish' vs 'prepare' implies a workflow ordering. No explicit alternatives are named.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pratik73/git-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server