# siyuan_search_blocks

Search for blocks in SiYuan notes using full-text search

Agent View of the PolicyLayer registry record for `siyuan_search_blocks`. HTML page: https://policylayer.com/tools/2234839-mcpserver/siyuan-search-blocks

## Facts

- Tool: `siyuan_search_blocks`
- Server: Martin MCP Toolbox (`2234839/mcpserver`) — https://policylayer.com/tools/2234839-mcpserver.md
- Homepage: https://github.com/2234839/mcpserver
- Risk category: Read (Low risk)
- Registry record: grade C, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Allowed

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "siyuan_search_blocks",
    "arguments": {}
  }
}
```

## Why siyuan_search_blocks is rated Low

This tool performs a full-text search query against SiYuan notes, which is a read-only operation that retrieves matching blocks without creating, modifying, executing, or destructively altering any data. The blast radius of misuse is minimal—an attacker could exfiltrate sensitive note content already stored in the system, but cannot cause irreversible damage or execute external code.

From the tool's own definition: "Tool name 'siyuan_search_blocks' and description 'Search for blocks in SiYuan notes using full-text search' indicate a retrieval-only operation with no modification, deletion, or side effects."

## Use case

AI agents call siyuan_search_blocks to retrieve information from Martin MCP Toolbox without modifying anything. It is typically the context-gathering step in research, monitoring, and reporting workflows, before the agent takes action elsewhere.

## Recommended policy (PolicyLayer)

Verdict: **Allowed**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Martin MCP Toolbox:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "siyuan_search_blocks": {}
  }
}
```

## Other tools on Martin MCP Toolbox (13)

- `pollinations_generate_text` — Execute — https://policylayer.com/tools/2234839-mcpserver/pollinations-generate-text.md
- `siyuan_query_sql` — Execute — https://policylayer.com/tools/2234839-mcpserver/siyuan-query-sql.md
- `advanced_web_search` — Read — https://policylayer.com/tools/2234839-mcpserver/advanced-web-search.md
- `analyze_video` — Read — https://policylayer.com/tools/2234839-mcpserver/analyze-video.md
- `get_block_kramdown` — Read — https://policylayer.com/tools/2234839-mcpserver/get-block-kramdown.md
- `pollinations_analyze_image` — Read — https://policylayer.com/tools/2234839-mcpserver/pollinations-analyze-image.md
- `read_image` — Read — https://policylayer.com/tools/2234839-mcpserver/read-image.md
- `siyuan_database_query` — Read — https://policylayer.com/tools/2234839-mcpserver/siyuan-database-query.md
- `web_search` — Read — https://policylayer.com/tools/2234839-mcpserver/web-search.md
- `generate_image` — Write — https://policylayer.com/tools/2234839-mcpserver/generate-image.md
- `pollinations_generate_audio` — Write — https://policylayer.com/tools/2234839-mcpserver/pollinations-generate-audio.md
- `pollinations_generate_image` — Write — https://policylayer.com/tools/2234839-mcpserver/pollinations-generate-image.md
- `update_block` — Write — https://policylayer.com/tools/2234839-mcpserver/update-block.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=2234839-mcpserver · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/2234839-mcpserver
