Skip to main content
Glama

find_queries_by_table

Locate named queries that reference a specific table or column in an Ignition project, helping you assess dependencies before schema or query changes.

Instructions

Find named queries that reference a table or column.

Args: table_name: Table to search for (case-insensitive). column_name: Optional column to require as well. project: Project name; defaults to the active project.

Returns: Matching query 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": {
      "table_name": "<table_name>"
    },
    "name": "find_queries_by_table"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
table_nameYes
column_nameNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 behavioral burden. It does convey that this is a non-mutating lookup returning 'matching query paths,' which sets read-only expectations, but it says nothing about scan scope (e.g. whether script bodies are searched), permissions, or cost on large projects.

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 definition is short and front-loaded with the one-line purpose, then a compact Args/Returns block. Every line earns its place, with only minor redundancy in restating the Returns section already covered by the output schema.

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 three-parameter read-only lookup with an output schema, this is nearly complete: all parameters are explained and the return value is characterized as query paths. The remaining gap is search scope and any differentiation from sibling reference-finding 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 largely does: it documents all three parameters, adds that table_name matching is case-insensitive, clarifies column_name is an additional requirement rather than an alternative, and explains that project defaults to the active project.

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 description states a specific verb and resource: 'Find named queries that reference a table or column.' An agent immediately knows this is a reference-search over named queries. It never distinguishes itself from nearby siblings such as list_named_queries or find_database_references, 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 Guidelines3/5

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

Usage is only implied by the search semantics; there is no explicit statement of when to prefer this over list_named_queries or other find_* reference tools, and no stated prerequisites. The optional 'column_name to require as well' hints at a narrowing pattern but is not framed as guidance.

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