Skip to main content
Glama

find_variable_usage

Read-onlyIdempotent

Search all scripts for GetLocal/SetLocal calls that reference a specified variable name, helping you trace where that variable is read or written.

Instructions

Find all scripts that use Get/SetLocal* functions with a given variable name.

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": {
      "variableName": "<variableName>"
    },
    "name": "find_variable_usage"
  }
}

Input Schema

NameRequiredDescriptionDefault
variableNameYesVariable name to search for

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already establish readOnlyHint and idempotentHint, so the safety profile is covered. The description contributes a real semantic constraint beyond annotations: only Get/SetLocal* call sites are matched, so usage via other mechanisms will not appear in results. It stops short of covering match behavior (exact vs. prefix, case sensitivity) or result shape.

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?

One sentence, front-loaded with the verb and the constraint that actually matters (the Get/SetLocal* scope). Nothing is padded and nothing needs to be re-read.

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 one-parameter read-only search with full schema coverage and clear annotations, the description says enough to invoke it correctly and discloses the matching restriction. Only minor gaps remain, chiefly how variable names are matched and what the result list looks like.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with a single required string parameter, so the baseline is 3. The description only restates the parameter ('with a given variable name') and adds no detail on matching semantics such as exact match, case sensitivity, or whether wildcards are accepted.

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?

Names a specific verb ('Find') and a precise resource ('all scripts that use Get/SetLocal* functions with a given variable name'). The Get/SetLocal* qualifier makes the search semantics concrete enough to separate it from a generic text/reference search, though it never names a sibling to contrast against.

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 phrasing: use it when you know a variable name and want to locate scripts that read or write it. There is no explicit when-not guidance, no mention of what to use for other access patterns (direct variable references, other function families), and no prerequisites or resource-scope limits stated.

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