Skip to main content
Glama

link_codebase

Link your product's source folder or Git repo so video compositions use real components and design tokens; then reference files with @ and let the agent read them directly.

Instructions

Add the product's own source to the library, so videos are built from its real components and design tokens: path links a folder where it is on disk (never copied); url clones a Git repository (shallow, into the MOGA home), and linking the same url again pulls its latest. Kept in moga.json "codebases". Then @ reaches its files and folders, and the agent reads them with its own file tools. Returns what it holds: how many source files, the token files, how many components and styles.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "link_codebase"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoOr a Git remote: https://…, ssh://… or git@host:path
nameNoWhat @ calls it (default: the folder or repository name)
pathNoAbsolute path of the folder
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
messageNoOne line saying why, kept with the change in the history
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.2
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
  2. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations it discloses real behavior: path linking never copies files, url linking performs a shallow clone into the MOGA home, repeat linking refreshes to latest, and state is persisted in moga.json under 'codebases'. It also explains the downstream effect ('@ reaches its files and folders') and the return payload, which annotations alone cannot convey.

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?

One dense paragraph that front-loads purpose and then explains each mode; almost every clause carries information. It is a single wall of text with no break between mechanics and return values, which makes it slightly harder to scan than it could be.

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?

For a seven-parameter mutation with no output schema, it covers prerequisites (path must be absolute on disk, url must be a remote), side effects (shared clone location, persisted config) and return contents. The one gap is that the change-tracking parameters (basis, message, feedback, confidence) are never contextualized, so an agent learns about them only from the schema.

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 coverage is 100%, so all seven parameters are self-documenting and the baseline of 3 applies. The description adds useful semantics for path ('never copied') and url ('shallow, into the MOGA home'), but says nothing about name, basis, message, feedback or confidence, leaving the change-tracking parameters entirely to the schema.

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?

A specific verb plus resource: 'Add the product's own source to the library', clarified by what that enables ('videos are built from its real components and design tokens') and by the two input modes (path vs url). It never names a sibling such as unlink_codebase or link_reference, so the agent must infer the boundary from the verb 'add' alone.

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 effectively tells the agent which mode to pick: path for a folder already on disk (never copied), url for a Git remote (shallow clone into the MOGA home), and re-linking the same url to refresh it. What is missing is an explicit exclusion or comparison point, such as when to use this rather than link_reference.

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

Deploy Server

Other Tools