Skip to main content
Glama

search_source

Search live Luau source using literal text, patterns, symbols, or method calls, returning line-numbered snippets.

Instructions

Searches live Luau source by literal text, Luau pattern, exact symbol frontier, or method call with line-numbered snippets.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
limitNoMaximum results to return.
queryYesText, symbol, method, or Luau pattern to search.
regexNoAlias for Luau pattern mode.
rootsNoStudio service roots to scan.
offsetNoZero-based result offset.
class_namesNoOptional Script, LocalScript, or ModuleScript filters.
context_linesNoContext lines around each match.
path_containsNoOptional case-insensitive path substring.
case_sensitiveNoUse case-sensitive matching.
Behavior3/5

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

No annotations are provided, so the description must carry the burden. It adds useful context like 'live' source and 'line-numbered snippets', but does not disclose whether the operation is read-only or any side effects. As a search tool, this is moderately transparent but not comprehensive.

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?

The description is a single, front-loaded sentence with no redundant words. It packs essential information about the tool's purpose and modes efficiently.

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?

While there is no output schema, the description mentions 'line-numbered snippets' which covers return format partially. The schema fills in parameter details, and the description provides enough context for a search tool. It could mention limitations like search scope, but is adequate overall.

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 high (90%), so baseline is 3. The description adds meaningful semantics by explaining the mode types (literal text, Luau pattern, exact symbol frontier, method call) which directly maps to the 'mode' enum, and 'line-numbered snippets' relates to context_lines. This adds value beyond the schema.

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

Purpose4/5

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

The description clearly states the tool's function: 'Searches live Luau source' with four specific modes (literal, pattern, symbol, method). It is specific and distinct from sibling analysis tools, though it does not explicitly name alternatives.

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?

The description implies usage for searching source code, and the various modes give some context, but there are no explicit when-to-use vs alternatives or exclusions. Sibling tools are analysis-oriented, so the intent is somewhat clear, but not explicitly guided.

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/DogTheSeller/RobloxSuperMCP'

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