Skip to main content
Glama
Dissimilis

DirForge

search_by_size

Find files within a specified size range. Filter by minimum and maximum bytes, with optional glob patterns and depth limits.

Instructions

Find files within a size range. Supports min, max, or both. At least one of minSize or maxSize is required. Results sorted by size descending.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNoRelative path within the file server root. Empty string for root.
minSizeNoMinimum file size in bytes (inclusive).
maxSizeNoMaximum file size in bytes (inclusive).
maxResultsNoMaximum results to return (default: 20, max: 100).
maxDepthNoMaximum depth to traverse (default: 10, max: 10).
includeNoComma-separated glob patterns to include (e.g. '*.log, *.txt'). Only matching files are returned. Supports * and ? wildcards. Empty means all files.
excludeNoComma-separated glob patterns to exclude (e.g. 'node_modules, *.tmp'). Matching files and directories are skipped. Supports * and ? wildcards.
Behavior2/5

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

With no annotations, the description carries full burden but only states it finds files and sorts results. It gives no insight into read-only behavior, permission needs, or side effects. It is minimally informative for a presumably safe read operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, no filler. The first sentence delivers the purpose, and the second adds two critical constraints. Every word earns its place.

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?

Despite good schema coverage, the description omits important context: there is no output schema, yet it doesn't hint at return format, pagination (maxResults default 20), directory traversal (maxDepth), or how include/exclude patterns interact with size filtering. For a tool with 7 parameters, this is incomplete.

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 described. The description adds value by specifying 'At least one of minSize or maxSize is required' (a constraint not in schema) and 'Results sorted by size descending' (behavioral detail). This goes beyond the baseline 3.

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 'Find files within a size range', immediately identifying the tool's purpose. This distinguishes it from siblings like search_by_date or find_largest, which target other criteria.

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?

It mentions support for min, max, or both and requires at least one size parameter, but does not specify when to use this tool instead of alternatives like find_largest (for top files) or search (for name-based queries). No explicit exclusions or context for directory traversal.

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/Dissimilis/DirForge'

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