Skip to main content
Glama

connect_project_source

Bind a project to its local code folder, measure it, and write the source receipt. Omit rootPath to infer it; without confirm nothing is written.

Instructions

Bind a project node to the local code folder it describes, measure it and write the source receipt; this answers nextAction: connect_source and its repair and re-measure actions. Omit rootPath to infer it. Without confirm: true nothing is written: you get the proposed folder, how many path: claims land in it, and the confirming call. The absolute root stays in a gitignored sidecar.

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": {
      "projectSlug": "<projectSlug>"
    },
    "name": "connect_project_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
repairNoReplace a malformed project-sources.json instead of refusing.
confirmNoRequired to write.
rootPathNoAbsolute code folder. Omit to infer, or to re-measure the binding.
projectSlugYesProject slug or unambiguous alias.

Output 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. Changed28 schema fields changedv2.7.5
    • changedInput schema / properties / confirm / description
      Previous value: -"Required to write. Default false returns the proposal and changes nothing."New value: +"Required to write."
    • changedInput schema / properties / projectSlug / description
      Previous value: -"Exact project node slug (or an unambiguous vault alias) to bind."New value: +"Project slug or unambiguous alias."
    • removedInput schema / properties / projectSlug / minLength
      Removed value: -1
    • removedInput schema / properties / projectSlug / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • changedInput schema / properties / repair / description
      Previous value: -"Discard a malformed .ontology-atlas/project-sources.json instead of refusing to write over it."New value: +"Replace a malformed project-sources.json instead of refusing."
    • changedInput schema / properties / rootPath / description
      Previous value: -"Absolute local folder holding the code. Omit to auto-infer, or to re-measure an existing binding."New value: +"Absolute code folder. Omit to infer, or to re-measure the binding."
    • removedInput schema / properties / rootPath / minLength
      Removed value: -1
    • removedInput schema / properties / rootPath / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / binding / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / binding / properties
      Removed value: -{
      -  "dirty": {
      -    "type": [
      -      "boolean",
      -      "null"
      -    ]
      -  },
      -  "inventoryFiles": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "kind": {
      -    "enum": [
      -      "git",
      -      "folder"
      -    ],
      -    "type": "string"
      -  },
      -  "rootPath": {
      -    "minLength": 1,
      -    "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -    "type": "string"
      -  },
      -  "sourceId": {
      -    "minLength": 1,
      -    "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -    "type": "string"
      -  },
      -  "truncated": {
      -    "type": "boolean"
      -  }
      -}
    • removedOutput schema / properties / binding / required
      Removed value: -[
      -  "rootPath",
      -  "kind",
      -  "sourceId",
      -  "dirty",
      -  "truncated",
      -  "inventoryFiles"
      -]
    • removedOutput schema / properties / contract / enum
      Removed value: -[
      -  "projectSourceConnect:v1"
      -]
    • removedOutput schema / properties / inference / additionalProperties
      Removed value: -true
    • removedOutput schema / properties / mode / enum
      Removed value: -[
      -  "connect",
      -  "replace",
      -  "remeasure"
      -]
    • removedOutput schema / properties / nextCall / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / nextCall / properties
      Removed value: -{
      -  "arguments": {
      -    "additionalProperties": true,
      -    "type": "object"
      -  },
      -  "tool": {
      -    "enum": [
      -      "connect_project_source",
      -      "disconnect_project_source"
      -    ],
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / properties / nextCall / required
      Removed value: -[
      -  "tool",
      -  "arguments"
      -]
    • removedOutput schema / properties / previewReceipt / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / previewReceipt / properties
      Removed value: -{
      -  "contractVersion": {
      -    "enum": [
      -      1
      -    ],
      -    "type": "integer"
      -  },
      -  "currentness": {
      -    "enum": [
      -      "current"
      -    ],
      -    "type": "string"
      -  },
      -  "diagnostics": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "dirty": {
      -        "type": [
      -          "boolean",
      -          "null"
      -        ]
      -      },
      -      "truncated": {
      -        "type": "boolean"
      -      }
      -    },
      -    "required": [
      -      "dirty",
      -      "truncated"
      -    ],
      -    "type": "object"
      -  },
      -  "graphHash": {
      -    "minLength": 1,
      -    "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -    "type": "string"
      -  },
      -  "measuredAt": {
      -    "format": "date-time",
      -    "type": "string"
      -  },
      -  "nextAction": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "enum": [
      -          "connect_source",
      -          "repair_source_binding",
      -          "measure_source",
      -          "record_source_role",
      -          "repair_source_path",
      -          "review_inventory_limit",
      -          "remeasure_source",
      -          "use_current_evidence"
      -        ],
      -        "type": "string"
      -      },
      -      "target": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  "projectSlug": {
      -    "minLength": 1,
      -    "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -    "type": "string"
      -  },
      -  "sourceFingerprint": {
      -    "minLength": 1,
      -    "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -    "type": "string"
      -  },
      -  "sourceId": {
      -    "minLength": 1,
      -    "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -    "type": "string"
      -  },
      -  "sourceKind": {
      -    "enum": [
      -      "git",
      -      "folder"
      -    ],
      -    "type": "string"
      -  },
      -  "sourceRevision": {
      -    "minLength": 1,
      -    "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -    "type": "string"
      -  },
      -  "status": {
      -    "enum": [
      -      "needs_evidence",
      -      "review_required",
      -      "verified_current"
      -    ],
      -    "type": "string"
      -  },
      -  "topGap": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "enum": [
      -          "source_unbound",
      -          "multiple_active_sources",
      -          "receipt_missing",
      -          "receipt_malformed",
      -          "source_role_evidence_missing",
      -          "declared_source_path_missing",
      -          "source_inventory_truncated",
      -          "ontology_changed",
      -          "source_changed"
      -        ],
      -        "type": "string"
      -      },
      -      "nodeSlug": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  },
      -  "witnessSummary": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "missing": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "supported": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "total": {
      -        "minimum": 0,
      -        "type": "integer"
      -      }
      -    },
      -    "required": [
      -      "total",
      -      "supported",
      -      "missing"
      -    ],
      -    "type": "object"
      -  },
      -  "witnesses": {
      -    "items": {
      -      "additionalProperties": false,
      -      "properties": {
      -        "id": {
      -          "minLength": 1,
      -          "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -          "type": "string"
      -        },
      -        "nodeSlug": {
      -          "minLength": 1,
      -          "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -          "type": "string"
      -        },
      -        "path": {
      -          "minLength": 1,
      -          "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -          "type": "string"
      -        },
      -        "role": {
      -          "minLength": 1,
      -          "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -          "type": "string"
      -        },
      -        "supported": {
      -          "type": "boolean"
      -        }
      -      },
      -      "required": [
      -        "id",
      -        "nodeSlug",
      -        "role",
      -        "path",
      -        "supported"
      -      ],
      -      "type": "object"
      -    },
      -    "type": "array"
      -  }
      -}
    • removedOutput schema / properties / previewReceipt / required
      Removed value: -[
      -  "contractVersion",
      -  "projectSlug",
      -  "sourceId",
      -  "sourceKind",
      -  "sourceRevision",
      -  "sourceFingerprint",
      -  "graphHash",
      -  "measuredAt",
      -  "status",
      -  "currentness",
      -  "topGap",
      -  "nextAction",
      -  "witnessSummary",
      -  "witnesses",
      -  "diagnostics"
      -]
    • removedOutput schema / properties / projectSlug / minLength
      Removed value: -1
    • removedOutput schema / properties / projectSlug / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / projectSource / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / projectSource / properties
      Removed value: -{
      -  "bindingCardinality": {
      -    "minimum": 0,
      -    "type": "integer"
      -  },
      -  "contractVersion": {
      -    "enum": [
      -      1
      -    ],
      -    "type": "integer"
      -  },
      -  "currentness": {
      -    "enum": [
      -      "unavailable",
      -      "stale",
      -      "current"
      -    ],
      -    "type": "string"
      -  },
      -  "measuredAt": {
      -    "format": "date-time",
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "nextAction": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "enum": [
      -          "connect_source",
      -          "repair_source_binding",
      -          "measure_source",
      -          "record_source_role",
      -          "repair_source_path",
      -          "review_inventory_limit",
      -          "remeasure_source",
      -          "use_current_evidence"
      -        ],
      -        "type": "string"
      -      },
      -      "target": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": "object"
      -  },
      -  "projectSlug": {
      -    "minLength": 1,
      -    "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -    "type": "string"
      -  },
      -  "receipt": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "contractVersion": {
      -            "enum": [
      -              1
      -            ],
      -            "type": "integer"
      -          },
      -          "currentness": {
      -            "enum": [
      -              "current"
      -            ],
      -            "type": "string"
      -          },
      -          "diagnostics": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "dirty": {
      -                "type": [
      -                  "boolean",
      -                  "null"
      -                ]
      -              },
      -              "truncated": {
      -                "type": "boolean"
      -              }
      -            },
      -            "required": [
      -              "dirty",
      -              "truncated"
      -            ],
      -            "type": "object"
      -          },
      -          "graphHash": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "measuredAt": {
      -            "format": "date-time",
      -            "type": "string"
      -          },
      -          "nextAction": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "id": {
      -                "enum": [
      -                  "connect_source",
      -                  "repair_source_binding",
      -                  "measure_source",
      -                  "record_source_role",
      -                  "repair_source_path",
      -                  "review_inventory_limit",
      -                  "remeasure_source",
      -                  "use_current_evidence"
      -                ],
      -                "type": "string"
      -              },
      -              "target": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "id"
      -            ],
      -            "type": "object"
      -          },
      -          "projectSlug": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "sourceFingerprint": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "sourceId": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "sourceKind": {
      -            "enum": [
      -              "git",
      -              "folder"
      -            ],
      -            "type": "string"
      -          },
      -          "sourceRevision": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          },
      -          "status": {
      -            "enum": [
      -              "needs_evidence",
      -              "review_required",
      -              "verified_current"
      -            ],
      -            "type": "string"
      -          },
      -          "topGap": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "id": {
      -                "enum": [
      -                  "source_unbound",
      -                  "multiple_active_sources",
      -                  "receipt_missing",
      -                  "receipt_malformed",
      -                  "source_role_evidence_missing",
      -                  "declared_source_path_missing",
      -                  "source_inventory_truncated",
      -                  "ontology_changed",
      -                  "source_changed"
      -                ],
      -                "type": "string"
      -              },
      -              "nodeSlug": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "id"
      -            ],
      -            "type": [
      -              "object",
      -              "null"
      -            ]
      -          },
      -          "witnessSummary": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "missing": {
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "supported": {
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "total": {
      -                "minimum": 0,
      -                "type": "integer"
      -              }
      -            },
      -            "required": [
      -              "total",
      -              "supported",
      -              "missing"
      -            ],
      -            "type": "object"
      -          },
      -          "witnesses": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "id": {
      -                  "minLength": 1,
      -                  "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -                  "type": "string"
      -                },
      -                "nodeSlug": {
      -                  "minLength": 1,
      -                  "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -                  "type": "string"
      -                },
      -                "path": {
      -                  "minLength": 1,
      -                  "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -                  "type": "string"
      -                },
      -                "role": {
      -                  "minLength": 1,
      -                  "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -                  "type": "string"
      -                },
      -                "supported": {
      -                  "type": "boolean"
      -                }
      -              },
      -              "required": [
      -                "id",
      -                "nodeSlug",
      -                "role",
      -                "path",
      -                "supported"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "contractVersion",
      -          "projectSlug",
      -          "sourceId",
      -          "sourceKind",
      -          "sourceRevision",
      -          "sourceFingerprint",
      -          "graphHash",
      -          "measuredAt",
      -          "status",
      -          "currentness",
      -          "topGap",
      -          "nextAction",
      -          "witnessSummary",
      -          "witnesses",
      -          "diagnostics"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ]
      -  },
      -  "status": {
      -    "enum": [
      -      "not_measured",
      -      "invalid",
      -      "review_required",
      -      "needs_evidence",
      -      "verified_current"
      -    ],
      -    "type": "string"
      -  },
      -  "topGap": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "id": {
      -        "enum": [
      -          "source_unbound",
      -          "multiple_active_sources",
      -          "receipt_missing",
      -          "receipt_malformed",
      -          "source_role_evidence_missing",
      -          "declared_source_path_missing",
      -          "source_inventory_truncated",
      -          "ontology_changed",
      -          "source_changed"
      -        ],
      -        "type": "string"
      -      },
      -      "nodeSlug": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "id"
      -    ],
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / projectSource / required
      Removed value: -[
      -  "contractVersion",
      -  "projectSlug",
      -  "status",
      -  "currentness",
      -  "measuredAt",
      -  "topGap",
      -  "nextAction",
      -  "bindingCardinality",
      -  "receipt"
      -]
    • removedOutput schema / properties / remedy / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / remedy / properties
      Removed value: -{
      -  "actionId": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "automatable": {
      -    "type": "boolean"
      -  },
      -  "cli": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "args": {
      -            "items": {
      -              "minLength": 1,
      -              "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "command": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "command",
      -          "args"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ]
      -  },
      -  "contract": {
      -    "enum": [
      -      "projectSourceRemedy:v1"
      -    ],
      -    "type": "string"
      -  },
      -  "inferRoot": {
      -    "type": "boolean"
      -  },
      -  "requiresConfirm": {
      -    "type": "boolean"
      -  },
      -  "requiresHuman": {
      -    "enum": [
      -      "none",
      -      "path_choice",
      -      "authoring"
      -    ],
      -    "type": "string"
      -  },
      -  "resolvable": {
      -    "type": "boolean"
      -  },
      -  "tool": {
      -    "anyOf": [
      -      {
      -        "additionalProperties": false,
      -        "properties": {
      -          "arguments": {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          "name": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "name",
      -          "arguments"
      -        ],
      -        "type": "object"
      -      },
      -      {
      -        "type": "null"
      -      }
      -    ]
      -  },
      -  "undo": {
      -    "additionalProperties": false,
      -    "properties": {
      -      "cli": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "args": {
      -            "items": {
      -              "minLength": 1,
      -              "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "command": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "command",
      -          "args"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "arguments": {
      -            "additionalProperties": true,
      -            "type": "object"
      -          },
      -          "name": {
      -            "minLength": 1,
      -            "pattern": "^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "name",
      -          "arguments"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "cli"
      -    ],
      -    "type": [
      -      "object",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / remedy / required
      Removed value: -[
      -  "contract",
      -  "actionId",
      -  "resolvable",
      -  "automatable",
      -  "requiresHuman",
      -  "requiresConfirm",
      -  "inferRoot",
      -  "tool",
      -  "cli",
      -  "undo"
      -]
  2. First observedv0.13.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, and idempotentHint=false, so safety is partly covered; the description still adds real value by explaining the dry-run gate (nothing is written without `confirm: true`), exactly what the preview returns, and that the absolute root is confined to a gitignored sidecar. It stops short of saying whether re-running with `confirm` overwrites an existing binding, which matters given idempotentHint=false.

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 core action, then the dry-run contract, then the sidecar detail; no sentence is filler. It is dense with domain jargon (`source receipt`, `path:` claims, sidecar) that assumes prior context, which slightly taxes readability.

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, return values need no explanation, and the description still characterizes the preview response shape. It covers inference, the write gate, and storage location; the only gap is behavior on repeat invocation against an already-bound project, notable for a non-idempotent mutation.

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 all four parameters are already documented in the schema. The description reinforces the two consequential ones (`rootPath` inference and `confirm` as the write gate) but adds no format or edge-case detail beyond the schema text, so the baseline of 3 applies.

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 states a concrete verb chain (bind, measure, write receipt) applied to a named resource (a project node and its local code folder), and ties it to a workflow signal (`nextAction: connect_source`). It does not name the counterpart tool (disconnect_project_source) or otherwise explicitly distinguish itself from siblings, which is what keeps it from 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 Guidelines4/5

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

It gives clear triggering conditions (answers `nextAction: connect_source` plus its repair and re-measure actions) and a concrete usage rule (omit `rootPath` to infer, omit it again to re-measure). It does not state when an agent should NOT use it, e.g. that disconnect_project_source handles removal or that a plain read of an existing binding should use a different tool.

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