Skip to main content
Glama

search_script_functions

Search function definitions across Ignition project scripts by name or fragment to locate modules, line numbers, and arguments.

Instructions

Search for function definitions across project scripts.

Args: query: Function name or fragment (case-insensitive). project: Project name; defaults to the active project.

Returns: Matches with module, function name, line and arguments.

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_script_functions"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes
projectNo

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?

No annotations are provided, so the description carries the full burden. It discloses case-insensitive matching and that project defaults to the active project, and 'search' implies a non-destructive read. It says nothing about scope limits (all scripts vs. loaded scripts), result caps, or how partial matches are ranked.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the purpose in the first sentence, then args and returns in a compact docstring layout. Every line carries information; the Args/Returns scaffolding is mild overhead rather than filler.

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

Completeness5/5

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

With only two parameters and an output schema to describe return values, the description covers purpose, both parameters, defaults, and matching behavior — enough for an agent to call it correctly without opening the schema.

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 compensate, and it does: both parameters are explained, including that query is a case-insensitive name or fragment and that project falls back to the active project — the latter adds real meaning beyond the schema's bare null default. It stops short of specifying match semantics beyond 'fragment' (e.g. substring vs. prefix).

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?

States a specific verb+resource: searching 'function definitions across project scripts', which is meaningfully narrower than a generic text search. It does not name a sibling (e.g. search_project_text) to draw the boundary explicitly, so it falls short of a 5.

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 name and the 'query: Function name or fragment' line, and the project default is useful context. However, it never says when to prefer this over search_project_text or read_project_script, and gives no exclusions or prerequisites.

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