Skip to main content
Glama

find_database_references

Locate all project resources and lines that reference a specified database connection, optionally within a chosen project, to trace dependencies before changes.

Instructions

Find project resources that reference a database connection.

Args: connection_name: Connection name to search for. project: Project name; defaults to the active project.

Returns: Matching resources and lines.

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": {
      "connection_name": "<connection_name>"
    },
    "name": "find_database_references"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNo
connection_nameYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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 behavioral burden, and it discloses little beyond the fact that results are "matching resources and lines." It does not say whether the search is read-only and safe (only implied by "Find"), whether it is project-wide or filtered, what limits or pagination apply, or what permissions are required for the requested project.

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?

Short and front-loaded, with the purpose stated first and parameters grouped under an Args block. The docstring scaffolding ("Args:", "Returns:") adds mild noise, especially since a return schema already exists, but nothing is padded.

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 two-parameter read-only search the definition is workable, and the presence of an output schema means return values need not be spelled out. However, an unannotated tool searching a whole project should say which resource types are scanned and how the result set is bounded, and neither is covered.

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 partly does: it explains that connection_name is the name to search for and, more usefully, that project defaults to the active project — semantics the schema only expresses as a null default. The connection_name text is close to a restatement of the field title, so it stops short of the top score.

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?

"Find project resources that reference a database connection" gives a specific verb (find) and a specific relationship to search on, which separates it from siblings like find_tag_references or find_alarm_tag_references. The one gap is that "project resources" is left generic, so the agent cannot tell whether the search covers scripts, views, alarms, or all of them.

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 statement of when to reach for this tool rather than a sibling such as find_script_references, and no prerequisites or exclusions. Usage is only implied by the verb "Find"; the agent must infer the selection conditions itself.

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