MCP server that searches files in directories for string patterns with support for single-depth scanning, extension filtering, case-insensitive search, whole-word matching, context lines, and multi-line search
The 'checkfor' tool has a complete input schema with all parameters properly typed and described, and a functional tool description. However, the description is generic and lacks critical actionable detail for LLM decision-making. The tool lacks output schema documentation, making it difficult for agents to understand the structure of results before calling. No error handling guidance, recovery hints, or constraints on numeric/enum parameters are present. Parameter descriptions are adequate but could be more precise about constraints and formats. The naming is verb-forward ('checkfor') but is non-standard compared to Arcade baselines (expected: 'search_files', 'search_text', or 'grep_files'). Overall, this is a functional but mediocre tool definition, it meets minimum viable quality but falls short of production-grade standards for agent integration.
Search files in directories for a string pattern. Single-depth (non-recursive) scanning with optional extension filtering, case-insensitive search, whole-word matching, context lines, and multi-line search.
Tool naming is non-standard and ambiguous. 'checkfor' does not follow verb_noun convention (e.g., 'search_files', 'grep_text', 'search_pattern'). LLMs expect action verbs (get, search, list, create) at the start; 'checkfor' is a domain-specific name that doesn't immediately convey the action to unfamiliar agents.
Output schema is not documented. The tool returns a JSON structure (Result -> Directories -> DirectoryResult -> FileMatch -> Match) but there is no schema documentation visible in the tool definition or description. Agents cannot predict the response structure, limiting their ability to chain this tool's output to downstream tools.
No error handling or recovery guidance. The tool description does not explain what errors might occur (e.g., directory not found, permission denied, no matches) or how agents should respond. Agents have no actionable guidance on retrying or falling back.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | D | 52 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 0 | - | v1 |
Parameter 'context' (integer) lacks explicit bounds and validation guidance. Description says 'Number of context lines before and after each match. Optional, defaults to 0.' but does not specify min/max values. LLMs may pass arbitrary negative or excessively large integers, causing unexpected behavior or performance issues.
Tool description is generic and lacks actionable intent guidance. Current: 'Search files in directories for a string pattern. Single-depth (non-recursive) scanning with optional extension filtering, case-insensitive search, whole-word matching, context lines, and multi-line search.' Does not explain WHEN to use this tool instead of alternatives, prerequisites, or what results mean. LLMs need explicit guidance on tool selection criteria.
Parameter 'exclude' accepts an array of strings but lacks constraint documentation. Description says 'Array of strings to exclude from results' but does not explain whether these are regex patterns, literal strings, or substring matches. LLMs will guess, leading to incorrect calls.
Parameters 'dir' and 'file' have backwards-compatibility notes ('Can also accept a single string for backwards compatibility') in descriptions. This signals API versioning debt and creates ambiguity for LLMs, they cannot predict whether to pass an array or string. Best practice: accept ONLY arrays (consistent type), with documentation stating this clearly.