Skip to main content
Glama

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
queryNo
api_keyNo
domain_idNo
min_scoreNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark it read-only, open-world, and idempotent; the description adds substantial beyond-annotation behavior: TF-IDF + cosine similarity, which fields are searched, no embedding API calls, 5-minute cache, public-scope restriction, score thresholds, and API-key behavior. No contradiction with annotations.

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?

Every sentence adds information: usage modes, constraint, algorithm, caching, scope, scoring thresholds, and auth context. The most important usage rule (exactly one of query/domain_id) is front-loaded.

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?

Covers algorithm, data scope, auth, caching, and score interpretation. The only notable gap is return-value shape/ordering of results, which matters because no output schema is provided. Still highly actionable overall.

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 has 0% description coverage, so the description carries the burden. It explains query vs domain_id semantics, the exclusivity constraint, and api_key behavior. Limit is left to its self-evident name/defaultaiman, and the score-threshold guidance isn't tied explicitly to a parameter, but overall compensation is strong.

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?

Opens with a specific verb+object ('Find public domains most similar to...') and immediately clarifies the two input modes (query vs domain_id). The purpose is unambiguous and does not overlap confusingly with sibling tools.

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?

Clearly instructs when to use query vs domain_id, states that exactly one is required, and notes the public-endpoint versus /mcp/mcp auth difference. It does not explicitly name sibling alternatives, but the selection logic is explicit and actionable.

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