Skip to main content
Glama

list_notes

Retrieve notes from your Notion database with filters for note type, tags, or quantity to organize and access information efficiently.

Instructions

列出笔记库中的笔记。

Args: note_type: 按类型过滤,可选:会议记录 | 想法 | 参考 | 速记 tag: 按标签过滤,精确匹配单个标签名称 limit: 返回条数,默认 20,最大 100

Returns: 笔记列表(字典格式,不含 body 内容)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
note_typeNo
tagNo
limitNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function for the 'list_notes' tool, which retrieves notes from the Notion client based on optional type, tag, and limit filters.
    def list_notes(
        note_type: Optional[str] = None,
        tag: Optional[str] = None,
        limit: int = 20,
    ) -> list[dict]:
        """
        列出笔记库中的笔记。
    
        Args:
            note_type: 按类型过滤,可选:会议记录 | 想法 | 参考 | 速记
            tag:       按标签过滤,精确匹配单个标签名称
            limit:     返回条数,默认 20,最大 100
    
        Returns:
            笔记列表(字典格式,不含 body 内容)
        """
        client = get_client()
        notes = client.list_notes(
            note_type=NoteType(note_type) if note_type else None,
            tag=tag,
            limit=limit,
        )
        return [n.model_dump() for n in notes]
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 mentions filtering by note_type and tag, and a limit with default/max values, but doesn't disclose other behavioral traits like pagination, sorting, authentication needs, rate limits, or what happens when no filters are applied. The description adds some operational context but leaves significant gaps for a tool with no annotation coverage.

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, followed by a bullet-point list of parameters with concise explanations, and ends with return format information. Every sentence earns its place with no wasted 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 moderate complexity (3 parameters, filtering functionality) and the presence of an output schema (implied by 'Returns' statement), the description is reasonably complete. It covers all parameters and mentions the return format (list of dictionaries without body content). However, it lacks behavioral context that would be important for a filtering/list tool with no annotations.

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?

With 0% schema description coverage, the description must compensate, and it does so effectively. It explains all three parameters: note_type (with allowed values: 会议记录, 想法, 参考, 速记), tag (exact match single tag name), and limit (default 20, max 100). This adds clear meaning beyond the bare schema, though it doesn't cover parameter interactions or edge cases.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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: '列出笔记库中的笔记' (List notes in the note library). It specifies the resource (notes) and verb (list), though it doesn't explicitly differentiate from sibling tools like 'search_notes' or 'get_note'. The purpose is clear but lacks sibling differentiation.

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 doesn't mention sibling tools like 'search_notes' (which might offer more flexible filtering) or 'get_note' (for retrieving a single note with full content). There's no context about prerequisites or typical use cases.

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/wauwaya/notion-workflow-mcp'

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