Skip to main content
Glama

List Notifications

list_notifications
Read-onlyIdempotent

Retrieve a page of the current user's AFFiNE notifications using cursor or offset pagination. Optionally filter the fetched page to show only unread notifications.

Instructions

List one server page of current-user AFFiNE notifications in a stable envelope. The response preserves each edge cursor, server pageInfo, and serverTotalCount. unreadOnly is a client-side filter over only the fetched page; it does not change server counts or pageInfo.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
afterNoCursor from pagination.pageInfo.endCursor. Mutually exclusive with offset.
firstNoNumber of notifications to fetch (default 20, maximum 100).
offsetNoZero-based offset pagination. Mutually exclusive with after.
unreadOnlyNoReturn only unread notifications from the fetched server page; this is not a server-wide unread query.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okNo
codeNo
errorNo
itemsNo
detailsNo
retryableNo
Behavior5/5

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

Beyond annotations, it discloses the stable envelope, preservation of edge cursor/pageInfo/serverTotalCount, and clarifies that unreadOnly is a client-side filter not affecting server counts. This is significant behavioral context.

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 efficiently convey the core purpose and key behavioral nuances without redundancy. Front-loaded with 'List one server page' provides immediate clarity.

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 read-only, paginated list tool with an output schema, the description is complete: it covers pagination envelope, cursor behavior, and the client-side filter semantics. No critical gaps.

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 parameters are fully documented. The description reinforces unreadOnly behavior but adds no new parameter-level meanings beyond 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 the tool lists one server page of current-user AFFiNE notifications, with specific resource and scope. It distinguishes from sibling tools like read_all_notifications by emphasizing pagination.

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 provides context on pagination and client-side filtering, but does not explicitly name alternatives or state when not to use. It implies usage for paginated notification retrieval but lacks explicit exclusions.

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/irfanhak123/affine-mcp-server'

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