Skip to main content
Glama

github_mcp.create_job

Creates an isolated local Git workspace and task branch from an allowlisted repository, returning job metadata for follow-up actions without pushing changes.

Instructions

Create an isolated local Git workspace and task branch from an allowlisted repository. Requires write-enabled local policy. Supply a short English task name for automatic branch naming; protected base/default branches cannot be targets. Returns job metadata including id, base SHA and state; use id for subsequent tools. Does not push.

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": {
      "repository": "<repository>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "github_mcp.create_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
base_refNoOptional simple source branch name; defaults to configured default branch.
task_nameNoOptional short English task title, e.g. fix tunnel startup; used to generate a unique branch.
repositoryYesAllowlisted owner/repo identifier.
target_branchNoOptional explicit safe task branch; omit for automatic naming.
idempotency_keyYesStable unique request key, 1–100 characters; reuse for retries of the same job.
expected_base_shaNoOptional expected base commit SHA; mismatches stop creation.

Output Schema

NameRequiredDescriptionDefault
okYes
dataNo
messageNo
error_codeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.0.2
    • addedInput schema / properties / base_ref / description
      Added value: +"Optional simple source branch name; defaults to configured default branch."
    • addedInput schema / properties / expected_base_sha / description
      Added value: +"Optional expected base commit SHA; mismatches stop creation."
    • addedInput schema / properties / idempotency_key / description
      Added value: +"Stable unique request key, 1–100 characters; reuse for retries of the same job."
    • addedInput schema / properties / repository / description
      Added value: +"Allowlisted owner/repo identifier."
    • addedInput schema / properties / target_branch / description
      Added value: +"Optional explicit safe task branch; omit for automatic naming."
    • addedInput schema / properties / task_name / description
      Added value: +"Optional short English task title, e.g. fix tunnel startup; used to generate a unique branch."
  2. First observedv1.0.1

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true), it discloses the policy prerequisite, the constraint that protected branches cannot be targeted, the metadata returned, and the important boundary 'Does not push'. It leaves out failure behavior and whether a created workspace persists after failure.

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?

Five short sentences, front-loaded with the core action, then prerequisites, then constraints, then return value. Dense and purposeful, with only mild overlap between the task_name sentence and the schema's own task_name description.

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?

For a mutating job-creation tool with six parameters and a full output schema, the description covers the key prerequisites, branch restrictions, output identity, and the no-push boundary. It omits job lifecycle context (cancellation, cleanup, relation to resume_job/cancel_job), which would round it out.

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 schema already explains base_ref, task_name, target_branch, idempotency_key and expected_base_sha. The description only restates the task_name-to-branch-naming relationship and the base-branch restriction, adding little beyond the structured fields, so the baseline of 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?

States a specific verb and resource: 'Create an isolated local Git workspace and task branch from an allowlisted repository.' That is precise enough to distinguish it from read-oriented siblings like get_job_status or list_branches, though it never names a sibling it is an alternative to (e.g. preview_job or plan_changes).

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

Usage Guidelines4/5

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

Gives real preconditions and routing hints: 'Requires write-enabled local policy', 'protected base/default branches cannot be targets', and 'use id for subsequent tools'. It does not explicitly say when to prefer preview_job or plan_changes instead, so it stops short of full when/when-not guidance.

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