Skip to main content
Glama
grandMA2 MCP
by drohi-r

get_similar_tools

Find tools with similar capabilities to a reference tool by ranking related tools using structural and embedding distance from the last clustering run.

Instructions

Find the most similar MCP tools to a given tool (SAFE_READ).

Uses Euclidean distance in the combined feature space (structural +
embedding) from the last clustering run.

Args:
    tool_name: Name of the reference tool (e.g. "playback_action").
    top_n: Number of similar tools to return (default 5).

Returns:
    str: JSON array of similar tools ranked by distance, with category.

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": {
      "tool_name": "<tool_name>"
    },
    "name": "get_similar_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
top_nNo
tool_nameYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the full burden, and it does a fair job: it marks the tool SAFE_READ, discloses the similarity metric, and states that results derive from the last clustering run (a staleness caveat an agent would otherwise miss). It omits failure behavior for an unknown tool_name or a missing clustering run, which keeps it from 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?

The core purpose and method are front-loaded in the first two lines, then Args/Returns give scannable detail with no filler sentences. The docstring formatting is slightly heavy for a two-parameter tool, but nothing is meaningfully redundant.

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?

An output schema exists, yet the description still briefly characterizes the return value (JSON array ranked by distance, with category), which is a helpful redundancy rather than a burden. Combined with the stated clustering-run dependency, an agent has enough to invoke it correctly; only error/empty-result behavior is unaddressed.

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 documents both parameters: tool_name is the reference tool with a concrete example ("playback_action"), and top_n is the count of similar tools to return. It does not state bounds for top_n (max value, behavior when larger than the corpus) or what happens if tool_name is not found, leaving a small gap.

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 the MCP tools most similar to a reference tool, and it even names the algorithm (Euclidean distance in a structural + embedding feature space). That is much more concrete than a generic 'search tools'. It does not distinguish itself from any sibling (e.g. recluster_tools or get_tool_metrics), 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: 'from the last clustering run' signals a precondition, namely that a clustering run must exist, but the description never says what to do when none exists or whether to call recluster_tools first. There is no explicit when-to-use / when-not-to-use guidance and no named alternative for a different kind of similarity lookup.

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