Skip to main content
Glama

pg_github

Run guardrail-protected GitHub tasks—check auth, create private repositories, push without hooks, and open draft pull requests—using host credentials.

Instructions

Execute guardrail-protected GitHub operations (auth status, private-only repo creation, hookless push, draft PR) using host credentials.

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": {
      "op": "<op>"
    },
    "name": "pg_github"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
baseNoBase branch for pr_create.
bodyNoPR body for pr_create.
nameNoRepository name for create_private.
tagsNoPush tags alongside branch.
draftNoCreate PR as draft (default: true).
titleNoPR title for pr_create.
branchNoBranch name for push (default: HEAD).
remoteNoNamed Git remote for push (default: origin).
repo_pathNoLocal repository/worktree path (required except for 'status').
descriptionNoRepository description for create_private.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv4.7.1

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations present, the description does real work: it discloses that operations are guardrail-protected, that repo creation is restricted to private repositories only, that pushes run hookless (local hooks are bypassed), that PRs default to draft, and that host credentials are used so no token parameter is needed. Still missing is failure/escalation behavior — what happens when a guardrail blocks an operation, or whether push can force-update an existing branch.

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?

A single dense sentence with the operation set front-and-center and no filler. Every clause carries distinct information (scope, the four ops, guardrail posture, credential source).

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 an 11-parameter, four-mode tool with no annotations and no output schema, the description covers the mode set well but leaves the agent without any notion of return values (e.g., what 'status' reports) or error behavior when a guardrail rejects an action. The schema absorbs most parameter burden, so this is adequate but not 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 description coverage is 91%, so per-parameter meaning is already supplied by the schema. The description corroborates a few semantics ('private-only' for create_private, 'draft PR' matching the draft default) but adds no syntax, precedence, or cross-parameter rules beyond that, which is the baseline expectation when the schema documents itself.

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 names a specific resource (GitHub operations) and enumerates the four supported operations — auth status, private repo creation, hookless push, draft PR — which map one-to-one onto the `op` enum values. What keeps it from a 5 is the generic verb 'Execute' and the absence of any explicit differentiation from overlapping siblings such as pg_host_exec.

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 operation list implies when to use each mode (e.g., call it for pushes and PRs rather than raw shell), but there is no explicit 'use this when' framing and no exclusions or alternatives named. An agent must infer from the enum which operation fits its task.

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