Skip to main content
Glama

Detect web project eligibility

web_project_detect
Read-onlyIdempotent

Identify the actual project root by distinguishing confirmed app markers from weak dependencies, and return bounded workspace candidates without starting a process.

Instructions

Inspect the exact root, distinguish confirmed application markers from weak dependency candidates, and report bounded workspace candidates without starting a process or selecting a child.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
projectRootNo/app

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
dataNo
errorNo
warningsYes
artifactsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.10.0
    • addedOutput schema / definitions / ProjectCapabilitiesOutput
      Added value: +{
      +  "additionalProperties": false,
      +  "properties": {
      +    "angular": {
      +      "type": "boolean"
      +    },
      +    "browserTarget": {
      +      "type": "boolean"
      +    },
      +    "next": {
      +      "type": "boolean"
      +    },
      +    "react": {
      +      "type": "boolean"
      +    },
      +    "serverRuntime": {
      +      "type": "boolean"
      +    },
      +    "vite": {
      +      "type": "boolean"
      +    },
      +    "vue": {
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "browserTarget",
      +    "react",
      +    "angular",
      +    "vue",
      +    "vite",
      +    "next",
      +    "serverRuntime"
      +  ],
      +  "type": "object"
      +}
    • addedOutput schema / properties / data / properties / projectCapabilities / $ref
      Added value: +"#/definitions/ProjectCapabilitiesOutput"
    • removedOutput schema / properties / data / properties / projectCapabilities / additionalProperties
      Removed value: -false
    • removedOutput schema / properties / data / properties / projectCapabilities / properties
      Removed value: -{
      -  "angular": {
      -    "type": "boolean"
      -  },
      -  "browserTarget": {
      -    "type": "boolean"
      -  },
      -  "next": {
      -    "type": "boolean"
      -  },
      -  "react": {
      -    "type": "boolean"
      -  },
      -  "serverRuntime": {
      -    "type": "boolean"
      -  },
      -  "vite": {
      -    "type": "boolean"
      -  },
      -  "vue": {
      -    "type": "boolean"
      -  }
      -}
    • removedOutput schema / properties / data / properties / projectCapabilities / required
      Removed value: -[
      -  "browserTarget",
      -  "react",
      -  "angular",
      -  "vue",
      -  "vite",
      -  "next",
      -  "serverRuntime"
      -]
    • removedOutput schema / properties / data / properties / projectCapabilities / type
      Removed value: -"object"
  2. Changed7 schema fields changedv0.7.0
    • removedOutput schema / definitions / __schema1
      Removed value: -{
      -  "anyOf": [
      -    {
      -      "type": "string"
      -    },
      -    {
      -      "type": "number"
      -    },
      -    {
      -      "type": "boolean"
      -    },
      -    {
      -      "type": "null"
      -    },
      -    {
      -      "items": {
      -        "$ref": "#/definitions/__schema1"
      -      },
      -      "type": "array"
      -    },
      -    {
      -      "additionalProperties": {
      -        "$ref": "#/definitions/__schema1"
      -      },
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    }
      -  ]
      -}
    • addedOutput schema / properties / data / additionalProperties
      Added value: +false
    • removedOutput schema / properties / data / allOf
      Removed value: -[
      -  {
      -    "$ref": "#/definitions/__schema0"
      -  }
      -]
    • addedOutput schema / properties / data / properties
      Added value: +{
      +  "ambiguous": {
      +    "type": "boolean"
      +  },
      +  "confidence": {
      +    "enum": [
      +      "high",
      +      "medium",
      +      "low",
      +      "none"
      +    ],
      +    "type": "string"
      +  },
      +  "frameworkDetections": {
      +    "items": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "confidence": {
      +          "enum": [
      +            "high",
      +            "medium",
      +            "low"
      +          ],
      +          "type": "string"
      +        },
      +        "framework": {
      +          "enum": [
      +            "vanilla",
      +            "react",
      +            "angular",
      +            "vue",
      +            "vite",
      +            "next"
      +          ],
      +          "type": "string"
      +        },
      +        "provenance": {
      +          "items": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "source": {
      +                "enum": [
      +                  "config",
      +                  "entry",
      +                  "script",
      +                  "dependency",
      +                  "devDependency",
      +                  "peerDependency"
      +                ],
      +                "type": "string"
      +              },
      +              "value": {
      +                "maxLength": 300,
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "source",
      +              "value"
      +            ],
      +            "type": "object"
      +          },
      +          "maxItems": 8,
      +          "type": "array"
      +        },
      +        "selected": {
      +          "type": "boolean"
      +        }
      +      },
      +      "required": [
      +        "framework",
      +        "confidence",
      +        "selected",
      +        "provenance"
      +      ],
      +      "type": "object"
      +    },
      +    "maxItems": 6,
      +    "type": "array"
      +  },
      +  "frameworks": {
      +    "items": {
      +      "enum": [
      +        "vanilla",
      +        "react",
      +        "angular",
      +        "vue",
      +        "vite",
      +        "next"
      +      ],
      +      "type": "string"
      +    },
      +    "maxItems": 6,
      +    "type": "array"
      +  },
      +  "kind": {
      +    "enum": [
      +      "application",
      +      "workspace",
      +      "library",
      +      "unknown"
      +    ],
      +    "type": "string"
      +  },
      +  "markers": {
      +    "items": {
      +      "maxLength": 300,
      +      "type": "string"
      +    },
      +    "maxItems": 32,
      +    "type": "array"
      +  },
      +  "packageManager": {
      +    "anyOf": [
      +      {
      +        "enum": [
      +          "npm",
      +          "pnpm",
      +          "yarn",
      +          "bun"
      +        ],
      +        "type": "string"
      +      },
      +      {
      +        "type": "null"
      +      }
      +    ]
      +  },
      +  "projectCapabilities": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "angular": {
      +        "type": "boolean"
      +      },
      +      "browserTarget": {
      +        "type": "boolean"
      +      },
      +      "next": {
      +        "type": "boolean"
      +      },
      +      "react": {
      +        "type": "boolean"
      +      },
      +      "serverRuntime": {
      +        "type": "boolean"
      +      },
      +      "vite": {
      +        "type": "boolean"
      +      },
      +      "vue": {
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "browserTarget",
      +      "react",
      +      "angular",
      +      "vue",
      +      "vite",
      +      "next",
      +      "serverRuntime"
      +    ],
      +    "type": "object"
      +  },
      +  "projectRoot": {
      +    "maxLength": 4096,
      +    "type": "string"
      +  },
      +  "schemaVersion": {
      +    "const": 2,
      +    "type": "number"
      +  },
      +  "warnings": {
      +    "items": {
      +      "maxLength": 500,
      +      "type": "string"
      +    },
      +    "maxItems": 20,
      +    "type": "array"
      +  },
      +  "workspace": {
      +    "additionalProperties": false,
      +    "properties": {
      +      "candidates": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "ambiguous": {
      +              "type": "boolean"
      +            },
      +            "confidence": {
      +              "enum": [
      +                "high",
      +                "medium",
      +                "low",
      +                "none"
      +              ],
      +              "type": "string"
      +            },
      +            "frameworks": {
      +              "items": {
      +                "enum": [
      +                  "vanilla",
      +                  "react",
      +                  "angular",
      +                  "vue",
      +                  "vite",
      +                  "next"
      +                ],
      +                "type": "string"
      +              },
      +              "maxItems": 6,
      +              "type": "array"
      +            },
      +            "markers": {
      +              "items": {
      +                "maxLength": 300,
      +                "type": "string"
      +              },
      +              "maxItems": 12,
      +              "type": "array"
      +            },
      +            "projectRoot": {
      +              "maxLength": 4096,
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "projectRoot",
      +            "frameworks",
      +            "confidence",
      +            "ambiguous",
      +            "markers"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 32,
      +        "type": "array"
      +      },
      +      "declared": {
      +        "type": "boolean"
      +      },
      +      "truncated": {
      +        "type": "boolean"
      +      },
      +      "unsupportedPatterns": {
      +        "items": {
      +          "maxLength": 300,
      +          "type": "string"
      +        },
      +        "maxItems": 32,
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "declared",
      +      "candidates",
      +      "truncated",
      +      "unsupportedPatterns"
      +    ],
      +    "type": "object"
      +  }
      +}
    • addedOutput schema / properties / data / required
      Added value: +[
      +  "schemaVersion",
      +  "projectRoot",
      +  "packageManager",
      +  "kind",
      +  "frameworks",
      +  "markers",
      +  "confidence",
      +  "ambiguous",
      +  "frameworkDetections",
      +  "workspace",
      +  "projectCapabilities",
      +  "warnings"
      +]
    • addedOutput schema / properties / data / type
      Added value: +"object"
    • changedOutput schema / properties / error / properties / details / allOf
      Previous value: -[
      -  {
      -    "$ref": "#/definitions/__schema1"
      -  }
      -]New value: +[
      +  {
      +    "$ref": "#/definitions/__schema0"
      +  }
      +]
  3. First observedv0.5.0-next.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already provide readOnly, idempotent, and non-destructive hints, and the description adds specific behavioral context: it will not spawn a process, will not select a child, and distinguishes application markers from dependency candidates. No contradiction exists between the description and the annotations.

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

Conciseness5/5

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

A single dense sentence conveys the action, scope, and behavioral boundaries without filler. The key action is front-loaded, and every phrase contributes to understanding what the tool does and does not do.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a one-parameter, read-only inspection tool with an output schema, the description covers the tool's purpose and exclusions sufficiently. The main missing piece is explicit routing to alternative session/browser tools, but the output schema and annotations fill most operational gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, but the single parameter projectRoot is self-describing and reinforced by 'Inspect the exact root,' clarifying that the argument is the target directory. The description does not add format or constraint details, but for one straightforward root-path parameter this is adequate.

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 names a specific task: inspect the root, classify markers, and report bounded workspace candidates. It also distinguishes itself from session/browser tools by explicitly excluding process start and child selection. The jargon is somewhat dense, but the core purpose is still decipherable.

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

Usage Guidelines3/5

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

The description implies a read-only, pre-flight detection role by noting it does not start a process or select a child, which hints at when to use it versus session/browser tools. However, it does not explicitly name alternatives or state a precondition such as running before web_session_start, so the usage context is only implied.

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