Skip to main content
Glama

find_ai_related_scripts

Scans C# scripts for AI/ML patterns such as Sentis, ML-Agents, NavMesh, behavior trees, ONNX, and LLM API strings to locate relevant Unity code.

Instructions

Scan C# scripts for AI/ML patterns: Sentis, ML-Agents, NavMesh, behavior trees, ONNX, LLM API strings.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "find_ai_related_scripts"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.5.2

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It discloses what counts as a match (a useful behavioral detail) but says nothing about whether the scan is regex- or literal-based, whether matches come from comments/strings as well as code, or any cost/limit on a whole-project scan.

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 sentence with an efficient colon-delimited pattern list. No filler, no restatement of the title, and the pattern enumeration earns its space by defining match criteria.

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

Completeness3/5

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

For a simple no-arg read tool this is close, but with no output schema the description should say what comes back (script paths only, or paths plus matched lines/snippets) and roughly how broad the scan is. Without that, an agent cannot predict result shape before calling.

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?

Zero parameters, so there is nothing to disambiguate; the description implicitly establishes project-wide scope. Baseline 4 applies for a parameterless tool, with no contradictory scoping claims.

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?

"Scan C# scripts for AI/ML patterns" gives a specific verb (scan) and resource (C# scripts), then enumerates the concrete patterns detected (Sentis, ML-Agents, NavMesh, behavior trees, ONNX, LLM API strings). This separates it from content-agnostic siblings like list_scripts or find_scripts_by_content, though it never names an explicit alternative.

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 only implied: an agent can infer it should call this when hunting for AI-related code. There is no statement of when NOT to use it, nor any pointer to get_ai_ml_package_inventory or find_scripts_by_content as the package-level or generic-content alternative.

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