Skip to main content
Glama

Content Search

tm_file_content_search
Read-onlyIdempotent

Search file contents across remote SSH hosts by pattern to locate matching text or files, with recursive and case-sensitive options.

Instructions

Content search (tm_files). Advanced file operations on remote hosts.

Input Schema

NameRequiredDescriptionDefault
modeNoPermission mode (recursive_ops/chmod).755
groupNoGroup (recursive_ops/chown).
host1NoFirst host (diff_compare).
host2NoSecond host (diff_compare).
ownerNoOwner (recursive_ops/chown).
sourceNoSource path (recursive_ops).
patternNoSearch pattern (content_search).
durationNoMonitor duration secs (watch).
usernameNoSSH username.
file_pathNoFile path to compare (diff_compare).
operationNoOperation type: copy, move, delete, list, chmod, chown (recursive_ops).
recursiveNoRecursive search (content_search).
backup_destNoBackup destination (backup).
compressionNoEnable compression (backup).
destinationNoDestination path (recursive_ops/copy/move).
incrementalNoIncremental backup (backup).
max_resultsNoMax results (content_search).
remote_hostNoRemote host.
watch_pathsNoPaths to monitor (watch).
backup_pathsNoPaths to backup (backup).
password_refNoRuntime secret reference for the SSH password.
search_pathsNoDirectories to search (content_search).
identity_fileNoSSH identity file path.
case_sensitiveNoCase-sensitive (content_search).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv3.3.1

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, openWorldHint=true, and destructiveHint=false. The description adds only the vague notion of 'advanced file operations on remote hosts' and does not disclose authentication needs, parameter scoping, or which operations the tool actually performs.

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 definition is short and front-loads 'Content search,' but the second sentence is generic and arguably misleading given the tool's focused name. It is concise, but at the cost of useful specificity.

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

Completeness2/5

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

This is a complex 24-parameter tool with zero required parameters, many parameters belonging to unrelated operations, and no description of SSH/auth expectations. An output schema exists, so return values need not be explained, but the description still does not provide enough context to call the tool confidently.

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 the schema itself documents every parameter. The description adds no parameter semantics, and it does not clarify why a content-search tool exposes parameters for backup, diff, watch, and recursive file operations.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description identifies content search in parentheses and mentions remote hosts, but it immediately broadens to 'Advanced file operations,' which is vague and does not distinguish this tool from adjacent file-operation siblings such as tm_file_recursive_ops, tm_file_watch, tm_file_diff_compare, and tm_file_backup.

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

Usage Guidelines2/5

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

There is no explicit guidance on when to use this tool versus alternatives, no prerequisites, and no exclusions. The name implies content search, but the description never says how that differs from the other file-system siblings.

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