Skip to main content
Glama

Memoreal — Deterministic AI Memory & Code Intelligence MCP

Find Symbol References

find_references
Read-onlyIdempotent

Find all definitions, callers, and references for a specific code symbol across indexed memories. Use before refactoring or changing a function signature to trace every caller and reference.

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

Input Schema

NameRequiredDescriptionDefault
symbolYesExact function, class, or method identifier to locate.
namespaceYesLogical workspace namespace.

Output Schema

NameRequiredDescriptionDefault
totalYes
symbolYes
namespaceYes
referencesYes
definitionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds that results span "indexed memories," implying results are limited to the index's contents, but says nothing about index freshness, result volume, or ordering. Given the annotations carry the main behavioral burden, this is adequate but thin.

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?

Two sentences, zero filler, with the capability stated first and the usage cue second. Nothing is repeated from the schema or annotations and every clause carries information.

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 two-parameter, read-only lookup with full schema coverage, rich annotations, and an existing output schema, the definition covers what the tool returns conceptually and when to invoke it. The remaining gap is ambiguity handling — e.g., what happens when a symbol name resolves to multiple definitions or namespaces — which is not addressed.

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 both parameters explicitly documented in the schema itself, so the baseline is 3. The description adds marginal context by framing the symbol as something used to trace "every caller and reference," but gives no guidance on identifier format, qualification, or namespace scoping beyond what the schema already says.

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 all definitions, callers, and references for a specific code symbol") plus scope ("across indexed memories"), which is far more than a restatement of the name. It does not explicitly distinguish itself from adjacent siblings such as call_tree, implementors, or dead_code, so an agent must infer the boundary from names alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives a clear triggering context: use before refactoring or changing a function signature to trace every caller and reference. That is a concrete when-to-use cue. It stops short of stating when NOT to use it or naming an alternative tool for narrower questions like a pure call hierarchy or interface implementors.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.