Skip to main content
Glama

delete_repo

删除一个 GitHub 仓库(不可恢复!)。必须显式传 confirm:true。仅允许删除 token 所有者本人的仓库(服务端先核对 owner 与 token 身份一致,组织仓库会被拒绝)。认证:优先客户端请求头 Authorization: Bearer (需 delete_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": {
      "owner": "<owner>",
      "repo": "<repo>",
      "confirm": "<confirm>"
    },
    "name": "delete_repo"
  }
}

Input Schema

NameRequiredDescriptionDefault
repoYes仓库名
ownerYes仓库属主(必须是 token 所有者本人)
confirmYes必须显式传 true,确认执行不可恢复的删除
user_tokenNo可选(兼容旧用法):需 delete_repo scope 的 GitHub PAT。推荐改用客户端 headers 配置 Authorization: Bearer

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / owner / description
      Previous value: -"仓库属主"New value: +"仓库属主(必须是 token 所有者本人)"
    • changedInput schema / properties / user_token / description
      Previous value: -"调用者自己的 GitHub PAT(需 delete_repo scope)"New value: +"可选(兼容旧用法):需 delete_repo scope 的 GitHub PAT。推荐改用客户端 headers 配置 Authorization: Bearer"
    • changedInput schema / required
      Previous value: -[
      -  "owner",
      -  "repo",
      -  "user_token",
      -  "confirm"
      -]New value: +[
      +  "owner",
      +  "repo",
      +  "confirm"
      +]
  2. Added

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses irreversibility, the mandatory confirm:true gate, server-side owner-vs-token identity verification, and rejection of organization-owned repos. It also specifies authentication (Authorization: Bearer GitHub PAT with delete_repo scope, with user_token as a legacy fallback), which is exactly the operational context an agent needs before attempting a destructive call.

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 destructive warning is front-loaded in the first sentence, followed by the confirm requirement, the ownership constraint, auth, and usage caution in a logical order. Some auth detail is duplicated between the description and the user_token property, but nothing is wasted enough to hurt readability.

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 destructive, unannotated tool with no output schema, the description covers every decision-relevant factor: irreversibility, required confirmation, authorization scope, ownership restrictions, and the user-consent requirement. An agent could safely decide whether and how to call it from this text alone.

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%, and the schema already explains confirm, owner, and user_token in nearly identical terms, so the description mostly restates the schema. The one addition is the explicit note that owner must match the token identity and organizations will be refused, which mildly extends meaning. Baseline 3 is appropriate.

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 ('删除一个 GitHub 仓库') and immediately flags the irreversible nature with a warning marker. This makes it unmistakable against siblings like get_repo, create_or_update_file, or list_releases, which are read/create operations.

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?

It gives explicit when-to-use guidance ('仅在用户明确要求删除且知晓后果时使用') plus a concrete pre-condition step of having the user restate the repository name. No alternative tool is named, but there is no other deletion sibling, so the guidance is effectively complete without that.

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