Skip to main content
Glama
stackblitz-mcp
by sxzz

search_files

Searches file contents in a StackBlitz project by query, with options for regex, case-sensitive matching, and result limits.

Instructions

Search for content within files of a StackBlitz project

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>",
      "query": "<query>"
    },
    "name": "search_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesSearch query string
regexNoTreat query as regex
maxResultsNoMaximum number of results
projectRefYesStackBlitz project ID or URL
caseSensitiveNoCase-sensitive search

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations provided, the description carries the full behavioral burden, yet it says nothing about read-only/non-destructive nature, whether searches span all project files, how regex or case sensitivity affect behavior, or what the result payload looks like. It implies a read operation but discloses nothing beyond the one-line purpose.

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?

A single front-loaded sentence with no wasted words, and the scope (StackBlitz project) appears immediately. Its brevity borders on under-specification rather than being strictly concise.

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?

For a five-parameter search tool with no annotations and no output schema, the definition leaves gaps: nothing about result shape (file paths, match context) or how maxResults and regex interact with performance. The 100%-covered schema compensates for parameter details, keeping it merely adequate.

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 description coverage is 100%, so query, regex, maxResults, projectRef, and caseSensitive are already documented in the schema; the description adds no extra semantics. Baseline 3 applies when the schema does the heavy lifting.

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 states a specific verb and resource ('Search for content within files') and scopes it to a StackBlitz project, which is more precise than a bare name restatement. It stops short of differentiating itself from siblings like list_files or read_file, so an agent must infer which one to pick.

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?

There is no explicit when-to-use guidance, no exclusions, and no mention of alternatives such as list_files or read_file. Only weak implied usage ('search for content') exists, leaving selection between siblings to inference.

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