Skip to main content
Glama

Edit repository settings

edit_repo
DestructiveIdempotent

Update repository settings including visibility, description, website, default branch, feature toggles, and archived status; only provided fields change, so omitted settings remain unchanged.

Instructions

Edit repository settings: visibility (private true/false), description, website, default_branch, unit toggles (has_issues, has_pull_requests, has_wiki, has_releases, has_actions, has_packages, has_projects), archived. Only provided fields change; renames are not supported. A unit being off hides its whole endpoint family behind 404s rather than returning empty results, so set has_releases=true or has_actions=true when those tools 404 on a repository that plainly exists. Requires write mode.

Input Schema

NameRequiredDescriptionDefault
repoYesRepository name.
ownerYesRepository owner.
privateNoChange visibility: `true` = private, `false` = public.
websiteNoNew website URL.
archivedNoArchive (`true`) or unarchive (`false`) the repository.
has_wikiNoEnable or disable the wiki.
has_issuesNoEnable or disable the issue tracker.
descriptionNoNew description.
has_actionsNoEnable or disable Actions (CI). The workflow tools fail the same way the release tools do while this is off: the endpoints are gone, not empty.
has_packagesNoEnable or disable the package registry.
has_projectsNoEnable or disable project boards.
has_releasesNoEnable or disable Releases. While off, every release endpoint 404s — including reads, and including anonymous ones — so this is what to set when release tools report a repository that plainly exists as missing.
default_branchNoNew default branch (must already exist).
has_pull_requestsNoEnable or disable pull requests.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.22.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare the mutation profile (destructive, idempotent, write-required). The description adds valuable behavior beyond annotations: partial update semantics, no rename support, and the non-obvious 404 behavior when unit toggles are off. It does not cover reversibility or permission nuances, but with annotations carrying that weight, this is strong.

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

Conciseness5/5

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

The description is front-loaded with the action and editable fields, then adds only high-value caveats: partial updates, no renames, 404 behavior, and write mode. Every sentence earns its place despite the density required for 14 parameters.

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, write-required, 14-parameter tool with no output schema, the description covers the essential context: which fields are editable, that updates are partial, that renames are unsupported, the 404 quirk for disabled units, and the write-mode prerequisite. Nothing critical is missing.

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 schema already documents every parameter, including the 404 behavior for has_releases and has_actions. The description groups and summarizes the fields but adds little semantic detail beyond what the schema provides; 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 uses a specific verb ('Edit') and resource ('repository settings') and enumerates the editable fields, clearly distinguishing it from read-only siblings like get_repo and creation tools like create_repo.

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 clear operational context: only provided fields change, renames are unsupported, and write mode is required. It also explains the 404 symptom for disabled units, which helps an agent decide when to call this tool. It does not explicitly name alternative sibling tools, but the usage conditions are well covered.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.