Skip to main content
Glama

disconnect_project_source

Destructive

Disconnects a project's local source binding and receipt when the wrong folder was bound or measurement should stop; without confirm:true, it only previews removals.

Instructions

Remove a project node's local source binding and its receipt, when the wrong folder was bound or to stop measuring; the reversal of connect_project_source. Without confirm: true it only reports what would be removed. No other binding or markdown changes.

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": "disconnect_project_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
confirmNoRequired to write.
projectSlugYesProject slug.

Output Schema

NameRequiredDescriptionDefault
okYes
remedyNo
changedYes
removedYes
bindingsYes
contractYes
nextCallNo
confirmedYes
projectSlugYes
projectSourceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv2.7.5
    • changedInput schema / properties / confirm / description
      Previous value: -"Required to write. Default false lists the binding that would be removed."New value: +"Required to write."
    • changedInput schema / properties / projectSlug / description
      Previous value: -"Project node slug whose source binding should be removed."New value: +"Project slug."
    • removedInput schema / properties / projectSlug / minLength
      Removed value: -1
    • removedInput schema / properties / projectSlug / pattern
      Removed value: -"^(?!\\s)(?!.*\\s$)(?!.*\\u0000).+$"
    • removedOutput schema / properties / contract / enum
      Removed value: -[
      -  "projectSourceDisconnect:v1"
      -]
    • 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 / 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

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, so the risk is signaled structurally. The description adds genuinely new behavior: the dry-run mode without `confirm: true` and the blast-radius limit ('No other binding or markdown changes'), which the annotations do not 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?

A single dense sentence with clause-separated facts, front-loaded with the action and followed by conditions, dry-run behavior, and scope limits. Every clause earns its place, though the semicolon chain is close to overloaded.

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 annotations covering risk and an output schema covering returns, the description only needed to cover semantics and scope, which it does. A note on behavior on repeat invocation (idempotentHint is false) would have closed the remaining gap.

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% and already describes `confirm` as 'Required to write.' The description still adds meaning by explaining the observable consequence of omitting it — the call only reports what would be removed rather than mutating.

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 and resource ('Remove a project node's local source binding and its receipt') and explicitly names the sibling it reverses ('connect_project_source'). An agent can distinguish this from connect_project_source without opening either schema.

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 two concrete triggering conditions ('when the wrong folder was bound or to stop measuring') and frames itself as the reversal of connect_project_source. It lacks an explicit counter-case (when not to disconnect), so it falls just short of a 5.

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