Skip to main content
Glama
2234839

Martin MCP Toolbox

by 2234839

siyuan_search_blocks

Search SiYuan notes for blocks by full-text query. Use operators like OR, AND, NEAR to locate specific note blocks efficiently.

Instructions

Search for blocks in SiYuan notes using full-text search

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number for pagination
pathsNoSpecific paths to search within
queryYesSearch query text,支持 Full-text Query Syntax 语法 ### 基本操作符 1. **OR** - 逻辑或:包含任一即可(优先使用,保证搜索结果) 2. **NEAR(词1 词2, N)** - 邻近搜索:距离在N词内,如 NEAR(机器学习 算法, 10) 3. **AND** - 逻辑与:必须同时包含(谨慎使用,容易导致零结果) 4. **^词** - 权重提升:提高重要性,如 ^深度学习 5. **-词** - 排除:明确排除,如 -广告 6. **(查询)** - 分组:组合逻辑,如 (机器学习 OR 深度学习) ## 重要原则 ### 避免"零结果"的策略 1. **优先使用 OR**:对同义词、相关词用 OR 连接 2. **谨慎使用 AND**:只在确定必须同时出现时使用 3. **放宽 NEAR 距离**:使用 10-15 的较大距离 4. **多层次查询**:主查询 OR (备选查询1) OR (备选查询2) 5. **避免过度限制**:不要堆砌太多 AND 条件 ### 查询构建优先级 1. **核心词 OR 相关词**:保证基础搜索结果 2. **NEAR(核心词 相关词, 10-15)**:提升精确度但不过度限制 3. **选择性 AND**:只对绝对必要的条件使用 AND 4. **权重提升**:对最重要概念使用 ^ 5. **排除干扰**:只对明显无关内容使用 -
Behavior2/5

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

With no annotations, the description carries the full burden but only states a basic search operation. It does not disclose potential limitations, auth requirements, pagination behavior, or what the response contains.

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 a single, front-loaded sentence with no redundant wording. Every word contributes to understanding the tool's core function.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool has no output schema, so the description should explain what the search returns and how pagination works (page parameter). It does neither, leaving the expected response format and behavior unclear for an agent.

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?

All parameters have detailed descriptions in the schema (100% coverage), including an extensive query syntax guide. The tool description itself adds no semantic detail beyond naming full-text search, so the schema carries the parameter explanation.

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 action ('Search'), the resource ('blocks in SiYuan notes'), and the method ('full-text search'), which distinguishes it from the sibling tool 'siyuan_query_sql' that uses SQL queries.

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

Usage Guidelines3/5

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

The description implies use for full-text search needs but does not provide explicit when-to-use or alternatives comparison. It does not mention exclusions such as 'use siyuan_query_sql for structured queries'.

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/2234839/mcpserver'

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