Skip to main content
Glama

connect_project_source

Bind a project node to its local code folder, measure it, and write a source receipt. Use confirm:true to apply; omit rootPath to auto-detect the enclosing git repo or manifest.

Instructions

Bind a project node to the local code folder it describes, measure it, and write the source receipt. This is what nextAction: connect_source (and repair_source_binding / measure_source / remeasure_source) asks for. Omit rootPath and the server infers it: the git repository enclosing the vault wins, otherwise the nearest ancestor folder carrying a project manifest. Without confirm: true nothing is written — you get the proposed folder, how many declared path: claims actually land in it, and the exact confirming call. Re-running with a different rootPath replaces the binding; disconnect_project_source removes it. The absolute root stays in the local gitignored sidecar .ontology-atlas/project-sources.json and never enters the receipt, the graph markdown, or any handoff.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
repairNoDiscard a malformed .ontology-atlas/project-sources.json instead of refusing to write over it.
confirmNoRequired to write. Default false returns the proposal and changes nothing.
rootPathNoAbsolute local folder holding the code. Omit to auto-infer, or to re-measure an existing binding.
projectSlugYesExact project node slug (or an unambiguous vault alias) to bind.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
modeYes
undoNo
remedyNo
bindingYes
changedYes
contractYes
nextCallNo
confirmedYes
inferenceNo
projectSlugYes
projectSourceNo
previewReceiptNo
previousBindingCountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.13.0

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, and openWorldHint=false, so the description's job is to add context beyond those flags. It does so richly: nothing is written without confirm:true, re-running replaces the binding, the absolute root is stored in a gitignored sidecar and never enters the receipt or graph markdown, and repair discards a malformed sidecar. This is exactly the kind of behavioral context an agent needs.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is dense but every sentence earns its place: purpose, trigger context, inference rule, dry-run behavior, replacement semantics, and sidecar storage are each covered in one or two clauses. It is front-loaded with the core action and routes to alternatives early. No filler or repetition of schema text.

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 tool with 4 parameters, an output schema, and annotations, the description covers all the non-obvious context: the dry-run default, the inference fallback, the replacement behavior, the sidecar location, and the privacy boundary (absolute root never enters receipt/graph/handoff). An agent has everything needed to call it correctly and to interpret the proposal response.

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 description coverage is 100%, so the baseline is 3. The description adds meaningful semantics beyond the schema: it explains that omitting rootPath triggers auto-inference (git repo enclosing the vault, else nearest ancestor with a project manifest), that confirm:true is required to write, and that repair handles a malformed sidecar. It doesn't add detail on projectSlug beyond the schema, but the added rootPath and confirm semantics justify a 4.

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 opens with a specific verb phrase — 'Bind a project node to the local code folder it describes, measure it, and write the source receipt' — and immediately distinguishes the tool from siblings by naming the exact nextAction values and related tools it fulfills. It also contrasts with disconnect_project_source, so an agent can tell them apart without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

The description explicitly states when to use this tool ('This is what nextAction: connect_source ... asks for'), what happens when confirm is omitted, how rootPath inference works, and how re-running with a different rootPath behaves. It also names the sibling that removes the binding, giving clear when-to-use and when-not-to-use guidance.

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