Skip to main content
Glama

opencode_find_files

Read-only

Find files and directories by fuzzy name pattern and filter results by type or limit to locate matching paths in a project.

Instructions

Find files and directories by name pattern using fuzzy matching.

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

Input Schema

NameRequiredDescriptionDefault
typeNoFilter by type
limitNoMax results (1-200)
queryYesFile name pattern (fuzzy match)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.2/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=true and idempotentHint=false, so the safety profile is covered. The description adds no behavioral context beyond that: nothing about search scope, ranking of fuzzy matches, case sensitivity, or result ordering. For a search tool with open-world scope, that leaves meaningful ambiguity.

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 zero filler. It is efficiently structured, though its brevity borders on under-specification rather than over-explanation.

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?

The tool is simple, has no output schema, and its annotations and schema are rich, so the description only needs minimal support. However, it omits the search scope (whole workspace vs. project root) and any hint of result semantics, which an agent would want before invoking an open-world fuzzy search.

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 all three parameters (query, type, limit) are already documented in the schema with constraints. The description's 'name pattern'/'fuzzy matching' loosely reinforces the query semantics and 'files and directories' hints at the type filter, but adds no syntax or matching-rule detail beyond the schema.

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 (Find) and resources (files and directories), plus the mechanism (name pattern, fuzzy matching), which distinguishes it from content-oriented siblings like opencode_file_search or opencode_find_symbols. It does not name an alternative explicitly, keeping it just short of a 5.

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?

The phrase 'by name pattern using fuzzy matching' implies the appropriate context (you know part of a filename), but there is no explicit when-to-use, when-not-to-use, or guidance on choosing between this and sibling search tools. Usage must be inferred.

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