Skip to main content
Glama

Set repository open source

set_repository_open_source
Destructive

Mark a repository already connected to a project as the project's open source repository, or take the mark off. Marking asks its host, without a token, whether anybody can read it and under which licence, and is refused for a private one. Taking the mark off the last marked repository of a public project closes the project to readers outside at once, as the screen does — confirm with the person first. Only the project's lead, a board administrator or a company admin may; both are written to the company's journal.

Input Schema

NameRequiredDescriptionDefault
openSourceYestrue to mark it open source, false to take the mark off.
projectKeyYesKey of the project, e.g. 'LIB'.
repositoryYesThe repository: its id from list_repositories, or its path, e.g. 'owner/repo'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

The description goes well beyond the annotations by explaining that marking queries the host without a token, that private repositories are refused, that removing the last mark of a public project immediately closes reader access, that confirmation is expected, that only specific roles may perform the action, and that both outcomes are journaled. These details materially help an agent understand the destructive side effects and authorization constraints already hinted at by destructiveHint and openWorldHint.

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 description is front-loaded and dense with useful operational context, covering the toggle, host check, destructive closure warning, permission requirements, and journaling. It could be slightly easier to scan if structured, but every sentence contributes to correct invocation.

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 mutation with no output schema and complete parameter schema coverage, the description supplies the critical missing context: preconditions, refusal behavior, authorization, audit logging, and the confirmation requirement for the destructive edge case. An agent has enough information to invoke it safely and correctly.

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 all three parameters are already documented in the input schema, including the boolean meaning of openSource and the expected repository identifier. The description reinforces the toggle semantics but does not add parameter-level meaning beyond what the schema provides, so the baseline of 3 applies.

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: marking or unmarking a repository already connected to a project as that project's open source repository. It also distinguishes this from connecting a repository by specifying that the repository must already be connected, so an agent can route correctly 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 Guidelines4/5

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

It gives clear usage context: marking checks whether the host is publicly readable and is refused for private repositories; unmarking the last open source repository of a public project immediately closes external access and should be confirmed first. It also states the required roles. It stops short of explicitly naming sibling alternatives such as set_project_public or connect_repository, but the when/when-not guidance is strong.

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