Skip to main content
Glama

Search inside files

tarkle_search_files
Read-onlyIdempotent

Search the words INSIDE the workspace's files (PDF, Word, text, Markdown, subtitles, scanned pages, and what is said in audio and video recordings) and get the best matching passages, each with fileId, name, page and a snippet; a recording's snippet starts with its time as [m:ss] and has no page. Read more of a hit with tarkle_read_file. coverage says how many files were searched and how many cannot be searched as text (pictures, archives, recordings with no speech) or are still waiting: if waiting is above 0, search again. Only files this person can open are searched. Searching files Tarkle has already read uses no credits; a scan or recording it has not read yet is read first, which uses the workspace's AI credits.

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

Input Schema

NameRequiredDescriptionDefault
limitNoHow many passages to return. Defaults to 8.
queryYesThe words to look for inside the files.
folderIdNoOnly search inside this folder and its subfolders (from tarkle_list_folders).
llm_modelNoThe model identifier you are running as, for example "claude-opus-4-8" or "gpt-5.2". Pass "unknown" if you are not certain. Recorded for the server developer's analytics.
workspaceIdYesThe workspace's id, from tarkle_list_workspaces.

Output Schema

NameRequiredDescriptionDefault
noticeNo
resultsNo
coverageNo

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent, but the description adds non-obvious behavior: permission scoping ('Only files this person can open are searched'), credit billing (free for already-read files, AI credits consumed for unread scans/recordings), and coverage/waiting semantics tied to async indexing. These are substantive operational facts an agent cannot get from the annotations or schema.

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?

Core purpose and return shape are front-loaded, and the dense single paragraph avoids repetition. It is on the long side with several clauses packed together (coverage, credits, permissions), which slightly hurts scannability but every sentence carries information.

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 an output schema exists, the description needn't detail return values, yet it still explains snippet formatting and the coverage field. Combined with media coverage, permission scoping, credit implications, and retry behavior, an agent has everything needed to call it correctly.

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 parameters (limit, query, folderId, llm_model, workspaceId) are already well documented and the description adds little per-parameter meaning. It clarifies result semantics (snippet time prefix, absent page for recordings) but not input semantics beyond the schema.

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 — searching words INSIDE files — and enumerates the covered media (PDF, Word, text, Markdown, subtitles, scanned pages, audio/video speech), which distinguishes it from any filename/listing search. It also specifies the return shape (fileId, name, page, snippet) so an agent knows exactly what a hit looks like.

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

Usage Guidelines4/5

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

Gives explicit follow-up routing ('Read more of a hit with tarkle_read_file') and a concrete retry rule ('if waiting is above 0, search again'). It does not explicitly contrast with a list/name-based search or state when not to use it, so it falls just short of full when/when-not guidance.

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.