Skip to main content
Glama

Pull main branch

github_pull_main

Fetches and fast-forwards the base branch of a local repository from its configured remote.

Instructions

Fetch, switch to the base branch, and fast-forward pull from the configured remote.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
remoteNoGit remote name. Defaults to GITHUB_MCP_DEFAULT_REMOTE or origin.
repoPathYesPath to a local repository inside the configured allowed roots.
baseBranchNoBase branch to update. Defaults to GITHUB_MCP_DEFAULT_BASE_BRANCH or main.
Behavior4/5

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

With no annotations, the description carries full burden. It clearly states the three-step operation (fetch, switch, fast-forward pull). However, it does not disclose potential outcomes like conflicts if fast-forward is not possible, or how local changes are handled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, no redundant words. Communicates the essential operation efficiently.

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?

Covers the core action adequately. Lacks prerequisites (e.g., repo must be cloned, remote must exist) and post-conditions, but for a simple git operation it is fairly complete.

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 coverage is 100%, so all parameters have descriptions in the schema. The tool description does not add new meaning beyond naming 'base branch' and 'configured remote', which are already in the schema. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Fetch, switch to the base branch, and fast-forward pull') and the resource (local repo at repoPath). It distinguishes from sibling tools like github_repo_status or github_create_feature_branch by specifying the exact git workflow.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool vs alternatives (e.g., github_repo_status for checking state, or github_create_pull_request for opening PRs). The description does not mention prerequisites or excluded scenarios.

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/matiasnjacob/github-mcp'

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