Skip to main content
Glama

Linkly AI

find_paths

Read-only

Locate folder paths in indexed documents by fuzzy keyword match on the directory part of the file path. Returns top folder candidates ordered by file count — pass a distinctive segment of any returned path back to search as path_glob (substring-matched, so *xinWeChat* works as well as a full prefix). Each candidate also carries a ready-to-use path_glob field — pre-quoted for folder names containing glob metacharacters (* ? [); copy it verbatim to match that folder literally. Cloud results include the source library reference (cloud://owner/slug); pass it as library to your follow-up search so the glob is scoped to the right backend.

Call BEFORE search when the user names a container with a fuzzy or cross-language word ("in my WeChat", "Notion notes") and the on-disk path is unknown. Pass multiple variants in patterns in one call (e.g. ["WeChat", "微信", "wxid"]) — patterns are OR-ed and substring-matched. limit caps candidates (default 10, max 50). Skip this tool for pure content queries or file-type filters — call search directly.

Scope: omit library to search paths across your local indexed content (default — Desktop tunnel must be online; cloud libraries are NOT included). Pass library="local://<id>" to scope to one local library, or library="cloud://<owner>/<slug>" to scope to a linked cloud library. To search paths in cloud libraries, call list_libraries first to see what is available, then call find_paths once per cloud library. Note: cloud libraries with a flat structure (no sub-folders) yield no candidates — use search directly instead.

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": {
      "patterns": "<patterns>"
    },
    "name": "find_paths"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of folder candidates to return (default 10, max 50)
libraryNoRestrict to a specific library. Use `local://<library-id>` for a local library, or `cloud://<owner>/<slug>` for a cloud library. Plain string is interpreted as a local library name for backward compatibility. Use list_libraries to see available libraries. Omit to search all local indexed documents.
patternsYesKeywords to substring-match against the file path. Multiple keywords are OR-ed — pass cross-language or spelling variants in one call to maximise recall (e.g. ["WeChat", "微信"], ["WeChat", "wxid", "xinWeChat"]). Case-insensitive for ASCII; CJK matches literally. Max 10 patterns; each up to 64 UTF-8 bytes.
output_formatNoOutput format. Defaults to "markdown" (human-readable); set to "json" for structured JSON (machine-parseable). Sending `null` or omitting the field both yield the default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint, but the description discloses the return shape ('top folder candidates ordered by file count'), a ready-to-use `path_glob` field with pre-quoting behavior for `* ? [`, the `cloud://owner/slug` reference needed for follow-up scoping, and the operational prerequisite that the Desktop tunnel must be online for local searches. It also flags a real failure mode: flat cloud libraries yield no candidates.

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?

Front-loaded with purpose and the routing rule, and the bolded Scope block keeps the multi-backend caveat scannable. It runs long for a 4-parameter tool, with mild redundancy — 'patterns are OR-ed and substring-matched' and the 'default 10, max 50' limit restate the schema verbatim.

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?

There is no output schema, and the description compensates by describing return ordering, the `path_glob` field, and the cloud library reference carried in results. Combined with the local-vs-cloud scoping rules and the flat-structure caveat, an agent has everything needed to call it and act on the response.

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 the baseline is 3; the description earns above that by explaining the round-trip contract — how a returned path segment becomes `path_glob` in a follow-up `search` (substring-matched, so `*xinWeChat*` works) and why `library` must be passed to scope the glob to the correct backend. It repeats some schema content (OR-ed patterns, default 10/max 50) rather than adding to it.

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?

States a specific verb and resource — 'Locate folder paths in indexed documents' — plus the mechanism ('fuzzy keyword match on the directory part of the file path'). It also explicitly distinguishes itself from `search`, so the agent can route between the two without inspecting schemas.

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?

Gives an explicit triggering condition ('Call BEFORE `search` when the user names a container with a fuzzy or cross-language word'), an explicit exclusion ('Skip this tool for pure content queries or file-type filters — call `search` directly'), and an explicit alternative for the cloud case ('call `list_libraries` first... then call `find_paths` once per cloud library'). Nothing about when-not-to-use is left to inference.

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.

Resources