Skip to main content
Glama

Find Dependency Cycles

find-dependency-cycles
Read-onlyIdempotent

Detects circular dependency groups in a static C# dependency graph for a solution or selected scope, helping you investigate coupling and pinpoint mutually dependent types, namespaces, or projects.

Instructions

Finds mutually dependent groups in a static dependency graph for the selected scope, or the loaded solution when scope is omitted. Use this to investigate circular coupling; use get-dependency-graph to inspect individual dependency edges. granularity defaults to Type; Namespace groups source dependencies and Project uses direct project references. A document scope uses its containing project for Project granularity. Returns a bounded cycles collection of strongly connected node groups, not ordered traversal paths. cyclesLimit defaults to 25; check cycles.hasMore for additional groups. Analysis budgets default to 25000 nodes and 100000 edges; exceeding either rejects the query with AnalysisLimitExceeded rather than returning a partial cycle analysis. Narrow the scope or raise the relevant budget to retry. Read-only; no tests or application code are run.

Input Schema

NameRequiredDescriptionDefault
scopeNoThe scope to analyse.
workspaceNoProvide workspaceId, alias, path, or any combination.
edgesLimitNoThe maximum number of graph edges to analyse.
nodesLimitNoThe maximum number of graph nodes to analyse.
cyclesLimitNoMaximum number of results to return.
granularityNoThe dependency graph granularity.Type

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed10 schema fields changedv1.0.5
    • addedInput schema / $defs
      Added value: +{
      +  "project": {
      +    "properties": {
      +      "name": {
      +        "type": "string"
      +      },
      +      "path": {
      +        "description": "Workspace-relative path.",
      +        "type": "string"
      +      },
      +      "projectId": {
      +        "type": "string"
      +      },
      +      "targetFramework": {
      +        "type": "string"
      +      }
      +    },
      +    "type": [
      +      "object",
      +      "null"
      +    ]
      +  }
      +}
    • addedInput schema / properties / scope / properties / document / properties / project / $ref
      Added value: +"#/$defs/project"
    • removedInput schema / properties / scope / properties / document / properties / project / properties
      Removed value: -{
      -  "name": {
      -    "type": "string"
      -  },
      -  "path": {
      -    "description": "Workspace-relative path.",
      -    "type": "string"
      -  },
      -  "projectId": {
      -    "type": "string"
      -  },
      -  "targetFramework": {
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / scope / properties / document / properties / project / type
      Removed value: -[
      -  "object",
      -  "null"
      -]
    • addedInput schema / properties / scope / properties / project / $ref
      Added value: +"#/$defs/project"
    • removedInput schema / properties / scope / properties / project / properties
      Removed value: -{
      -  "name": {
      -    "type": "string"
      -  },
      -  "path": {
      -    "description": "Workspace-relative path.",
      -    "type": "string"
      -  },
      -  "projectId": {
      -    "type": "string"
      -  },
      -  "targetFramework": {
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / scope / properties / project / type
      Removed value: -[
      -  "object",
      -  "null"
      -]
    • addedInput schema / properties / scope / properties / projects / items / $ref
      Added value: +"#/$defs/project"
    • removedInput schema / properties / scope / properties / projects / items / properties
      Removed value: -{
      -  "name": {
      -    "type": "string"
      -  },
      -  "path": {
      -    "description": "Workspace-relative path.",
      -    "type": "string"
      -  },
      -  "projectId": {
      -    "type": "string"
      -  },
      -  "targetFramework": {
      -    "type": "string"
      -  }
      -}
    • removedInput schema / properties / scope / properties / projects / items / type
      Removed value: -[
      -  "object",
      -  "null"
      -]
  2. Changed1 schema field changedv1.0.4
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$defs": {
      +    "warningInfo": {
      +      "properties": {
      +        "code": {
      +          "description": "The stable machine-readable warning code.",
      +          "type": "string"
      +        },
      +        "message": {
      +          "description": "The human-readable warning message.",
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "code",
      +        "message"
      +      ],
      +      "type": "object"
      +    }
      +  },
      +  "oneOf": [
      +    {
      +      "properties": {
      +        "data": {
      +          "description": "Tool-specific result payload.",
      +          "properties": {
      +            "cycles": {
      +              "description": "The returned cycles.",
      +              "properties": {
      +                "hasMore": {
      +                  "description": "Whether additional items were available beyond this page.",
      +                  "type": "boolean"
      +                },
      +                "items": {
      +                  "description": "Items returned in this page.",
      +                  "items": {
      +                    "properties": {
      +                      "nodes": {
      +                        "items": {
      +                          "properties": {
      +                            "displayName": {
      +                              "type": "string"
      +                            },
      +                            "id": {
      +                              "type": "string"
      +                            },
      +                            "kind": {
      +                              "type": "string"
      +                            },
      +                            "symbol": {
      +                              "properties": {
      +                                "displayName": {
      +                                  "description": "The display name of the symbol.",
      +                                  "type": "string"
      +                                },
      +                                "documentationCommentId": {
      +                                  "description": "The documentation comment identifier, when available.",
      +                                  "type": [
      +                                    "string",
      +                                    "null"
      +                                  ]
      +                                },
      +                                "kind": {
      +                                  "description": "The symbol kind.",
      +                                  "type": "string"
      +                                },
      +                                "location": {
      +                                  "description": "The optional source location of the symbol.",
      +                                  "properties": {
      +                                    "column": {
      +                                      "description": "The one-based column number.",
      +                                      "type": "integer"
      +                                    },
      +                                    "document": {
      +                                      "description": "The resolved document.",
      +                                      "properties": {
      +                                        "documentId": {
      +                                          "description": "The document identifier.",
      +                                          "type": "string"
      +                                        },
      +                                        "path": {
      +                                          "description": "The normalized document path.",
      +                                          "type": "string"
      +                                        },
      +                                        "projectId": {
      +                                          "description": "The owning project identifier.",
      +                                          "type": "string"
      +                                        }
      +                                      },
      +                                      "required": [
      +                                        "documentId",
      +                                        "path",
      +                                        "projectId"
      +                                      ],
      +                                      "type": [
      +                                        "object",
      +                                        "null"
      +                                      ]
      +                                    },
      +                                    "line": {
      +                                      "description": "The one-based line number.",
      +                                      "type": "integer"
      +                                    },
      +                                    "selector": {
      +                                      "description": "The canonical selector that can resolve this source location again.",
      +                                      "properties": {
      +                                        "span": {
      +                                          "properties": {
      +                                            "document": {
      +                                              "description": "Provide exactly one of path or documentId.",
      +                                              "properties": {
      +                                                "documentId": {
      +                                                  "description": "Workspace-local document ID.",
      +                                                  "type": [
      +                                                    "string",
      +                                                    "null"
      +                                                  ]
      +                                                },
      +                                                "path": {
      +                                                  "description": "Workspace-relative path.",
      +                                                  "type": [
      +                                                    "string",
      +                                                    "null"
      +                                                  ]
      +                                                },
      +                                                "project": {
      +                                                  "description": "Disambiguates documents with matching paths or IDs.",
      +                                                  "properties": {
      +                                                    "name": {
      +                                                      "type": [
      +                                                        "string",
      +                                                        "null"
      +                                                      ]
      +                                                    },
      +                                                    "path": {
      +                                                      "description": "Workspace-relative path.",
      +                                                      "type": [
      +                                                        "string",
      +                                                        "null"
      +                                                      ]
      +                                                    },
      +                                                    "projectId": {
      +                                                      "type": [
      +                                                        "string",
      +                                                        "null"
      +                                                      ]
      +                                                    },
      +                                                    "targetFramework": {
      +                                                      "type": [
      +                                                        "string",
      +                                                        "null"
      +                                                      ]
      +                                                    }
      +                                                  },
      +                                                  "type": [
      +                                                    "object",
      +                                                    "null"
      +                                                  ]
      +                                                }
      +                                              },
      +                                              "type": "object"
      +                                            },
      +                                            "range": {
      +                                              "description": "Zero-based UTF-16 range.",
      +                                              "properties": {
      +                                                "length": {
      +                                                  "description": "UTF-16 code-unit length.",
      +                                                  "maximum": 2147483647,
      +                                                  "minimum": 0,
      +                                                  "type": "integer"
      +                                                },
      +                                                "start": {
      +                                                  "description": "Zero-based UTF-16 offset.",
      +                                                  "maximum": 2147483647,
      +                                                  "minimum": 0,
      +                                                  "type": "integer"
      +                                                }
      +                                              },
      +                                              "type": "object"
      +                                            }
      +                                          },
      +                                          "required": [
      +                                            "document",
      +                                            "range"
      +                                          ],
      +                                          "type": "object"
      +                                        }
      +                                      },
      +                                      "required": [
      +                                        "span"
      +                                      ],
      +                                      "type": [
      +                                        "object",
      +                                        "null"
      +                                      ]
      +                                    },
      +                                    "snapshot": {
      +                                      "description": "The exact immutable workspace snapshot associated with this location.",
      +                                      "properties": {
      +                                        "snapshotId": {
      +                                          "format": "uuid",
      +                                          "type": "string"
      +                                        },
      +                                        "transactionRevision": {
      +                                          "type": [
      +                                            "integer",
      +                                            "null"
      +                                          ]
      +                                        },
      +                                        "workspaceEpoch": {
      +                                          "type": "integer"
      +                                        },
      +                                        "workspaceId": {
      +                                          "format": "uuid",
      +                                          "type": "string"
      +                                        }
      +                                      },
      +                                      "required": [
      +                                        "workspaceId",
      +                                        "workspaceEpoch",
      +                                        "snapshotId",
      +                                        "transactionRevision"
      +                                      ],
      +                                      "type": "object"
      +                                    },
      +                                    "span": {
      +                                      "description": "The resolved text span.",
      +                                      "properties": {
      +                                        "length": {
      +                                          "description": "UTF-16 code-unit length.",
      +                                          "maximum": 2147483647,
      +                                          "minimum": 0,
      +                                          "type": "integer"
      +                                        },
      +                                        "start": {
      +                                          "description": "Zero-based UTF-16 offset.",
      +                                          "maximum": 2147483647,
      +                                          "minimum": 0,
      +                                          "type": "integer"
      +                                        }
      +                                      },
      +                                      "type": [
      +                                        "object",
      +                                        "null"
      +                                      ]
      +                                    }
      +                                  },
      +                                  "required": [
      +                                    "snapshot"
      +                                  ],
      +                                  "type": [
      +                                    "object",
      +                                    "null"
      +                                  ]
      +                                }
      +                              },
      +                              "required": [
      +                                "displayName",
      +                                "kind"
      +                              ],
      +                              "type": [
      +                                "object",
      +                                "null"
      +                              ]
      +                            }
      +                          },
      +                          "required": [
      +                            "id",
      +                            "kind",
      +                            "displayName"
      +                          ],
      +                          "type": "object"
      +                        },
      +                        "type": "array"
      +                      }
      +                    },
      +                    "type": "object"
      +                  },
      +                  "type": [
      +                    "array",
      +                    "null"
      +                  ]
      +                },
      +                "totalCount": {
      +                  "description": "Complete result count, when available without additional expensive work.",
      +                  "type": [
      +                    "integer",
      +                    "null"
      +                  ]
      +                }
      +              },
      +              "type": "object"
      +            }
      +          },
      +          "type": [
      +            "object",
      +            "null"
      +          ]
      +        },
      +        "ok": {
      +          "const": true,
      +          "description": "Whether the tool invocation succeeded."
      +        },
      +        "snapshot": {
      +          "description": "Exact immutable workspace snapshot associated with the result, when available.",
      +          "properties": {
      +            "snapshotId": {
      +              "format": "uuid",
      +              "type": "string"
      +            },
      +            "transactionRevision": {
      +              "type": [
      +                "integer",
      +                "null"
      +              ]
      +            },
      +            "workspaceEpoch": {
      +              "type": "integer"
      +            },
      +            "workspaceId": {
      +              "format": "uuid",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "workspaceId",
      +            "workspaceEpoch",
      +            "snapshotId",
      +            "transactionRevision"
      +          ],
      +          "type": "object"
      +        },
      +        "warnings": {
      +          "description": "Non-fatal warnings the agent should consider.",
      +          "items": {
      +            "$ref": "#/$defs/warningInfo"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "ok",
      +        "data",
      +        "snapshot"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "continuation": {
      +          "description": "Action the agent should take before retrying or continuing.",
      +          "oneOf": [
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "instruction": {
      +                  "description": "Agent-facing instruction explaining how to continue.",
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "kind": {
      +                  "const": "CallTool",
      +                  "description": "Action required before the original request can continue."
      +                },
      +                "tool": {
      +                  "description": "Tool to call before continuing the original request.",
      +                  "minLength": 1,
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "tool",
      +                "instruction"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "instruction": {
      +                  "description": "Agent-facing instruction explaining how to continue.",
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "kind": {
      +                  "const": "ChooseTool",
      +                  "description": "Action required before the original request can continue."
      +                },
      +                "tools": {
      +                  "description": "Allowed tool choices from which the agent must select one.",
      +                  "items": {
      +                    "description": "Name of a tool the agent may choose.",
      +                    "minLength": 1,
      +                    "type": "string"
      +                  },
      +                  "minItems": 1,
      +                  "type": "array",
      +                  "uniqueItems": true
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "tools",
      +                "instruction"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "instruction": {
      +                  "description": "Agent-facing instruction explaining how to continue.",
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "kind": {
      +                  "const": "RetryRequest",
      +                  "description": "Action required before the original request can continue."
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "instruction"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "instruction": {
      +                  "description": "Agent-facing instruction explaining how to continue.",
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "kind": {
      +                  "const": "ReviseRequest",
      +                  "description": "Action required before the original request can continue."
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "instruction"
      +              ],
      +              "type": "object"
      +            },
      +            {
      +              "additionalProperties": false,
      +              "properties": {
      +                "instruction": {
      +                  "description": "Agent-facing instruction explaining how to continue.",
      +                  "minLength": 1,
      +                  "type": "string"
      +                },
      +                "kind": {
      +                  "const": "ResolveExternally",
      +                  "description": "Action required before the original request can continue."
      +                }
      +              },
      +              "required": [
      +                "kind",
      +                "instruction"
      +              ],
      +              "type": "object"
      +            }
      +          ]
      +        },
      +        "diagnostics": {
      +          "description": "Diagnostics that explain the failed invocation.",
      +          "items": {
      +            "properties": {
      +              "id": {
      +                "description": "The diagnostic identifier.",
      +                "type": "string"
      +              },
      +              "location": {
      +                "description": "The optional source location of the diagnostic.",
      +                "properties": {
      +                  "column": {
      +                    "description": "The one-based column number.",
      +                    "type": "integer"
      +                  },
      +                  "document": {
      +                    "description": "The resolved document.",
      +                    "properties": {
      +                      "documentId": {
      +                        "description": "The document identifier.",
      +                        "type": "string"
      +                      },
      +                      "path": {
      +                        "description": "The normalized document path.",
      +                        "type": "string"
      +                      },
      +                      "projectId": {
      +                        "description": "The owning project identifier.",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "documentId",
      +                      "path",
      +                      "projectId"
      +                    ],
      +                    "type": [
      +                      "object",
      +                      "null"
      +                    ]
      +                  },
      +                  "line": {
      +                    "description": "The one-based line number.",
      +                    "type": "integer"
      +                  },
      +                  "selector": {
      +                    "description": "The canonical selector that can resolve this source location again.",
      +                    "properties": {
      +                      "span": {
      +                        "properties": {
      +                          "document": {
      +                            "description": "Provide exactly one of path or documentId.",
      +                            "properties": {
      +                              "documentId": {
      +                                "description": "Workspace-local document ID.",
      +                                "type": [
      +                                  "string",
      +                                  "null"
      +                                ]
      +                              },
      +                              "path": {
      +                                "description": "Workspace-relative path.",
      +                                "type": [
      +                                  "string",
      +                                  "null"
      +                                ]
      +                              },
      +                              "project": {
      +                                "description": "Disambiguates documents with matching paths or IDs.",
      +                                "properties": {
      +                                  "name": {
      +                                    "type": [
      +                                      "string",
      +                                      "null"
      +                                    ]
      +                                  },
      +                                  "path": {
      +                                    "description": "Workspace-relative path.",
      +                                    "type": [
      +                                      "string",
      +                                      "null"
      +                                    ]
      +                                  },
      +                                  "projectId": {
      +                                    "type": [
      +                                      "string",
      +                                      "null"
      +                                    ]
      +                                  },
      +                                  "targetFramework": {
      +                                    "type": [
      +                                      "string",
      +                                      "null"
      +                                    ]
      +                                  }
      +                                },
      +                                "type": [
      +                                  "object",
      +                                  "null"
      +                                ]
      +                              }
      +                            },
      +                            "type": "object"
      +                          },
      +                          "range": {
      +                            "description": "Zero-based UTF-16 range.",
      +                            "properties": {
      +                              "length": {
      +                                "description": "UTF-16 code-unit length.",
      +                                "maximum": 2147483647,
      +                                "minimum": 0,
      +                                "type": "integer"
      +                              },
      +                              "start": {
      +                                "description": "Zero-based UTF-16 offset.",
      +                                "maximum": 2147483647,
      +                                "minimum": 0,
      +                                "type": "integer"
      +                              }
      +                            },
      +                            "type": "object"
      +                          }
      +                        },
      +                        "required": [
      +                          "document",
      +                          "range"
      +                        ],
      +                        "type": "object"
      +                      }
      +                    },
      +                    "required": [
      +                      "span"
      +                    ],
      +                    "type": [
      +                      "object",
      +                      "null"
      +                    ]
      +                  },
      +                  "snapshot": {
      +                    "description": "The exact immutable workspace snapshot associated with this location.",
      +                    "properties": {
      +                      "snapshotId": {
      +                        "format": "uuid",
      +                        "type": "string"
      +                      },
      +                      "transactionRevision": {
      +                        "type": [
      +                          "integer",
      +                          "null"
      +                        ]
      +                      },
      +                      "workspaceEpoch": {
      +                        "type": "integer"
      +                      },
      +                      "workspaceId": {
      +                        "format": "uuid",
      +                        "type": "string"
      +                      }
      +                    },
      +                    "required": [
      +                      "workspaceId",
      +                      "workspaceEpoch",
      +                      "snapshotId",
      +                      "transactionRevision"
      +                    ],
      +                    "type": "object"
      +                  },
      +                  "span": {
      +                    "description": "The resolved text span.",
      +                    "properties": {
      +                      "length": {
      +                        "description": "UTF-16 code-unit length.",
      +                        "maximum": 2147483647,
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      },
      +                      "start": {
      +                        "description": "Zero-based UTF-16 offset.",
      +                        "maximum": 2147483647,
      +                        "minimum": 0,
      +                        "type": "integer"
      +                      }
      +                    },
      +                    "type": [
      +                      "object",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "snapshot"
      +                ],
      +                "type": [
      +                  "object",
      +                  "null"
      +                ]
      +              },
      +              "message": {
      +                "description": "The diagnostic message.",
      +                "type": "string"
      +              },
      +              "severity": {
      +                "description": "The diagnostic severity.",
      +                "enum": [
      +                  "Hidden",
      +                  "Info",
      +                  "Warning",
      +                  "Error"
      +                ],
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "id",
      +              "message"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "error": {
      +          "description": "Structured error details when the invocation failed.",
      +          "properties": {
      +            "code": {
      +              "description": "Stable machine-readable error code.",
      +              "type": "string"
      +            },
      +            "correlationId": {
      +              "description": "Correlation identifier for matching the failure to server-side diagnostics, when available.",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "message": {
      +              "description": "Human-readable explanation of the failure.",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        },
      +        "ok": {
      +          "const": false,
      +          "description": "Whether the tool invocation succeeded."
      +        },
      +        "warnings": {
      +          "description": "Non-fatal warnings the agent should consider.",
      +          "items": {
      +            "$ref": "#/$defs/warningInfo"
      +          },
      +          "type": "array"
      +        }
      +      },
      +      "required": [
      +        "ok",
      +        "error"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "diagnostics": {
      +          "description": "Diagnostics that explain the failed invocation.",
      +          "properties": {
      +            "detailsAvailable": {
      +              "const": true
      +            },
      +            "detailsTool": {
      +              "const": "get-error-details"
      +            }
      +          },
      +          "required": [
      +            "detailsAvailable",
      +            "detailsTool"
      +          ],
      +          "type": "object"
      +        },
      +        "error": {
      +          "description": "Structured error details when the invocation failed.",
      +          "properties": {
      +            "code": {
      +              "const": "UnhandledException"
      +            },
      +            "correlationId": {
      +              "format": "uuid",
      +              "type": "string"
      +            },
      +            "message": {
      +              "const": "Tool execution failed."
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message",
      +            "correlationId"
      +          ],
      +          "type": "object"
      +        },
      +        "ok": {
      +          "const": false,
      +          "description": "Whether the tool invocation succeeded."
      +        },
      +        "reporting": {
      +          "description": "Error-reporting workflow available for an unhandled failure.",
      +          "properties": {
      +            "canPrepare": {
      +              "type": "boolean"
      +            },
      +            "prepareTool": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "state": {
      +              "enum": [
      +                "Available",
      +                "AlwaysApproved",
      +                "DisabledByConfiguration",
      +                "ApprovalUnavailable"
      +              ],
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "state"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "ok",
      +        "error",
      +        "diagnostics"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  3. First observedv1.0.2

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the read-only, idempotent, non-destructive profile, yet the description adds real behavioral detail: hard analysis budgets that reject with AnalysisLimitExceeded rather than returning partial results, and the shape of the return (bounded strongly-connected node groups, not ordered paths). Minor gap is that it does not state whether results are cached or how cost scales before the limits hit.

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 purpose and the sibling alternative, then layers in granularity semantics, return shape, and limit behavior. Dense but each sentence carries distinct information; the budget sentence could be tightened slightly but nothing is redundant.

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?

With an output schema present, the description does not need to enumerate return fields, yet it still tells the agent how to page through results (cycles.hasMore) and why it may get a hard failure. For a 6-param analysis tool with optional params, this is complete enough to invoke correctly on the first try.

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 baseline is 3, but the description adds meaning the schema does not: 'Namespace groups source dependencies and Project uses direct project references' explains what the enum values actually do, and it clarifies that a document scope resolves to its containing project under Project granularity. It also ties cyclesLimit to cycles.hasMore.

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 ('Finds mutually dependent groups in a static dependency graph'), including the default scope when the parameter is omitted. It explicitly separates itself from get-dependency-graph, so an agent can choose between them without opening a schema.

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?

Names the sibling tool and the condition that selects each: use this for circular coupling, use get-dependency-graph for individual edges. It also tells the agent how to recover from a rejected query (narrow scope or raise the budget).

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