Skip to main content
Glama

kb_repo_clone

Get a temporary clone URL for a repository in the space's project map (an installation token minted by the GitHub App, scoped to that one repository): repo is owner/name; write=false reads only (contents:read), write=true also writes (contents:write + pull_requests:write). The token expires in 1 hour and is only for git clone / push — never paste it into chats, documents or commits. With write=true, don't push to the default branch — open a new branch and a pull request instead. 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>"
    },
    "name": "kb_repo_clone"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYesowner/name, e.g. acme/website — must be in the project map allow-list
writeNotrue: also allow pushing and opening pull requests (default false: read-only)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnlyHint=false, destructiveHint=false) by disclosing the 1-hour token expiry, the exact permission scopes granted per mode, the security constraint against pasting the token into chats/documents/commits, and the refusal behavior for repos outside the allow-list. These are operational facts an agent cannot infer from structured fields.

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?

One dense paragraph, but it is front-loaded with the purpose and then ordered by importance: parameters, expiry, security warning, branch rule, allow-list. The semicolon-heavy phrasing is compact rather than wasteful, though the security warning could be its own sentence for scannability.

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 token-minting tool with no output schema, the description covers expiry, scope, restrictions, and failure mode, which is nearly everything an agent needs. The only gap is the exact response shape (field name for the URL/token), which is a minor omission.

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: it spells out the concrete permission scopes behind write=true versus write=false and reinforces the owner/name format and allow-list requirement. This helps the agent reason about consequences rather than just types.

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 ('Get a temporary clone URL for a repository') and immediately defines the scope ('an installation token minted by the GitHub App, scoped to that one repository'). An agent knows exactly what it gets back and why, and the tool is clearly distinguishable from the kb_* knowledge-base siblings.

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 explicit conditions for both modes: write=false for reads (contents:read), write=true to push and open PRs, plus a hard prerequisite (repo must be in the project map allow-list) and a usage restriction (don't push to the default branch; open a branch and PR). It does not name any alternative tool, but no sibling in the catalog offers comparable clone behavior, so the guidance is effectively complete.

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