Skip to main content
Glama

Link a GitHub repository to the project

link_repository
Destructive

Connects a GitHub repository to the project as a linked folder. A project manager authorizes their own GitHub account using a device code, lists repositories that account can access through the installed read app, and reviews the branch, folder, readers and hidden paths. The person confirms the review before Alcoven links it. The state is an encrypted, expiring reference bound to the person and project; it contains no readable GitHub token. For a request to connect a GitHub repository to a project without opening Alcoven's repository picker.

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": {
      "action": "<action>"
    },
    "name": "link_repository"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNoFilter repository names in the list.
stateNoThe encrypted state returned by the preceding step; do not put it on the project.
actionYesstart begins GitHub authorization; poll checks it; list shows the person's repositories; review prepares a link for confirmation.
branchNoThe branch to follow; defaults to the GitHub repository's default branch.
folderNoThe project folder for the linked repository; defaults to its name.
hiddenNoAdditional paths to hide from the linked folder.
offsetNoThe next list position; starts at zero.
projectNoThe project's slug, from open_project, like acme. Not needed when a § address names the project, or when the person is on one project.
repositoryNoThe owner/name of a repository from the list, for review.

Output Schema

NameRequiredDescriptionDefault
cutNo
nextNo
stateNo
folderNo
linkedNo
previewNo
intervalNo
proposalNo
userCodeNo
expiresAtNo
installUrlNo
repositoriesNo
verificationUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already flag readOnlyHint=false, destructiveHint=true, and openWorldHint=true, but the description adds material context the annotations cannot: device-code authorization by a project manager, read-scoped access through the installed app, and an encrypted expiring state with no readable GitHub token. That said, it never explains why the call is destructive (folder creation, hidden-path suppression, revocability), which is the one disclosure an agent most needs for a destructive linked-folder 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?

The definition is front-loaded with the core action and then walks the flow in order, with no filler sentences. It is slightly dense in the middle (state encryption, token absence) before returning to usage, but every sentence carries information relevant to correct invocation.

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?

With an output schema present and full schema coverage on nine parameters, the description need not explain return values, and it covers the multi-step interaction model that the schema alone would not convey. The remaining gap is the absence of any note on how state must be threaded across calls or what happens to the project when a link is later removed.

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 every parameter, including the action enum and state, is already documented in the schema. The description adds conceptual framing — that state is an encrypted, expiring reference bound to the person and project rather than a token — but gives no additional syntax, defaults, or sequencing rules beyond what the schema states.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Connects a GitHub repository to the project as a linked folder.' It goes on to describe the multi-step flow (authorize, list, review, confirm), so the agent knows exactly what the tool does. It stops short of naming a sibling alternative, and the final sentence's 'without opening Alcoven's repository picker' contrasts with a UI path rather than a sibling tool, so it does not reach a 5.

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 through the trailing clause 'For a request to connect a GitHub repository to a project without opening Alcoven's repository picker,' which gives a context for reaching for this tool. There is no explicit when-not guidance and no named alternative among the siblings (e.g. add_file/add_document). The workflow sequence is described, but not the selection criteria between tools.

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