Skip to main content
Glama

Connect a GitHub repository to an app

connect_repo
Destructive

Connects a deployed app to a GitHub repository and branch that the organization's GitHub App can reach, so the app's later deploys build from that repository. Use it when an app was first deployed from source or an artifact and now has a repository. It does not deploy anything: call deploy_app afterwards to build the branch now. deploy_on_push (default false) makes every push to the branch deploy the app. Before calling with deploy_on_push true, tell the user that every push to that branch will build and deploy the app, that anyone who can push to the branch can trigger a deploy, and that those deploys run as them; turn it on only if they agree. If the repository is not reachable, the error lists the ones that are. Changes how the app deploys: confirm with the user first.

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": {
      "name": "<name>",
      "repo": "<repo>"
    },
    "name": "connect_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesThe app's name.
repoYesThe repository as owner/name, such as acme/clinic-demo.
branchNoThe branch to track (default: the repository's default branch).
deploy_on_pushNoDeploy the app on every push to the branch (default false). Those deploys run as the user.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already flag a destructive, non-idempotent, non-read-only operation, and the description adds substantial context: what is changed (how the app deploys), that nothing is deployed by this call, the consent script for deploy_on_push, and that an unreachable repo produces an error listing reachable ones. That is precisely the extra behavioral disclosure annotations cannot carry.

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 core action, the non-deploy clarification, and the sibling routing are front-loaded, and no sentence is filler. The consent caveat is repeated in slightly different words ('tell the user...', 'turn it on only if they agree', 'confirm with the user first'), which costs a little tightness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 4-parameter mutation with no output schema, the description covers the side effect, the consent requirement, the error path, and the follow-up tool. Nothing an agent needs in order to call it safely and correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning beyond it: the repo must be reachable by the organization's GitHub App, deploy_on_push governs whether every push builds and deploys, and those deploys run with the pusher's identity. Branch semantics are covered by the schema alone.

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 states a specific verb and resource ('Connects a deployed app to a GitHub repository and branch') and immediately distinguishes itself from the sibling deploy_app ('It does not deploy anything'). An agent can tell exactly what this tool does and does not do without opening the schema.

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

Usage Guidelines5/5

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

It gives an explicit triggering condition ('when an app was first deployed from source or an artifact and now has a repository') plus an explicit exclusion and next step ('call deploy_app afterwards to build the branch now'). The prerequisites around deploy_on_push and the instruction to confirm with the user before the operation add a clear when-and-how gate.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.