Skip to main content
Glama

create_repo

在调用者自己的 GitHub 账号下创建一个新仓库(无需 owner 参数,自动建在 token 所有者名下)。可指定描述、私有/公开、README 初始化、.gitignore 与 License 模板。认证:优先客户端 headers 的 Authorization: Bearer (repo scope),兼容 user_token 参数。服务端仅转发不存储。

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>"
    },
    "name": "create_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes仓库名:1~100 位字母/数字/./_/-,不以 . - 开头、不以 .git 结尾
privateNotrue 为私有仓库,缺省公开
auto_initNo是否用 README 初始化仓库,缺省 true
user_tokenNo可选(兼容旧用法):GitHub PAT(repo scope)。推荐改用客户端 headers 配置 Authorization: Bearer
descriptionNo可选:仓库描述(最长 350 字符)
license_templateNo可选:License key,如 mit / apache-2.0 / gpl-3.0
gitignore_templateNo可选:.gitignore 模板名(GitHub 语言名),如 Node / Python / Go / Rust

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does disclose useful behavior: required repo-scope PAT, header-over-parameter precedence, and that the server only forwards the credential without storing it. However, it omits what happens on name collision, permission failures, or rate limits — meaningful gaps for a mutating create operation.

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?

Purpose and scope are front-loaded, followed by capability list, then auth note. It is dense but well ordered with no filler; every clause conveys something usable.

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 7-parameter mutation with no annotations and no output schema, the description covers scope, defaults, and credential handling well. Adding collision/error behavior would close the remaining gap.

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 already 100%, so the baseline is 3. The description adds some meaning on top: it explains that owner is intentionally absent and that private/auto_init have defaults matching the schema, which reinforces correct default handling.

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 (create a new repository) and immediately pins down the scope that matters most: it is created under the token owner's own account, with no owner parameter. That scoping note is a real differentiator that an agent can act on 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 Guidelines3/5

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

Usage is implied rather than stated: the tool is for creating a repository, and the description explains the auth setup, but it never says when to prefer this over a sibling or what to do if the repo already exists. No exclusions or alternative-routing guidance is given.

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