Skip to main content
Glama

Link Repositories Tool

link-repositories-tool
Idempotent

Teach the team's org map how two repositories relate, so every future get-team-context call — by any teammate's agent — knows it. Relations (read as "repository to_repository"): depends_on (this repo consumes that one — an SDK, package, or service), documents (this repo is the docs for that one), ships_with (changes here usually mean changes there), and unrelated (suppress a noisy derived connection between the pair). Use it when you discover a relationship the map is missing, or when the user tells you how repos fit together. Re-teaching the same edge refreshes it. Links are team-visible and attributed to you.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
noteNoOptional short context, e.g. "the widget bundles this SDK — API changes here need a release there". Max 500 characters.
relationYesHow `repository` relates to `to_repository`: depends_on, documents, ships_with, or unrelated (suppresses derived connections between the pair).
repositoryYesThe FROM side of the relation — usually the repository you are working in, as owner/name or a bare repo name. Also binds the session to the owning team.
to_repositoryYesThe TO side of the relation, as owner/name or a bare repo name. Must be on the same team.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toYesThe TO repository.
fromYesThe FROM repository.
teamYesTeam name.
messageYesHuman-readable confirmation.
relationYesThe relation recorded.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only provide idempotentHint=true, so the description carries most of the burden and does so well: it discloses that re-teaching refreshes the edge, that links are team-visible and attributed, and that `unrelated` suppresses derived connections. It does not cover failure/auth conditions, keeping it short of a 5.

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 is front-loaded in the first clause and the relation legend follows immediately; every sentence adds usable information. It is on the longer side for a 4-param tool, but no sentence is filler.

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?

An output schema exists, so return values need not be explained, and the description already covers scope, directionality, idempotency, and visibility. What remains thin is error/prerequisite behavior (e.g. same-team requirement is only implied by the schema), leaving it just short of complete.

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 100%, so the baseline is 3, but the description goes further by defining the reading direction ('repository <relation> to_repository') and giving each enum member concrete semantics (depends_on = consumes an SDK/package/service; ships_with = changes here usually mean changes there). This adds interpretive value beyond the raw enum list.

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?

Specific verb+resource: it teaches the team's org map how two repositories relate, and it explicitly names the downstream effect on sibling get-team-context-tool. The relation vocabulary is spelled out, so an agent can tell this apart from read-only context tools at a glance.

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?

Clearly states when to use it: 'when you discover a relationship the map is missing, or when the user tells you how repos fit together.' Context is unambiguous, though no explicit when-not-to-use or named alternative is given beyond the get-team-context reference.

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