Skip to main content
Glama
v587d

Insights Knowledge Base MCP Server

by v587d

get_similar_content_by_rag

Search a knowledge base of insights reports using natural language queries, then retrieve the most similar document excerpts with source citations for verification.

Instructions

该方法用于通过计算用户输入与文档内容向量之间相似度,进而找到最相似的文档内容,即RAG。 ⚠️注意:1. 当LLM无法从用户输入中提取明确指令时,优先使用此方法。 2. 当LLM引用该方法返回的结果时,必须用markdown格式明确、醒目告知用户引自哪篇报告和具体访问地址! 比如“观点引自《21世纪CEO的成功法则》第10、16页。(查看完整报告)[<如果"download_url"不为空,填入download_url>]” !!!注意每份报告单独列举 download_url,不要笼统指向某一个可能不存在的地址。

 参数:
    user_query: str 必填。

返回:
    page_number: 报告详情页页码
    page_title: 标题
    page_abstract: 摘要
    page_content: 内容
    file_name: 报告名称
    local_path: 报告存放于本地地址
    download_url: 报告网络链接
    published_by: 报告发布机构
    published_date: 报告发布日期
    vector_similarity: 向量相似度

LLM需将该方法返回结果组织成通畅的语言传达给用户。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
user_queryYes
Behavior3/5

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

No annotations are provided, so the description carries full burden. It describes the tool as computing similarity and returning matched content, including warnings about citing results. It is transparent about the read-only nature (similarity search) but does not detail any side effects or permissions. Good overall, but lacks depth in behavioral context.

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 description is well-structured with sections for purpose, usage notes, parameters, and return fields. It is somewhat verbose due to detailed citation formatting instructions, but the core information is front-loaded and clear. Minor redundancy reduces conciseness.

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 no output schema, the description thoroughly explains return fields (page_number, file_name, download_url, etc.) and provides usage context. It covers when to use and how to cite results. However, it does not explain technical details like similarity computation method or limits, leaving minor gaps.

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%, but the description compensates by listing the parameter (user_query: str 必填) and its required status. While the schema lacks description, the tool description adds value by clarifying the parameter's role and requirements.

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?

The description explicitly states that the tool computes similarity between user input and document content vectors to find the most similar documents (RAG). It clearly distinguishes from sibling tools (search_report_profile, search_content_detail) which serve different purposes.

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?

The description provides a clear when-to-use instruction: '当LLM无法从用户输入中提取明确指令时,优先使用此方法' (When LLM cannot extract clear instructions, prefer this method). It also includes citation formatting guidelines. However, it does not explicitly state when not to use or mention alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/v587d/InsightsLibrary'

If you have feedback or need assistance with the MCP directory API, please join our Discord server