Skip to main content
Glama
aferreiraguido

javascript-mcp-server

refresh_js_project

Rescan the file tree to incrementally update the project analysis, re-reading only files whose size or modification time changed.

Instructions

Rescans the file tree and incrementally syncs the ts-morph project: only re-reads files whose size or mtime changed.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesName or path of the loaded project
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses that the operation is incremental and only re-reads files with changed size or mtime, which is useful behavioral insight. It does not mention whether it mutates the in-memory project or what happens if the project is not loaded, but the parameter description mitigates the latter.

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?

The description is a single sentence that leads with the main action ('Rescans the file tree') and immediately provides the key behavioral detail ('incrementally syncs'). Every phrase adds value, and there is no redundant information.

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 simple tool with one parameter and no output schema, the description sufficiently explains the core operation and its incremental behavior. It does not describe return values, but for a refresh action this is not a significant gap. The context of being a project-management tool is clear from the sibling tools and parameter description.

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?

The only parameter 'name' is fully described in the schema as 'Name or path of the loaded project', covering 100% of parameter documentation. The tool description adds no further meaning to this parameter, so the baseline score of 3 applies.

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?

The description clearly states the tool rescans the file tree and incrementally syncs the ts-morph project, specifying that only changed files are re-read. This uses a specific verb ('rescans', 'syncs') and resource ('ts-morph project'), and clearly differentiates it from sibling tools like load_js_project and unload_js_project.

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?

The description implies the tool is used to refresh an already-loaded project after file changes, with the parameter requiring a loaded project. It provides clear context for when to use it but does not explicitly state exclusions or alternatives, such as 'use this instead of reloading the entire project with load_js_project'.

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/aferreiraguido/javascript-mcp-server'

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