Skip to main content
Glama
c0sc0s
by c0sc0s

Get Web Project Context

get_web_project_context

Analyze local web projects to identify entrypoints, routing surfaces, configuration files, and framework details for frontend development context.

Instructions

Inspect a local root path and return frontend-oriented context such as entrypoints, routing surfaces, config files, and framework hints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootYes

Implementation Reference

  • Implementation of the getWebProjectContext tool logic, which inspects a repository and identifies the best package context.
    export function getWebProjectContext(root: string): WebProjectContextResult {
      const discovery = inspectRepository(root);
      const candidate = selectBestContextPackage(discovery.packages, discovery.root);
    
      if (!candidate) {
        return {
          root: discovery.root,
          packageRoot: null,
          kind: "unknown",
          confidence: "low",
          frameworkHints: [],
          entryPoints: [],
          routingSurfaces: [],
          configFiles: [],
          signals: [],
        };
      }
    
      return {
        root: discovery.root,
        packageRoot: candidate.packageRoot,
        kind: candidate.kind,
        confidence: candidate.confidence,
        frameworkHints: deriveFrameworkHints(candidate),
        entryPoints: candidate.entryPoints,
        routingSurfaces: candidate.routeFiles,
        configFiles: candidate.configFiles,
        signals: candidate.signals,
      };
    }
Behavior3/5

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

Implies read-only operation through verbs 'inspect' and 'return', which compensates for missing annotations. However, lacks critical behavioral details: whether it follows symlinks, handles missing paths (error vs empty result), recursion depth, or performance characteristics for large projects.

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?

Single sentence, front-loaded with action verbs, zero redundancy. Every clause adds distinct value: action (inspect), target (local root path), and return value specifics (frontend context with four concrete examples).

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

Completeness3/5

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

With no output schema, the description partially compensates by listing example return categories (entrypoints, etc.), giving callers conceptual understanding. However, for a tool with 0% schema coverage and no annotations, it should explicitly document the 'root' parameter requirements and return structure/schema.

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% (no descriptions), so the text must carry full load. The phrase 'local root path' in the description implicitly maps to the 'root' parameter and clarifies it expects a filesystem path. However, it doesn't specify expected format (absolute vs relative), trailing slash behavior, or validation rules beyond the schema's 'minLength: 1'.

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?

Excellent specificity with concrete examples of returned context (entrypoints, routing surfaces, config files, framework hints). The 'frontend-oriented' qualifier effectively distinguishes this from the general 'discover_repository_structure' sibling. Minor gap: could explicitly state this is for local filesystem inspection versus remote.

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

Usage Guidelines2/5

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

No guidance on when to use this versus 'discover_repository_structure' or other siblings. Given the overlap in scanning directories, explicit differentiation (e.g., 'Use this instead of discover_repository_structure when you need frontend-specific analysis') would prevent incorrect selection.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/c0sc0s/agent-workspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server