Skip to main content
Glama

Open Kioku Search Files

search_files
Read-onlyIdempotent

Find files by name, path, or content keywords using the indexed search. Switch to graph mode for graph-node documents.

Instructions

Search indexed file names and contents for specific keywords or file path patterns, returning ranked file matches with path, size, and language metadata. Set mode=graph to search graph-node documents through the same index. Use when the target is a file path, filename, or file-content keyword rather than a code symbol. Set mode=graph to search indexed graph-node documents. Do NOT use for browsing all files without a query (use list_files), for code snippet search (use search_code), or for exact regex line matching (use regex_search). This is read-only and searches the local Tantivy index only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNoSearch mode. 'code' (default) searches file names and contents; 'graph' searches indexed graph-node documents including entity names and properties.
limitNoMaximum number of file results to return. Defaults to 20, capped at 100.
queryYesThe search query to match against file paths and file contents. Accepts filenames, directory fragments, or content keywords.
offsetNoNumber of matching file results to skip before returning. Defaults to 0.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
valueNoWrapped non-object output, used for Markdown, TOON, or scalar responses.
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is clear. The description adds value by stating it searches the local Tantivy index only, and mentions ranking and metadata in results, providing context beyond annotations.

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?

The description is well-structured, front-loaded with the main purpose and key details, followed by mode explanation and clear exclusions. It is concise for the amount of information conveyed, with no redundant sentences.

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?

Given the tool's complexity (search with modes, 4 parameters, output schema exists), the description is complete. It covers the scope, result metadata, mode behavior, and limitations (local index) without needing to repeat output schema details.

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 parameters are already documented. The description adds meaning by explaining the 'mode' parameter and its use cases, and provides usage context that clarifies when to invoke the tool with different parameters. It does not repeat schema details but adds contextual semantics.

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 clearly states that the tool searches indexed file names and contents for keywords or file path patterns, returning ranked matches with metadata. It explicitly distinguishes from siblings by stating not to use for browsing all files (list_files), code snippet search (search_code), or regex line matching (regex_search).

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?

The description provides explicit guidance on when to use the tool (for file path, filename, or file-content keyword) and when not to use it, listing alternative tools for specific cases (list_files, search_code, regex_search). It also explains the mode=graph usage for graph-node documents.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/shivyadavus/open-kioku'

If you have feedback or need assistance with the MCP directory API, please join our Discord server