Skip to main content
Glama

Find similar domains

aimrank_find_similar_domains
Read-onlyIdempotent

Find public domains most similar to a query or a known domain.

Use query for free-text search ("pharma evaluation") OR domain_id to find domains similar to one you already know. Exactly one must be provided.

TF-IDF + cosine similarity over name + description + category + declared constitution + objectives text. Cheap (no embedding API calls), 5-minute in-process cache. Only public domains are searched / returned. Score in [0, 1] — typical "useful match" threshold is ≥0.15; "near duplicate" is ≥0.5.

api_key is optional on the public endpoint; on /mcp/mcp a missing key is refused.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "aimrank_find_similar_domains"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryNo
api_keyNo
domain_idNo
min_scoreNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover read-only/idempotent/open-world, and the description adds substantial behavior beyond them: TF-IDF + cosine similarity scoring, the exact fields matched, no embedding API cost, a 5-minute in-process cache, and a public-only corpus restriction. The score interpretation bands (≥0.15 useful, ≥0.5 near-duplicate) and auth failure mode are exactly the kind of operational context an agent needs.

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?

Front-loads the one-line purpose, then partitions the two modes and the scoring detail into short scannable lines; nearly every sentence carries information. The /mcp/mcp api_key sentence is slightly misplaced as a trailing transport-specific note but is still actionable.

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, so return-value exposition is unnecessary, and the description supplies the algorithm, corpus scope, cost profile, and score calibration that the schema cannot. Remaining gaps are minor: the undocumented ``limit`` parameter and no routing hint toward sibling discovery/search tools.

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 0%, so the description carries the burden. It explains ``query``, ``domain_id``, and ``api_key`` well, and implicitly frames ``min_score`` via the threshold discussion, but never defines ``limit`` or the relationship between the default min_score of 0.05 and the recommended 0.15 threshold.

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?

States a specific verb and resource ("Find public domains most similar to a query or a known domain") plus the retrieval basis, so an agent can predict output immediately. It does not contrast itself with near-neighbour siblings such as aimrank_search_entities, so it falls 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 Guidelines4/5

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

Gives explicit invocation guidance: use ``query`` for free text OR ``domain_id`` for a known seed, and "Exactly one must be provided" — a genuinely useful selection constraint. It also notes the api_key requirement on /mcp/mcp. Missing only explicit when-not-to-use cases or a named alternative sibling.

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.

Resources