Skip to main content
Glama

search_project_text

Search Ignition project files for literal text or regular expressions, including inherited parent projects, to locate matching lines and resource paths.

Instructions

Search project files with a literal string or regular expression.

Args: query: Literal text or regex pattern. project: Project name; defaults to the active project. regex: Treat query as a regular expression. case_sensitive: Match case exactly (default is case-insensitive). include_parents: Also search inherited parent projects. max_results: Maximum number of matches (capped at 1000).

Returns: Matching files and lines with project-relative resource paths.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "query": "<query>"
    },
    "name": "search_project_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
regexNo
projectNo
max_resultsNo
case_sensitiveNo
include_parentsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose useful behavior such as the 1000-result cap, case-insensitive matching by default, and that parent projects are searched by default. It says nothing about permissions, performance on large projects, binary/large-file handling, or whether truncation is signaled when the cap is hit, so it exceeds bare minimum but leaves real gaps.

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?

A single front-loaded purpose sentence followed by a compact Args/Returns block; every line is scannable and nothing is redundant filler. The structure matches how an agent consumes parameter guidance.

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 six-parameter read-only search tool with an output schema present, the definition covers purpose, all parameter semantics, key defaults, and the result cap, which is enough to invoke it correctly. The remaining gap is competitive routing — why this search rather than a sibling search — plus any note on truncation.

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 0%, so the description must supply all parameter meaning, and it documents every one of the six parameters with semantics beyond the titles — default to the active project for 'project', inherited parents for 'include_parents', exact-case matching for 'case_sensitive', and the 1000 cap on 'max_results'. It stops short of specifying the regex dialect or escaping expectations for 'regex'.

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 first line gives a specific verb and resource ('Search project files') plus the matching mode ('literal string or regular expression'), which is clearer than a bare name restatement. It implicitly separates itself from siblings like search_script_functions or docs_search by scoping to project files, but never names or contrasts those 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?

Usage is implied by the tool's scope — search text across project files, optionally including inherited parents — but there is no explicit statement of when to prefer this over docs_search, search_script_functions, or search_tags. An agent must infer the boundary from the sibling names alone.

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

Deploy Server

Other Tools