Skip to main content
Glama
scipq-mcp
by gdressino

references

Read-onlyIdempotent

Find all exact uses of a Java symbol grouped by file, with line and enclosing method, and scope results by package or source path.

Instructions

Every use of a symbol (like findReferences), grouped by file, with the line of code and [the enclosing method]. Exact: only this symbol, not same-named members of other types. Overrides are separate symbols: see family / callers. Large results open with a summary.

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": {
      "symbol": "<symbol>"
    },
    "name": "references"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax items
scopeNoOnly results in this package (prefix or glob) or, with '/', source path glob
offsetNoItems to skip
symbolYesName or exact SCIP symbol (forms: see the server instructions)
by_nameNoAppend what the index cannot see: the name (or bean property name) inside string literals of .java files and in other files matching by_name_globs, and javadoc {@link}/@see mentions
project_rootNoCheckout or worktree to query (any directory in it); default: where the server started
by_name_globsNoFile globs for by_name, e.g. ['*.java', '*.xml']. Default *.java
exclude_importsNoLeave out import lines (default: yes for types, no otherwise)
include_definitionsNoAlso print where it is defined

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the bar is lower, and the description still adds real behavior: results are grouped by file, each hit shows the line plus its enclosing method, and "Large results open with a summary" warns about output shape for big result sets. It does not quantify what counts as large or describe ordering, which keeps it below a 5.

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?

Four short sentences, front-loaded with the core behavior, using telegraphic phrasing ("see family / callers") that is dense but readable. Every sentence carries content; only the bracketed "[the enclosing method]" formatting is slightly awkward.

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?

With nine parameters, annotations, and no output schema, the description covers the essentials: what is returned, exactness of matching, grouping, and large-result behavior. Remaining gaps (pagination interaction, what the summary contains, how by_name extends results) are mostly covered by the schema descriptions.

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%, so the schema already documents limit, scope, offset, by_name, project_root, and the rest. The description only indirectly reinforces the symbol parameter ("Exact: only this symbol") and says nothing about the semantics of by_name, scope, or exclude_imports beyond what the schema states. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Every use of a symbol (like findReferences), grouped by file, with the line of code and [the enclosing method]" states the verb (find usages), the resource (a symbol), and the output shape in one sentence. It further narrows the resource with "Exact: only this symbol, not same-named members of other types" and points override lookups to family/callers, so an agent can distinguish it from siblings without opening a schema.

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?

The description implies usage (find every use of one exact symbol) and gives one explicit exclusion, routing overrides to family / callers. It never addresses the more likely ambiguity for an agent, references versus callers, nor does it state when the broader name-based search (by_name) is appropriate. Guidance is present but incomplete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.