Skip to main content
Glama

kb_repo_push

Push files from file storage onto a branch of a repository in the space's project map (one commit made by the server with a GitHub App installation token, scoped to that one repository): repo is owner/name; branch is the branch to push to — never the default branch; message is the commit message; files is a list of {path (the path in the repository), from (the path in file storage)} (1–50 files, up to 50 MB each); base is optional (which branch a new branch is created from; the default branch if left out). First save each file with kb_file_put (upload=true for big files — this tool exists because a single MCP call body is capped at 256 KB); it cannot push to the default branch — open a pull request after pushing. The repository must be in the project map allow-list (ticked in the console under Knowledge → Repository maps); others are refused.

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": {
      "repo": "<repo>",
      "branch": "<branch>",
      "message": "<message>",
      "files": "<files>"
    },
    "name": "kb_repo_push"
  }
}

Input Schema

NameRequiredDescriptionDefault
baseNoWhich branch a new branch is created from (default: the default branch)
repoYesowner/name, e.g. acme/website — must be in the project map allow-list
filesYes1–50 files; each has path (path in the repository) and from (path in file storage)
branchYesThe branch to push to — never the default branch
messageYesCommit message (1–2000 characters)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say it is a non-read-only, non-destructive, non-idempotent write; the description goes far beyond by disclosing the auth mechanism (GitHub App installation token scoped to one repository), that exactly one commit is created, the 1–50 file / 50 MB per-file limits, the 256 KB MCP call-body cap that motivates the tool, and that non-allow-listed repositories are refused.

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

Conciseness3/5

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

Front-loaded with the core action, but delivered as one long semicolon-chained paragraph that is hard to scan, and several clauses ("repo is owner/name", "branch is the branch to push to") merely repeat the schema descriptions verbatim rather than earning their place.

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 mutation tool with no output schema, the description covers prerequisites, limits, auth scoping, refusal conditions, and the follow-up pull-request step. It does not say what the call returns (commit SHA, branch ref, or per-file results), which is the main remaining gap for an agent verifying success.

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: the per-file 50 MB ceiling and the 1–50 file count constraint on files, plus the clarification that base only matters when a new branch is created and defaults to the default branch. It largely restates repo/branch/message semantics already present in the schema, keeping it below a 5.

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 and resource: push files from file storage onto a named branch of a repository in the space's project map, with one server-made commit. It is clearly distinguishable from kb_file_put (the upload prerequisite) and kb_repo_clone by naming the push/commit outcome.

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?

Explicitly names the prerequisite tool ("First save each file with kb_file_put, upload=true for big files"), states the exclusion (never the default branch), and names the follow-up path (open a pull request after pushing). It also states the gating condition: the repo must be ticked in the project map allow-list or it is refused.

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