Skip to main content
Glama

find_script_references

Locate where a function or symbol is referenced across an Ignition project and its parents to trace dependencies before editing scripts.

Instructions

Find where a function or symbol is referenced in a project.

Args: function_name: Symbol to search for. project: Project name; defaults to the active project.

Returns: Matching resources and lines across the project and its parents.

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": {
      "function_name": "<function_name>"
    },
    "name": "find_script_references"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
function_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add one genuine behavioral fact – results include the project's parent scopes, not just the project itself – which an agent could not infer from the schema. However it says nothing about read-only-ness, result limits, or performance on large projects, leaving meaningful gaps for an unannotated tool.

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?

The docstring is short and front-loaded with the purpose sentence, then Args and Returns. The Args/Returns scaffolding is slightly heavier than necessary for two parameters, but every line carries information and there is no filler.

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?

An output schema exists, so return structure is already handled, and the description covers both parameters plus the search scope including parent projects. For a simple two-parameter read-style lookup this is largely sufficient; the missing piece is guidance on choosing this over sibling search tools.

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: 'function_name' is explained as the symbol to search for and 'project' is explained as defaulting to the active project, which resolves the meaning of the null default in the schema. Minor ambiguity remains because the prose says 'function or symbol' while the parameter is named function_name.

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 states a specific verb and resource: find references to a function or symbol within a project. The Returns clause adds scope ('across the project and its parents'), which clarifies it is an inheritance-aware search. It does not distinguish itself from near-neighbors such as find_script_dependencies or search_script_functions, so it stops 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 Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no when-not-to-use, and no named alternative. The agent must infer from the name alone whether to reach for this tool or for a sibling like find_script_dependencies or search_script_functions. Only the implicit signal 'symbol to search for' hints at the use case.

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