Skip to main content
Glama
Anicodeth

mega-mcp

by Anicodeth

Full-text search inside MEGA files

mega_search_content

Search for text or regex within text files and PDFs stored under a MEGA folder link, and get matching files with line snippets.

Instructions

Search inside text files and PDFs under a MEGA folder link for a query string (or regex). Returns matching files with line snippets. By default PDFs are included; set includePdf:false to skip them (faster).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesText or regex to find inside files.
linkNoPublic MEGA link. Defaults to MEGA_LINK.
regexNoTreat query as a regex.
includePdfNoInclude PDFs in the scan (default true).
maxFilesNoMax files to scan (default 50).
maxMatchesPerFileNoMax snippet lines per file (default 5).
Behavior3/5

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

With no annotations, description carries full burden. It discloses that search uses regex capability and includes PDF handling, but does not mention auth requirements, rate limits, or whether the tool is destructive (not needed). Returns are described as 'line snippets', which is helpful. No contradictions.

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: first defines core purpose, second adds optimization detail. Every word is useful. No fluff.

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

Completeness4/5

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

For a search tool with 6 params and no output schema, the description covers main behavior, regex, PDF handling, and performance. Could mention maxFiles and maxMatchesPerFile bounds or result format, but overall adequate.

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 description coverage is 100%, so baseline is 3. Description adds value by explaining 'line snippets' (not in schema), noting default includePdf=true, and the performance implication of including PDFs. This goes beyond the schema's bare descriptions.

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?

Description clearly states verb ('Search'), resource ('text files and PDFs under a MEGA folder link'), action ('for a query string or regex'), and output ('Returns matching files with line snippets'). Distinguishes from siblings like mega_search (likely broader) and mega_read_file (reads a file, does not search).

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?

Description implies use when full-text search inside files is needed, and notes performance tip ('set includePdf:false to skip them (faster)'). However, it does not explicitly state when not to use this tool versus siblings like mega_search (which may search by filename) or mega_browse (directory listing). No alternatives mentioned.

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/Anicodeth/mega-mcp'

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