Skip to main content
Glama

ask_rag_filtered

Query the RAG knowledge base using filters to find specific document types, content structures, or

Instructions

向 RAG 知识库提问,并使用特定过滤器聚焦搜索。 使用场景:

  • 仅搜索 PDF 文档:file_type=".pdf"

  • 查找包含表格的文档:min_tables=1

  • 查找结构良好的文档:min_titles=5

  • 搜索增强处理的文档:processing_method="unstructured_enhanced"

参数: query: 要向知识库提出的问题或查询。 file_type: 按文件类型过滤(例如 ".pdf", ".docx", ".txt")。 min_tables: 文档必须包含的最小表格数量。 min_titles: 文档必须包含的最小标题数量。 processing_method: 按处理方法过滤(例如 "unstructured_enhanced", "markitdown")。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
file_typeNo
min_tablesNo
min_titlesNo
processing_methodNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It describes the tool's filtering behavior well with specific examples, but doesn't mention other behavioral aspects like response format, error handling, rate limits, or authentication requirements. The description adds value by explaining filtering logic but lacks comprehensive behavioral disclosure.

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?

The description is well-structured and appropriately sized. It starts with a clear purpose statement, provides usage scenarios with bullet points, then lists parameters with explanations. Every sentence earns its place, and there's no redundant information. The bilingual nature (Chinese with English examples) is efficient for the intended context.

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?

Given the tool's complexity (5 parameters, filtering logic) and the presence of an output schema (which handles return values), the description is mostly complete. It explains the purpose, usage, and parameters thoroughly. The main gap is lack of behavioral context beyond filtering (e.g., performance characteristics, limitations), but the output schema reduces the need to describe return values.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage, the description fully compensates by providing detailed parameter explanations. Each parameter is clearly explained with examples: 'query: 要向知识库提出的问题或查询' (the question or query to ask the knowledge base), 'file_type: 按文件类型过滤(例如 ".pdf", ".docx", ".txt")' (filter by file type, e.g., ".pdf", ".docx", ".txt"), etc. The description adds significant meaning beyond the bare schema.

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 clearly states the tool's purpose: '向 RAG 知识库提问,并使用特定过滤器聚焦搜索' (Ask the RAG knowledge base and use specific filters to focus the search). It specifies the verb ('提问' - ask/query) and resource ('RAG 知识库' - RAG knowledge base), and distinguishes it from the sibling 'ask_rag' by explicitly mentioning filtering capabilities.

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

Usage Guidelines5/5

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

The description provides explicit usage scenarios with concrete examples: '仅搜索 PDF 文档:file_type=".pdf"', '查找包含表格的文档:min_tables=1', etc. It clearly indicates when to use this tool (for filtered searches) versus the sibling 'ask_rag' (presumably for unfiltered queries), making the distinction clear.

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/kalicyh/mcp-rag'

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