Skip to main content
Glama

Validate GitHub deployment source

sources.github.validate
Read-only

Validate a public GitHub repository without connecting an account, or validate private repository access with the project's stored GitHub connection. Check the exact branch and commit, Dockerfile presence, and named BuildKit context repositories without creating or changing infrastructure.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "branch": "dev",
      "project_id": "project-id",
      "build_contexts": [
        {
          "name": "biometric-sdk",
          "branch": "main",
          "repository_url": "https://github.com/DataInfosec/biometric-sdk"
        }
      ],
      "repository_url": "https://github.com/DataInfosec/tanda-campus",
      "dockerfile_path": "deployments/Dockerfile"
    },
    "name": "sources.github.validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
branchNobranch; defaults to the repository default branch
project_idNoproject in the selected organization; omit only when the organization has one project
workload_pathNooptional primary repository subdirectory
build_contextsNonamed GitHub build contexts to validate with the same credential
repository_urlYesprimary GitHub repository URL
dockerfile_pathNoDockerfile path relative to workload_path; defaults to Dockerfile
organization_idNoorganization membership to use for this call; omit only when the account has one current membership

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is partly covered, but the description adds real value: it states the authentication model per mode and explicitly promises no infrastructure is created or changed. It stops short of describing failure modes or what a failed validation returns.

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?

Two sentences, front-loaded with the mode selection and followed by the validation scope and non-mutation guarantee. Dense but each clause carries information; no filler.

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?

With an output schema present, return values need not be explained, and the description covers auth requirements, scope of validation, and the absence of side effects. The only gap is not clarifying prerequisites such as when a stored GitHub connection must already exist.

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 baseline is 3. The description adds modest semantic framing by naming what gets checked (branch, Dockerfile, named BuildKit contexts), but it introduces 'commit' which is not a parameter and adds no syntax or default details beyond what the schema already documents.

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?

States a specific verb (validate) and resource (GitHub deployment source), and splits the two modes of operation: public repo without an account vs. private repo via the project's stored GitHub connection. It also enumerates exactly what is validated (branch/commit, Dockerfile presence, named BuildKit contexts), which distinguishes it from siblings like sources.github.connection.get and sources.github.repositories.list.

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 clear conditions for the two usage paths (no account needed for public repos; stored connection required for private ones) and rules out side effects with 'without creating or changing infrastructure'. It does not explicitly name the alternative tool to set up a connection first, so the routing guidance is contextual rather than exhaustive.

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.

Resources