Skip to main content
Glama
rowanlin-dev

ima-mcp-server

by rowanlin-dev

search_knowledge_base

Find knowledge base IDs by searching with a name keyword. Returns all visible knowledge bases when query is empty, including owned and subscribed.

Instructions

搜索知识库列表。query 传空字符串时返回当前账号下所有可见知识库(含自建与订阅)。知道知识库名称但不知道 ID 时用此接口。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo返回数量上限,1-20。
queryNo知识库名称关键词。传空字符串返回全部知识库。
cursorNo分页游标,首次传空字符串。
Behavior4/5

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

With no annotations, the description carries the behavioral burden. It discloses that the operation returns visible knowledge bases under the current account, including self-created and subscribed ones, which is helpful context about access scope. It also implies read-only behavior via 'search/list'. It doesn't detail pagination or response format, but the schema covers parameters and the operation is inherently non-destructive.

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 two sentences long, front-loads the core purpose ('搜索知识库列表'), then gives the key behavior and use case. Every sentence is informative with no wasted words, making it an exemplar of concision.

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?

The tool is simple (3 params, no output schema), and the description explains what it does and when to use it. It states it returns a list and implies the inclusion of IDs from the use-case sentence. While it doesn't explicitly enumerate return fields, the information is sufficient given the straightforward nature of the tool. A 4 reflects slight room for mentioning the response structure directly.

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 coverage is 100%, so the schema already documents all three parameters (query, limit, cursor). The description adds the use-case context for the query parameter (knowing name but not ID) and the empty-query behavior, which marginally enriches meaning. However, it doesn't add syntax or formatting details beyond the schema, so the baseline 3 is appropriate.

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 uses the specific verb '搜索' (search) with resource '知识库列表' (knowledge base list), clearly stating it's a search/list operation. It distinguishes itself from siblings like get_knowledge_base by explicitly noting it is for when the name is known but not the ID, and clarifies it returns all visible knowledge bases with empty query.

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: '知道知识库名称但不知道 ID 时用此接口' (use when you know the name but not the ID). It also explains the empty-query behavior for listing all visible knowledge bases. However, it does not explicitly name alternatives or state when not to use it, making the guidance useful but not fully exhaustive.

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/rowanlin-dev/ima-mcp-server'

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