Skip to main content
Glama

Start a search

fs_search_start
Read-only

Use this when the user wants file names or text found in a large approved folder, beyond fs_search's limits (300 files). It walks the whole folder within timeoutMs and streams the results; a short search returns them with its summary, a long one returns its running IDs in about two seconds. Read every result (one JSON line each, the summary last) with operation_output (stream stdout, offset 0, then nextOffset) and stop it with operation_cancel. Read-only. Needs the sessionId from execution_session_open and a new operationId; each call is metered as one execution. A short result is returned inline within about two seconds; otherwise keep the returned IDs for operation_status and operation_output and do not resend the call.

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": {
      "sessionId": "<sessionId>",
      "operationId": "<operationId>",
      "query": "<query>"
    },
    "name": "fs_search_start"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNocontent (default): lines in files; files: file and folder namescontent
pathNoPath relative to the selected project root (or the workspace root without a project target); omit for the root.
queryYesText to find, or a regular expression when regex is true
regexNoTreat query as a JavaScript regular expression (default false); each file gets 2 seconds
sessionIdYesexecutionSessionId returned by execution_session_open
timeoutMsNoStop after this long, 1000-600000 ms (default 60000)
deadlineAtNoOptional UTC admission deadline at most 60 seconds ahead (queue start timeout, NOT process execution lifetime)
maxResultsNoStop after this many results, 1-50000 (default 1000)
filePatternNoOnly files whose name matches, for example *.ts or *.cs|*.csproj (optional)
operationIdYesA new random UUID v4 for this call; reuse it only to retry this same call
contextLinesNoLines before and after each match, 0-5 (default 0)
caseSensitiveNoMatch letter case (default false)
includeHiddenNoAlso search names starting with a dot (default false)
idempotencyKeyNoOptional retry key, 8-128 chars of [A-Za-z0-9._:-]; defaults to operationId
skipDirectoriesNoFolder names never entered (default .git, node_modules, .local-commander, .local-release, .next, coverage)
efficiencyProfileNoOptional, unverified label of the client's model, recorded as display metadata in the device owner's local activity statistics. Omit when unknown. Never send credentials or conversation content.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered; the description still adds substantial context beyond them: streaming behavior, the two-second inline-vs-running-ID split, the metered-as-one-execution cost, and the retry/idempotency expectation. That is the kind of operational detail annotations cannot express.

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

Conciseness3/5

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

The opening clause is well front-loaded and the operational instructions are ordered sensibly, but the short-vs-long return behavior is stated twice ('a short search returns them with its summary, a long one returns its running IDs in about two seconds' and again 'A short result is returned inline within about two seconds; otherwise keep the returned IDs'), and 'Read-only' restates the annotation. The repetition costs clarity against a dense single block.

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

Completeness5/5

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

For a 16-parameter streaming tool with no output schema, the description covers what an agent most needs: how results arrive (one JSON line each, summary last), how to read them, how to stop, and the cost model. Nothing required to invoke or follow up is missing.

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 100%, so all 16 parameters are documented in the schema itself and the baseline of 3 applies. The description only touches timeoutMs and the query/mode distinction implicitly, adding no syntax, defaults, or format guidance beyond what the schema already provides.

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 states a specific verb and resource ('file names or text found in a large approved folder') and explicitly positions it against the sibling it supersedes: beyond fs_search's 300-file limit. An agent can distinguish fs_search_start from fs_search without opening either schema.

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

Usage Guidelines5/5

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

It names the triggering condition (large folder, beyond fs_search limits), the prerequisites (sessionId from execution_session_open, a new operationId), and the follow-up path (operation_output with stream stdout, offset 0, then nextOffset; operation_cancel to stop). It also warns not to resend the call for long searches, which is exactly the misuse an agent would otherwise commit.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.