Skip to main content
Glama
stackblitz-mcp
by sxzz

list_files

Lists files in a StackBlitz project so you can browse project structure, with an optional path-prefix filter to narrow results.

Instructions

List files in a StackBlitz project, optionally filtered by path prefix

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": {
      "projectRef": "<projectRef>"
    },
    "name": "list_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathNoFilter files by path prefix
projectRefYesStackBlitz project ID or URL

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. "List" implies a non-mutating read, but it does not state whether listing is recursive, whether results are paginated or capped, or whether the project must be resolved/openable first. For a simple read tool this is adequate but not rich.

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 front-loaded sentence with no filler, and the optional-filter qualifier appears in the right place. Nothing could be removed without losing 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 two-parameter read-only listing tool with full schema coverage and no output schema, the definition covers what the agent needs to call it. Return shape and depth (recursive vs. flat) are the only meaningful gaps, and both are minor here.

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 both parameters are already documented; the description reinforces that path acts as a prefix filter rather than an exact match or glob. It adds modest but real meaning over the schema, hence slightly above baseline.

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 verb and resource ("List files") plus the scope ("in a StackBlitz project"), so the operation is unambiguous. It stops short of distinguishing itself from the sibling search_files, which an agent could reasonably confuse with a filtered list.

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?

"Optionally filtered by path prefix" implies the two usage modes (enumerate all vs. narrow by prefix), giving some when-to-use signal. It never says when to prefer search_files over this tool or what happens with a path that matches nothing, so guidance is only implied.

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

Deploy Server

Other Tools