Skip to main content
Glama
ergut

MCP server for LogSeq

by ergut

LogSeq용 MCP 서버

MCP 서버는 API를 통해 LogSeq와 상호 작용합니다.

구성 요소

도구

서버는 LogSeq와 상호 작용하기 위해 여러 도구를 구현합니다.

  • list_graphs: 사용 가능한 모든 그래프를 나열합니다.

  • list_pages: 현재 그래프의 모든 페이지를 나열합니다.

  • get_page_content: 단일 페이지의 내용을 반환합니다.

  • 검색: 모든 페이지에서 콘텐츠 검색

  • create_page: 새 페이지 만들기

  • update_page: 기존 페이지의 콘텐츠 업데이트

  • delete_page: 페이지 삭제

예시 프롬프트

먼저 Claude에게 LogSeq를 사용하도록 지시하는 것이 좋습니다. 그러면 Claude가 항상 해당 도구를 호출합니다.

예시 프롬프트:

  • 최신 회의록의 내용을 가져와 요약해 보세요.

  • 프로젝트 X가 언급된 모든 페이지를 검색하고 맥락을 설명하세요.

  • 오늘의 회의록으로 새 페이지를 만드세요

  • 프로젝트 상태 페이지를 최신 업데이트로 업데이트합니다.

Related MCP server: Logseq MCP Server

구성

LogSeq API 구성

LogSeq API 설정을 사용하여 환경을 구성하는 방법은 두 가지가 있습니다.

  1. 서버 구성에 추가(권장)

지엑스피1

  1. 작업 디렉토리에 필요한 변수가 포함된 .env 파일을 만듭니다.

LOGSEQ_API_TOKEN=your_token_here
LOGSEQ_API_URL=http://localhost:12315

개발

건물

배포를 위해 패키지를 준비하려면:

  1. 종속성 동기화 및 잠금 파일 업데이트:

uv sync

디버깅

MCP 서버는 stdio를 통해 실행되므로 디버깅이 어려울 수 있습니다. 최상의 디버깅 환경을 위해서는 MCP Inspector 사용을 권장합니다.

npm 을 통해 MCP Inspector를 실행할 수 있습니다.

npx @modelcontextprotocol/inspector uv --directory /path/to/mcp-logseq run mcp-logseq

Available Tools

17 tools
create_pageA

Create a new page in Logseq with properly structured blocks.

Fails if a page with the same title already exists (use update_page to modify existing pages). This makes retries safe: re-sending a create_page that timed out will not create numbered duplicates like "Page(1)".

Markdown content is automatically parsed into Logseq's block hierarchy:

  • Headings (# ## ###) create nested sections

  • Lists (- or 1.) become proper block trees

  • Code blocks are preserved as single blocks

  • YAML frontmatter (---) becomes page properties

Example content:

---
tags: [project, active]
priority: high
---

# Project Title
Introduction paragraph.

## Tasks
- Task 1
  - Subtask A
- Task 2
ParametersJSON Schema
NameRequiredDescriptionDefault
titleYesTitle of the new page
contentNoMarkdown content to parse into blocks (optional)
propertiesNoPage properties (merged with frontmatter if both provided)

TDQS

A4.5/5.0
Behavior4/5

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

No annotations provided, so description carries full burden. It discloses failure on duplicate titles, retry safety, markdown parsing into block hierarchy, and property merging. Could mention return value or side effects, but covers key behaviors.

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?

Well-structured with sections, example, and clear explanations. Slightly long but each part serves a purpose. No wasted sentences.

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?

Covers input semantics, behavior, and constraints. Missing return value description, but given the tool's simplicity and no output schema, it is sufficiently complete for page creation.

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 coverage is 100% (baseline 3). Description adds meaning by explaining how 'content' is parsed (markdown into blocks) and that 'properties' merge with frontmatter. Adds value beyond the 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 action ('Create a new page') and the resource ('in Logseq with properly structured blocks'). It distinguishes from sibling tools like update_page by noting the fail condition for duplicate titles.

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?

Explicitly states when to use (creating new pages) and when not to (if page exists, use update_page). Also explains retry safety, providing clear guidance for the agent.

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

delete_blockB

Delete a block from LogSeq by its UUID.

ParametersJSON Schema
NameRequiredDescriptionDefault
block_uuidYesUUID of the block to delete

TDQS

B3.1/5.0
Behavior2/5

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

No annotations exist, and the description does not disclose behavioral traits such as irreversibility, cascading effects, permissions needed, or return value. For a destructive operation, this lack of detail is a significant gap.

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 very concise (one sentence), which is efficient. However, it could be front-loaded with additional critical info, but the brevity does not detract from clarity.

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?

Given the complexity (delete operation, single parameter, no output schema), the description lacks essential context about return values, error handling, and side effects, making it incomplete for safe agent invocation.

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?

The schema coverage is 100% with the parameter 'block_uuid' described. The description adds no further semantic meaning beyond 'by its UUID,' so it meets the baseline for adequate schema handling.

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 verb ('Delete'), resource ('block'), and method ('by its UUID'), making it unambiguous. It distinguishes from sibling tools like 'delete_page' by specifying the object type.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool over alternatives (e.g., why not delete the parent page?), nor any prerequisites or context. The description simply states the action without usage direction.

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

delete_pageB

Delete a page from LogSeq.

ParametersJSON Schema
NameRequiredDescriptionDefault
page_nameYesName of the page to delete

TDQS

B3.2/5.0
Behavior2/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 states 'Delete a page' but does not disclose whether the operation is irreversible, what happens to associated content, or if any authorization is needed. For a destructive action, more behavioral context is essential.

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 a single sentence, highly concise and front-loaded. However, it may be too terse for a destructive operation; a slightly longer description with more detail would not harm conciseness. Still, no wasted words.

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

Completeness3/5

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

For a simple one-parameter tool with no output schema, the description is minimally adequate. It does not explain return behavior or confirmation, but given the low complexity, it covers the basic purpose. Missing details about side effects hold it back from a higher score.

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 description coverage is 100% with the parameter description 'Name of the page to delete', so the description adds no extra semantic value. Baseline 3 is appropriate as the schema handles the parameter documentation adequately.

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?

Description uses specific verb 'Delete' and resource 'page' from 'LogSeq', clearly distinguishing it from siblings like 'delete_block' or 'rename_page'. It immediately communicates the core action and scope.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives, prerequisites (e.g., page existence), or consequences. The description lacks explicit 'when to use' or 'when not to use' context, leaving the agent to infer from the name alone.

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

find_pages_by_propertyA

Find all pages that have a specific property, optionally filtered by value. Simpler alternative to the full query DSL.

ParametersJSON Schema
NameRequiredDescriptionDefault
property_nameYesName of the property to search for (e.g., 'status', 'type', 'service')
property_valueNoOptional: specific value to match. If omitted, returns all pages that have this property.
limitNoMaximum number of results to return

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description must disclose behavioral traits. It describes the core filtering behavior adequately but does not mention potential side effects, permissions, or return format. For a read-only search tool, this is acceptable but not thorough.

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?

Two concise, front-loaded sentences. The first sentence states the core purpose, the second provides context on alternatives. No unnecessary words.

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 simplicity (3 params, 1 required, no output schema), the description covers the key functionality and use case. It could mention pagination or ordering, but for a basic search tool it is fairly complete.

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% with each parameter described in the schema. The description adds overall context but no additional detail beyond the schema, so 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?

Clearly states it finds all pages with a specific property, optionally filtered by value. Distinguishes itself by calling out it's a simpler alternative to the full query DSL.

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?

Explicitly says it's a simpler alternative to the query DSL, implying when to use this tool. However, it does not mention exclusions or contrast with other sibling search tools like 'search' or 'query'.

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

get_blockA

Get a single block by its UUID. Returns the block content, properties, and child blocks (recursively). Useful for inspecting a specific block after finding its UUID via search or query.

ParametersJSON Schema
NameRequiredDescriptionDefault
block_uuidYesUUID of the block to retrieve
include_childrenNoWhether to include child blocks recursively (default: true)
formatNoOutput format (text or json)text

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries full burden. It accurately states that it returns block content, properties, and recursive child blocks, implying a read-only operation. However, it does not mention error conditions or recursion depth limits.

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?

Two sentences, no redundant information. The first sentence states the primary action; the second provides a usage hint. Efficient and front-loaded.

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?

For a straightforward get tool with 3 parameters and no output schema, the description adequately covers purpose and return content. It could mention that the output format is selectable, but that is in the schema.

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 baseline is 3. The description adds no additional meaning to the parameters (block_uuid, include_children, format) beyond the schema descriptions.

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 it retrieves a block by UUID and returns content, properties, and child blocks. It distinguishes itself from sibling tools like search or get_page_content by focusing on a single block identified by UUID.

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 use case: 'inspecting a specific block after finding its UUID via search or query.' This gives context but does not explicitly exclude scenarios or name alternatives.

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

get_page_contentB

Get the content of a specific page from LogSeq.

ParametersJSON Schema
NameRequiredDescriptionDefault
page_nameYesName of the page to retrieve
formatNoOutput format (text or json)text
max_depthNoMaximum nesting depth to display (default: -1 for unlimited)
resolve_refsNoResolve [[uuid]] page references to [[Page Name]] in DB mode (default: true)

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are present, so the description must convey behavioral traits. While 'Get' implies a read-only operation, it does not disclose potential side effects, authorization needs, rate limits, or error scenarios. The description is insufficient for a tool with no annotations.

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 sentence that conveys the core purpose without unnecessary words. It is highly efficient and front-loaded, meeting the standard for conciseness.

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 description lacks details about return values, output format, or how the content is structured. Given that no output schema exists and there are 4 parameters, the description should explain that the content is returned in the specified format (e.g., text or JSON) and potentially mention nesting or reference resolution behavior.

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?

The input schema covers all parameters with descriptions (100% coverage), so the baseline is 3. The description adds no additional parameter-level information, but the schema already adequately explains each parameter’s purpose and defaults.

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 retrieves page content from LogSeq, using a specific verb ('Get') and resource ('content of a specific page'). This differentiates it from sibling tools like list_pages (which lists pages) or delete_page (destructive operation).

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, limitations, or contrast with sibling tools like search or query. The agent is left to infer usage without explicit context.

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

get_pages_from_namespaceA

Get all pages within a namespace hierarchy (flat list). Use this to discover subpages of a parent page.

ParametersJSON Schema
NameRequiredDescriptionDefault
namespaceYesThe namespace to query (e.g., 'Customer', 'Projects/2024')

TDQS

A3.9/5.0
Behavior3/5

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

Without annotations, the description carries the burden of behavioral disclosure. It correctly states it returns a flat list of pages, but omits details on output structure (e.g., page properties), pagination, or ordering. For a read operation, this is acceptable but lacking completeness.

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?

Two concise sentences: first states the core function, second provides usage context. No unnecessary words, and information is front-loaded.

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

Completeness3/5

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

For a simple 1-parameter tool with no output schema, the description covers the basic intent but lacks details on return format or limits. An agent may need to know the structure of returned pages to chain calls, but the description is not severely deficient.

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% for the single parameter, and the description adds no new meaning beyond the schema's own description (e.g., 'The namespace to query (e.g., 'Customer', 'Projects/2024')'). Baseline of 3 is appropriate since the schema already documents the parameter adequately.

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 retrieves all pages within a namespace hierarchy as a flat list. It uses a specific verb 'Get' and resource 'pages within a namespace hierarchy', and implicitly differentiates from sibling 'get_pages_tree_from_namespace' by contrasting flat vs. tree structure.

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 explicitly says 'Use this to discover subpages of a parent page', providing a clear use case. However, it does not explicitly mention when not to use it or list alternatives like 'get_pages_tree_from_namespace' for tree views.

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

get_pages_tree_from_namespaceA

Get pages within a namespace as a hierarchical tree structure. Useful for understanding the full page hierarchy.

ParametersJSON Schema
NameRequiredDescriptionDefault
namespaceYesThe root namespace to build tree from (e.g., 'Projects')

TDQS

A3.7/5.0
Behavior2/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 lacks disclosure of behavioral traits like error handling, permissions, or limits beyond the basic purpose.

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?

Two sentences with no fluff. Efficiently conveys purpose and context.

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

Completeness3/5

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

Given no output schema and a single parameter, the description explains the use case but omits details about the tree structure or limitations.

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 description coverage is 100% with the 'namespace' parameter described. The tool description adds minimal context beyond the schema, meeting the baseline.

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 verb ('Get'), resource ('pages within a namespace'), and output format ('hierarchical tree structure'). It differentiates from sibling tool 'get_pages_from_namespace' by emphasizing hierarchy.

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 implies usage context ('Useful for understanding the full page hierarchy') but does not explicitly mention when not to use or provide alternative sibling tools.

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

insert_nested_blockA

Insert a new block as a child or sibling of an existing block, enabling nested hierarchical structures

ParametersJSON Schema
NameRequiredDescriptionDefault
parent_block_uuidYesUUID of the reference block. If sibling=false, new block becomes a CHILD of this UUID. If sibling=true, new block becomes a SIBLING of this UUID (at the same level).
contentYesContent text for the new block
propertiesNoOptional block properties (e.g., {'marker': 'TODO', 'priority': 'A'})
siblingNofalse (default) = insert as CHILD under parent_block_uuid. true = insert as SIBLING after parent_block_uuid at the same level. For multiple children under same parent, ALWAYS use false with the parent's UUID.

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, description carries burden. It discloses child/sibling behavior and provides a hint for multiple children. However, it omits details on ordering, error handling, or permission requirements.

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?

Single sentence captures core functionality without redundancy. Front-loaded with verb and resource, efficiently conveying purpose.

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

Completeness3/5

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

For a moderate-complexity tool with no output schema and no annotations, the description is adequate but not thorough. It lacks details on return values, error cases, and ordering of nested blocks.

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 descriptions cover all parameters (100% coverage). Description rephrases the parent_block_uuid and sibling roles but adds no new semantics beyond the 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?

Description clearly states the tool inserts a block as child or sibling, with specific verb 'Insert' and resource 'block'. It distinguishes from sibling tools (e.g., update_block, delete_block) as the only insertion tool for nested hierarchies.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives like update_block or set_block_properties. The sibling parameter description offers some context but no global usage criteria.

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

list_pagesB

Lists all pages in a LogSeq graph.

ParametersJSON Schema
NameRequiredDescriptionDefault
include_journalsNoWhether to include journal/daily notes in the list

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are present, and the description does not disclose any behavioral traits such as performance implications, default behavior (journals excluded by default), or limitations. The minimal description leaves agents uninformed about side effects or constraints.

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 a single efficient sentence with no wasted words. It could be slightly longer to include more detail but remains focused.

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?

With no output schema, the description omits what the returned list contains (e.g., page IDs, titles). It also fails to mention whether the list is paginated or sorted. Given the tool's simplicity, more completeness is expected.

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%, and the parameter description is already in the input schema. The tool description adds no additional meaning beyond what the schema provides, which meets the baseline.

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 verb 'Lists' and the resource 'all pages in a LogSeq graph', which is specific and distinct from sibling tools like 'find_pages_by_property' or 'get_page_content'.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives like 'get_pages_from_namespace' or 'get_pages_tree_from_namespace'. The description lacks context for tool selection.

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

queryA

Execute a Logseq DSL query to search pages and blocks. Supports property queries, tag queries, task queries, and logical combinations. See https://docs.logseq.com/#/page/queries for query syntax.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYesLogseq DSL query string (e.g., '(page-property status active)', '(and (task todo) (page [[Project]]))')
limitNoMaximum number of results to return
result_typeNoFilter results by typeall
formatNoOutput format (text or json). JSON returns raw result objects including block UUIDs and page info for deep linking.text

TDQS

A3.8/5.0
Behavior3/5

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

Without annotations, description partially covers behavior: it searches pages/blocks, supports various queries. However, it doesn't clarify mutability (likely read-only), return format details beyond schema, error handling, or performance implications.

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?

Two sentences plus a link, front-loaded with key information. Every part is necessary and succinct.

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 4 params, full schema coverage, no output schema, and no annotations, the description adequately explains purpose and provides a reference for syntax. Could be more complete with return structure or examples, but sufficient.

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% with detailed parameter descriptions. Description adds general context but no new parameter-specific information. Baseline 3 applies.

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?

Description clearly states it executes a Logseq DSL query to search pages and blocks, listing supported query types and providing a link to syntax. Distinguishes from sibling tools like search by focusing on DSL 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?

No explicit guidance on when to use this tool versus alternatives like search or find_pages_by_property. Implies use for complex DSL queries but lacks direct comparison.

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

rename_pageA

Rename an existing page. All references throughout the graph will be automatically updated.

ParametersJSON Schema
NameRequiredDescriptionDefault
old_nameYesCurrent name of the page
new_nameYesNew name for the page

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries full burden. It discloses the critical behavior that all references are automatically updated, which is key for an AI agent to anticipate side effects.

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?

Two succinct sentences with no extraneous information. Essential purpose and side effect are front-loaded.

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

Completeness5/5

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

For a simple two-parameter tool with no output schema and no annotations, the description provides sufficient context: purpose, parameters implied, and the key side effect.

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% with clear parameter descriptions. The description adds no additional semantics beyond the schema, so it meets the baseline.

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 specifies the action 'rename' and the resource 'an existing page', with a unique side effect (automatic reference updates) that distinguishes it from sibling tools like update_page or delete_page.

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 this tool is used for renaming pages but does not explicitly state when to use it over alternatives like update_page or provide exclusion criteria.

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

set_block_propertiesA

Set properties on a block in Logseq DB-mode. Properties must be defined on the block's tag/class. Use property display names (e.g. 'Content status', not the internal ident).

ParametersJSON Schema
NameRequiredDescriptionDefault
block_uuidYesUUID of the block to update
propertiesYesProperties to set as {name: value} pairs. Use display names (e.g. 'Content status': 'kiem')

TDQS

A4.2/5.0
Behavior3/5

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

No annotations are provided, so the description bears full responsibility for behavioral disclosure. It mentions a precondition (properties must be defined on tag/class) but does not explain side effects like whether existing properties are overwritten, error handling, or return values. This is inadequate for a mutation tool with no annotations.

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 three sentences long, each serving a distinct purpose: stating the action, adding a constraint, and providing a usage example. There is no redundant or unnecessary text.

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?

For a simple set operation with two parameters and no output schema, the description covers the essential: what it does, a key constraint, and a formatting guideline. It could be improved by clarifying whether properties are merged or replaced, but given the tool's simplicity, it is largely sufficient.

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 coverage is 100%, so baseline is 3. The description adds value by explaining that property names must be display names (not internal identifiers) and that properties must be defined on the block's tag/class, which is a critical constraint not evident from the schema alone.

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 identifies the action (set properties), the target (a block in Logseq DB-mode), and adds specificity with constraints on property definitions and display names, effectively distinguishing it from sibling tools like update_block.

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 clear context on how to use the tool (use display names, properties must be defined on tag/class), but does not explicitly state when to prefer this over alternatives or when not to use it. A sibling like update_block exists but no differentiation is given.

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

update_blockB

Update the content of an existing LogSeq block by UUID.

ParametersJSON Schema
NameRequiredDescriptionDefault
block_uuidYesUUID of the block to update
contentYesNew content that replaces the block text

TDQS

B3.3/5.0
Behavior2/5

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

Lacks details on destructive behavior, permissions, side effects, or error handling. Without annotations, the description should be more transparent.

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?

Single sentence, 11 words, front-loaded with key action and scope, no filler.

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

Completeness3/5

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

Adequate for a simple 2-param update, but missing context on block existence requirements or return behavior.

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 baseline 3. Description adds no extra meaning beyond the schema's parameter descriptions.

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?

Clearly states verb (update), resource (block), and scope (by UUID), distinguishing it from sibling tools like insert_nested_block or get_block.

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

Usage Guidelines2/5

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

No guidance on when to use this tool vs. alternatives (e.g., set_block_properties), or prerequisites like block existence.

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

update_pageA

Update a page in Logseq with new content and/or properties.

Supports two modes:

  • append: Add new blocks after existing content (default)

  • replace: Clear all existing blocks and add new content

Markdown is parsed into proper block hierarchy just like create_page. YAML frontmatter in content will be merged with explicit properties.

ParametersJSON Schema
NameRequiredDescriptionDefault
page_nameYesName of the page to update
contentNoMarkdown content to add or replace with
modeNoappend: add after existing content. replace: clear page and add new content.append
propertiesNoPage properties to set/update

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description discloses key behaviors: two modes, Markdown parsing, YAML frontmatter merging. However, it does not mention what happens if the page doesn't exist, error handling, or side effects like irreversible deletion in replace mode. The disclosure is adequate but not complete.

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?

Two concise paragraphs: first states purpose, second details modes and behavior. Every sentence adds information with no filler. Front-loaded with the primary action.

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?

For a 4-parameter tool with no output schema, the description covers modes, content processing, and property merging. It references create_page for context. Lacks return value description and error conditions, but otherwise sufficiently complete.

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 coverage is 100%, baseline 3. The description adds value by explaining that 'mode' defaults to 'append', Markdown is parsed into block hierarchy, and YAML frontmatter in content merges with explicit properties. This goes beyond the schema's brief descriptions.

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 it updates a Logseq page with content/properties, explains two modes (append/replace), and distinguishes from create_page by implying modification of existing pages. The verb 'update' and the resource 'page' are specific.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus siblings like create_page or delete_page. The description mentions that Markdown parsing is 'just like create_page' but does not provide when-to-use or when-not-to-use context.

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

TDQS

A3.7/5.0
Disambiguation5/5

Each tool targets a distinct operation or query on pages or blocks. Overlaps like search vs query are differentiated by DSL vs free-text, and property search is a simpler alternative. All tools have clear, non-overlapping purposes.

Naming Consistency5/5

All tools follow a consistent verb_noun pattern in snake_case (e.g., create_page, delete_block, list_pages). The verbs are uniform (create, delete, get, update, rename, list, find, search, query, insert, set), ensuring predictable naming.

Tool Count4/5

17 tools is slightly above the ideal 3-15 range but still justifiable for a rich knowledge management domain. The count reflects thorough coverage of page and block operations without being excessive.

Completeness4/5

Core CRUD operations for pages and blocks are present along with property management, backlinks, namespace queries, and search/query. Minor gaps like block movement or batch operations exist, but the surface is largely complete for typical LogSeq interactions.

Maintenance

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI assistants to interact with your local Logseq knowledge base through advanced search, content creation, template management, and knowledge organization with privacy-first, local-only operations.
    35
    7
    MIT
  • A
    license
    B
    quality
    C
    maintenance
    Enables AI assistants like Claude to directly read, write, search, and navigate your local Logseq knowledge graph, including managing journals, pages, backlinks, and page relationships without manual copy-pasting.
    11
    14
    6
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Connects AI assistants to Logseq knowledge graphs to read, write, and search pages, blocks, and journals via the Model Context Protocol. It features 17 tools for full graph management, including CRUD operations, batch block insertion, and full-text search.
    35
    Apache 2.0

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/ergut/mcp-logseq'

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