Skip to main content
Glama

Link repositories

link-repositories-tool
Idempotent

Teach the team's org map how two repositories relate, so every future get-team-context-tool 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.

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": {
      "repository": "<repository>",
      "to_repository": "<to_repository>",
      "relation": "<relation>"
    },
    "name": "link-repositories-tool"
  }
}

Input 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

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.5/5.0
Behavior5/5

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

Annotations only say idempotent and non-destructive; the description adds substantive behavior: the edge is team-visible, attributed to the caller, and consumed by every future `get-team-context-tool` call from any teammate's agent. It also discloses that `unrelated` actively suppresses derived connections, which is a real side effect on downstream context, and that repeat calls refresh rather than duplicate (consistent with idempotentHint).

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?

Front-loaded with the action and the payoff, then the relation glossary, then usage. Dense but nearly every clause earns its place; the relation definitions partially restate the schema enum text, which is the only real slack.

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?

Complete for an idempotent, non-destructive write with an output schema (no need to explain returns). Visibility/attribution and the downstream consumer are covered; it doesn't address failure modes such as an unknown repo or cross-team targets beyond the schema's "Must be on the same team" note.

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; the description earns above that by defining directionality ("repository <relation> to_repository") and glossing each relation with a concrete case (SDK/package/service, docs, coupled changes). The glosses overlap with the enum description but do add interpretive meaning for ambiguous cases like `ships_with`.

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?

States a specific verb+resource ("Teach the team's org map how two repositories relate") and immediately ties the write to its consumer, `get-team-context-tool`, which no sibling matches. The relation vocabulary is enumerated so the agent knows exactly what is being recorded.

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?

Gives explicit trigger conditions: when you discover a relationship the map is missing, or when the user explains how repos fit together. It also clarifies that re-teaching refreshes rather than errors. It stops short of stating when not to use it (e.g. don't relink already-correct edges speculatively), so it falls just short of full routing guidance.

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