cbcoutinho/nextcloud-mcp-server
Nextcloud MCP Server
2206c62623f3nextcloud-mcp-server0.213.5 in pyproject.tomlPaths from tool input into commands, SQL, files and URLs
How much power the tools give an agent over the machine
Hidden instructions and poisoning in text for the model
Known vulnerabilities in the packages the server uses
How the server reads credentials and where they can go
Whether the tools do only what their descriptions say
How far the analysis went
The scanner traces each tool from its input to the operations its code performs, and here it could not follow every path. Code Safety is shown as partly traced instead of a score: no finding there is not a clean result. The score of Capability Exposure counts only what it could follow.
- In 604 places a tool's input is handed to a function whose name matches several definitions in the code; the scanner could not tell which one runs, so it stopped there
- 3 of 234 tools, prompts and resources could not be followed through the code
- 15 tools, prompts and resources registered only in the repository's tests are not counted on this page
Top risks in plain words
- CRITICAL1 security advisory has been published for this server itself (worst: critical).
- CRITICAL2 production dependencies have known vulnerabilities (worst: critical).
How to use it safely
Practical steps from what we found in this server. They lower the risk; they do not replace a review of the code.
- Give it a narrowly scoped token
Its code reads credentials or environment variables. Use a key limited to what this server needs, not your main one.
- Update its vulnerable packages
Use
pillow13.0.0 or later,soupsieve4.0.0 or later. - Use a fixed version
Versions before
nextcloud-mcp-server0.117.2 have a published vulnerability that is fixed in 0.117.2. - Keep confirmations on
Leave your MCP client's confirmation prompt on for tools that change files, run commands or send data.
What its tools can do on your machine
The server offers 204 tools, 15 resources. When an AI agent calls them, this is what their code can do on the machine where the server runs, as traced in the source. Tools that call code the scanner could not follow may do more.
nc_calendar_bulk_operations, nc_calendar_complete_todo, nc_calendar_get_event, nc_calendar_get_upcoming_events, nc_calendar_list_events, nc_calendar_list_todos and 2 morecheck_logged_in, check_provisioning_status, nc_auth_check_status, nc_auth_provision_access, nc_auth_update_scopes, nc_contacts_update_contact and 4 morenc_get_vector_sync_statusNo tool was seen to: start other programs on the machine; read passwords, tokens or keys; touch sensitive locations.
Where its requests and secrets go
Read from the names along each tool's calls, not from a run: what the code says, not every address it may reach at run time.
The literal addresses the tools' requests name.
- None: no request names a fixed host.
Constants or settings that start an address; the value comes from configuration.
- None seen.
Credential-like environment variables. Give the server a key with the least access it needs.
- None: no credential-like variable is read by the tools.
Text it brings in from outside
Text that reaches the model from outside: an instruction hidden in it can steer the agent (prompt injection). Treat what these tools return as data, not as orders.
- files8 tools · nc_calendar_bulk_operations, nc_calendar_complete_todo, nc_calendar_get_event +5
Tool annotations
No tool declares MCP annotations (readOnlyHint, destructiveHint and the rest). Clients use them to decide what to confirm; directories such as Anthropic's and OpenAI's ask for them.
Tools, prompts and resources (219: 204 tools, 15 resources)
Open a row for its full description. Chips show what its code can reach, and which risky capability its own description declares.
cookbook_get_configresource Get the Cookbook app configuration
Get the Cookbook app configuration
cookbook_get_versionresource Get the Cookbook app and API version
Get the Cookbook app and API version
deck_board_resourceresource Get details of a specific Nextcloud Deck board.
Get details of a specific Nextcloud Deck board.
DEPRECATED: use the ``deck_get_board`` tool instead.deck_boards_resourceresource List all Nextcloud Deck boards.
List all Nextcloud Deck boards.
DEPRECATED: use the ``deck_get_boards`` tool instead.deck_card_resourceresource Get details of a specific Nextcloud Deck card.
Get details of a specific Nextcloud Deck card.
DEPRECATED: use the ``deck_get_card`` tool instead.deck_cards_resourceresource List all cards in a Nextcloud Deck stack.
List all cards in a Nextcloud Deck stack.
DEPRECATED: use the ``deck_get_cards`` tool instead.deck_label_resourceresource Get details of a specific Nextcloud Deck label.
Get details of a specific Nextcloud Deck label.
DEPRECATED: use the ``deck_get_label`` tool instead.deck_labels_resourceresource List all labels in a Nextcloud Deck board.
List all labels in a Nextcloud Deck board.
DEPRECATED: use the ``deck_get_labels`` tool instead.deck_stack_resourceresource Get details of a specific Nextcloud Deck stack.
Get details of a specific Nextcloud Deck stack.
DEPRECATED: use the ``deck_get_stack`` tool instead.deck_stacks_resourceresource List all stacks in a Nextcloud Deck board.
List all stacks in a Nextcloud Deck board.
DEPRECATED: use the ``deck_get_stacks`` tool instead.nc_cookbook_get_recipe_resourceresource Get a recipe by ID using resource URI
Get a recipe by ID using resource URI
nc_get_capabilitiesresource Get the Nextcloud Host capabilities
Get the Nextcloud Host capabilities
nc_get_note_resourceresource Get user note using note id
Get user note using note id
nc_notes_get_attachment_resourceresource Get a specific attachment from a note
Get a specific attachment from a note
notes_get_settingsresource Get the Notes App settings
Get the Notes App settings
check_logged_intool Check if you are logged in to Nextcloud. If not logged in, this tool will prompt you to complete the login flow.Network
Check if you are logged in to Nextcloud. If not logged in, this tool will prompt you to complete the login flow.
check_provisioning_statustool Check whether Nextcloud access is provisioned.Network
Check whether Nextcloud access is provisioned.
collectives_assign_tagtool Assign a tag to a page in a Nextcloud Collective
Assign a tag to a page in a Nextcloud Collective
Args:
collective_id: ID of the collective
page_id: ID of the page
tag_id: ID of the tag to assigncollectives_create_collectivetool Create a new Nextcloud Collective
Create a new Nextcloud Collective
Args:
name: Name of the collective
emoji: Optional emoji for the collectivecollectives_create_pagetool Create a new page in a Nextcloud Collective.
Create a new page in a Nextcloud Collective.
Pages are created as empty markdown files. Use nc_webdav_write_file
with the path collectivePath/filePath/fileName to add content after
creation (omit filePath for root-level pages).
Args:
collective_id: ID of the collective
parent_id: ID of the parent page (use 0 for top-level pages)
title: Title of the new pagecollectives_create_tagtool Create a new tag in a Nextcloud Collective
Create a new tag in a Nextcloud Collective
Args:
collective_id: ID of the collective
name: Tag name
color: Hex color code (e.g. "FF0000")collectives_delete_collectivetool Permanently delete a Nextcloud Collective.
Permanently delete a Nextcloud Collective.
WARNING: This is irreversible. The collective must be in the trash
first (use collectives_trash_collective). All pages and content
will be permanently destroyed.
Args:
collective_id: ID of the trashed collective to permanently deletecollectives_get_collectivestool List all Nextcloud Collectives the user has access to
List all Nextcloud Collectives the user has access to
collectives_get_pagetool Get a page's metadata and markdown content from a Nextcloud Collective.
Get a page's metadata and markdown content from a Nextcloud Collective.
Content is fetched via WebDAV using the page's file path. To update
page content, use nc_webdav_edit_file for a partial change, or
nc_webdav_write_file to replace it all, with the path
collectivePath/filePath/fileName (omit filePath for root-level pages).
Args:
collective_id: ID of the collective
page_id: ID of the pagecollectives_get_pagestool List all pages in a Nextcloud Collective
List all pages in a Nextcloud Collective
Args:
collective_id: ID of the collectivecollectives_get_tagstool List all tags in a Nextcloud Collective
List all tags in a Nextcloud Collective
Args:
collective_id: ID of the collectivecollectives_get_trashed_collectivestool List all trashed Nextcloud Collectives.
List all trashed Nextcloud Collectives.
Returns collectives that have been soft-deleted and can be restored
or permanently deleted.collectives_get_trashed_pagestool List trashed pages in a Nextcloud Collective
List trashed pages in a Nextcloud Collective
Args:
collective_id: ID of the collectivecollectives_move_pagetool Move or copy a page within a Nextcloud Collective
Move or copy a page within a Nextcloud Collective
Args:
collective_id: ID of the collective
page_id: ID of the page to move/copy
parent_id: Target parent page ID
title: New title (optional)
index: Position in subpage order (default 0)
copy: If true, copy instead of movecollectives_remove_tagtool Remove a tag from a page in a Nextcloud Collective.
Remove a tag from a page in a Nextcloud Collective.
This is a reversible operation — the tag still exists and can be
reassigned with collectives_assign_tag.
Args:
collective_id: ID of the collective
page_id: ID of the page
tag_id: ID of the tag to removecollectives_restore_collectivetool Restore a Nextcloud Collective from trash.
Restore a Nextcloud Collective from trash.
Args:
collective_id: ID of the trashed collective to restorecollectives_restore_pagetool Restore a page from trash in a Nextcloud Collective
Restore a page from trash in a Nextcloud Collective
Args:
collective_id: ID of the collective
page_id: ID of the page to restorecollectives_search_pagestool Full-text search within a Nextcloud Collective
Full-text search within a Nextcloud Collective
Args:
collective_id: ID of the collective
query: Search query stringcollectives_set_collective_emojitool Set or clear the emoji on a Nextcloud Collective.
Set or clear the emoji on a Nextcloud Collective.
Setting the same emoji twice produces the same result (idempotent).
Pass emoji=None to clear the emoji.
Args:
collective_id: ID of the collective
emoji: Emoji to set, or None to clearcollectives_set_page_emojitool Set or clear the emoji on a Nextcloud Collective page
Set or clear the emoji on a Nextcloud Collective page
Args:
collective_id: ID of the collective
page_id: ID of the page
emoji: Emoji to set, or null to clearcollectives_trash_collectivetool Move a Nextcloud Collective to trash (soft delete).
Move a Nextcloud Collective to trash (soft delete).
The collective can be restored or permanently deleted afterwards.
Args:
collective_id: ID of the collective to trashcollectives_trash_pagetool Move a page to trash in a Nextcloud Collective (soft delete).
Move a page to trash in a Nextcloud Collective (soft delete).
Trashed pages can be restored with collectives_restore_page. The
Collectives API does not support permanent page deletion. Trashed
pages are cleaned up by Nextcloud's retention policy.
Args:
collective_id: ID of the collective
page_id: ID of the page to trashdeck_archive_cardtool Archive a Nextcloud Deck card
Archive a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the carddeck_assign_dependent_cardtool
No description.
deck_assign_label_to_cardtool Assign a label to a Nextcloud Deck card
Assign a label to a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
label_id: The ID of the label to assigndeck_assign_user_to_cardtool Assign a user to a Nextcloud Deck card
Assign a user to a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
user_id: The user ID to assigndeck_attach_filetool Attach an existing Nextcloud file to a Deck card without copying.
Attach an existing Nextcloud file to a Deck card without copying.
Creates a share of ``path`` with the card (``shareType=12``,
``shareWith=<card_id>``). The file stays in its original location.
Clicking the attachment in the Deck UI opens the file in place.
Generic over the user's Files: works for any file the caller can
read — markdown notes, PDFs, images, spreadsheets, etc. Use
:func:`deck_attach_note` if you have a Notes-app note ID and want
the path resolved automatically. Calling twice with the same
``path`` creates two distinct shares — caller is responsible for
de-duping.
Args:
card_id: The ID of the Deck card to attach to
path: Path to the file in the user's Nextcloud Files (must start
with "/", e.g. "/Documents/spec.pdf" or "/Notes/My Note.md")deck_attach_notetool Attach a Nextcloud Note to a Deck card without copying.
Attach a Nextcloud Note to a Deck card without copying.
Convenience wrapper: looks up the note's filesystem path from the
Notes app settings + note metadata, then shares the file with the
card (same mechanism as :func:`deck_attach_file`). The note remains
editable in the Notes app. The card just shows a clickable link to
it.
Path is reconstructed as ``<notes_folder>/<category>/<title>.md``.
If the note's title contains characters that the Notes app sanitises
differently (rare), use :func:`deck_attach_file` with the explicit
path instead.
Args:
card_id: The ID of the Deck card to attach to
note_id: The ID of the Note to attachdeck_create_boardtool Create a new Nextcloud Deck board
Create a new Nextcloud Deck board
Args:
title: The title of the new board
color: The hexadecimal color of the new board (e.g. FF0000)deck_create_cardtool Create a new card in a Nextcloud Deck stack
Create a new card in a Nextcloud Deck stack
Args:
board_id: The ID of the board
stack_id: The ID of the stack
title: The title of the new card
type: Type of the card (default: plain)
order: Order for sorting the cards
description: Description of the card
duedate: Due date of the card (ISO-8601 format)
startdate: Start date of the card (ISO-8601 format)
color: Card color as hex RGB, e.g. "FF0000"deck_create_card_commenttool Create a comment on a Nextcloud Deck card.
Create a comment on a Nextcloud Deck card.
Deck caps a comment at 1000 characters, measured after trimming
whitespace and counted in Unicode code points. Markdown and @-mentions
are NOT expanded before that check, so what you pass is what is counted.
Check the length before calling and pick `overflow` accordingly:
- 1000 characters or fewer: call as-is. `overflow` is ignored.
- Longer, and the text is meant to be read on the card (activity
updates, run summaries, changelogs): pass overflow="split" up front
rather than guessing a shorter message. The text is cut at markdown
heading, then paragraph, then line, then sentence, then word
boundaries -- never mid-word -- each part is prefixed "(i/N)", and
parts 2..N are posted as replies to part 1 so the card shows one
thread. @-mentions are never split across parts. At most 10 parts.
Past that, write the content to a note (nc_notes_create_note) or a
file (nc_webdav_write_file), attach it with deck_attach_note /
deck_attach_file, and post a short pointer comment instead.
- Longer, and you would rather shorten it yourself: leave the default
overflow="error". Nothing is posted and the error states the exact
overage.
Splitting is not atomic. If a later part fails, the earlier parts stay
posted and the error names their comment ids -- resume from there
instead of re-sending the whole message, which would duplicate them.
Supports @-mentions: "@alice", or @"alice smith" for ids with spaces.
Args:
card_id: The ID of the card to comment on
message: The comment text (max 1000 characters unless
overflow="split")
parent_id: Optional ID of a parent comment to reply to. When
splitting, part 1 replies to this comment and parts 2..N reply
to part 1.
overflow: What to do when the message exceeds 1000 characters.
"error" (the default) posts nothing and explains the overage.
"split" posts the message as multiple threaded comments.
Returns:
CardCommentResponse. For a single comment, `comment` is it, `parts`
is null and `part_count` is 1. When split, `comment` is part 1,
`parts` lists every posted part in order (parts[0] is part 1), and
`part_count` is how many were posted.deck_create_labeltool Create a new label in a Nextcloud Deck board
Create a new label in a Nextcloud Deck board
Args:
board_id: The ID of the board
title: The title of the new label
color: The color of the new label (hex format without #)deck_create_stacktool Create a new stack in a Nextcloud Deck board
Create a new stack in a Nextcloud Deck board
Args:
board_id: The ID of the board
title: The title of the new stack
order: Order for sorting the stacksdeck_delete_attachmenttool Delete an attachment from a Nextcloud Deck card.
Delete an attachment from a Nextcloud Deck card.
For ``type="file"`` attachments this removes the share linking the
file to the card. The underlying file in the user's Files is left
untouched. For ``type="deck_file"`` blobs the binary is deleted from
Deck's storage.
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
attachment_id: The ID of the attachment to delete
attachment_type: The attachment's ``type`` as reported by
:func:`deck_list_attachments` — ``"file"`` for a Files share,
``"deck_file"`` for a blob uploaded into Deck. Deck resolves the
id against this type, so passing the wrong one 404s.deck_delete_cardtool Delete a Nextcloud Deck card
Delete a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the carddeck_delete_card_commenttool Delete a Nextcloud Deck card comment
Delete a Nextcloud Deck card comment
Only the comment's author can delete it. The server returns 403 otherwise.
Args:
card_id: The ID of the card the comment belongs to
comment_id: The ID of the comment to deletedeck_delete_labeltool Delete a Nextcloud Deck label
Delete a Nextcloud Deck label
Args:
board_id: The ID of the board
label_id: The ID of the labeldeck_delete_stacktool Delete a Nextcloud Deck stack
Delete a Nextcloud Deck stack
Args:
board_id: The ID of the board
stack_id: The ID of the stackdeck_get_archived_stackstool List archived stacks (with their archived cards) for a Nextcloud
List archived stacks (with their archived cards) for a Nextcloud
Deck board.
This is the archived-only shortcut: it returns *only* archived cards
in a single call. The active list tools (deck_get_cards,
deck_get_stacks, deck_get_board_overview) also include archived cards
when called with status="archived"/"all". Use this tool when you want
archived cards exclusively and don't need the open ones. Typical use:
auditing completed work archived off the active board (e.g. cards moved
through a "Done" stack and then archived via deck_archive_card). The
shape mirrors deck_get_stacks.
Cards are always included on the returned stacks (an archived stack
without its cards would have no audit value) and returned as compact
summaries by default. There is no ``status`` filter — every card here
is archived by definition — but ``label``/``assigned_to`` narrow the
set just like the active-stack tools.
Args:
board_id: The ID of the board
detail: "summary" (default) or "full".
label: If set, only cards carrying a label with this exact title.
assigned_to: If set, only cards assigned to this user UID.
description_max_length: In detail="full", truncate descriptions.
description_preview_length: In detail="summary", preview length.deck_get_boardtool Get details of a specific Nextcloud Deck board.
Get details of a specific Nextcloud Deck board.
Args:
board_id: The ID of the board
include_acl: Include the board's ACL entries (default True). Set
False to reduce response size when ACLs are not needed.
include_users: Include the board's user list (default True). Set
False to reduce response size when users are not needed.
include_labels: Include the board's label definitions (default
True). Set False to reduce response size. Labels can still be
retrieved via deck_get_labels.deck_get_board_overviewtool Get a compact, whole-board snapshot in a single call.
Get a compact, whole-board snapshot in a single call.
Returns the board title, its label legend, and every stack with its
cards projected to compact summary rows. Prefer it for "show me the
board" / "what's in progress" style requests on large boards — it is
the token-efficient way to view board *state*. It intentionally omits
the board-management fields (ACL, user list, full label objects) that
deck_get_board exposes. Reach for deck_get_board when you need those.
Args:
board_id: The ID of the board
status: Which cards to include — "open" (default), "done",
"archived", or "all". The first three partition the board
(a card that is both done and archived counts as "archived").
"archived"/"all" include archived cards, which the active
listing endpoint omits — this costs one extra API call.
label: If set, only cards carrying a label with this exact title.
assigned_to: If set, only cards assigned to this user UID.
description_preview_length: Length of the description preview
carried on each card summary (default 140).deck_get_boardstool Get all Nextcloud Deck boards
Get all Nextcloud Deck boards
deck_get_cardtool Get details of a specific Nextcloud Deck card
Get details of a specific Nextcloud Deck card
deck_get_card_commentstool List comments on a Nextcloud Deck card.
List comments on a Nextcloud Deck card.
Returns compact comments by default (dropping mentions, actor type and
display name). Ordering and truncation apply within the returned page.
Args:
card_id: The ID of the card
limit: Maximum number of comments to return (default 20, max 200)
offset: Pagination offset (default 0)
detail: "summary" (default) returns compact comments. "full"
returns the complete comment objects.
message_max_length: If set, truncate each comment message to this
many characters.
order: "newest" (default) or "oldest" — sort the page by creation
time.deck_get_cardstool Get all cards in a Nextcloud Deck stack.
Get all cards in a Nextcloud Deck stack.
Cards are returned as compact summaries by default. Filtering and
projection are applied client-side after the API returns the full
stack, so they reduce the tokens the caller sees but not network
bandwidth — network-wise this tool is equivalent to
deck_get_stack(include_cards=True).
Args:
board_id: The ID of the board
stack_id: The ID of the stack
detail: "summary" (default) returns compact card rows. "full"
returns the complete card objects.
status: "open" (default), "done", "archived", or "all". The first
three partition the board (a done+archived card counts as
"archived"). "archived"/"all" include archived cards, which the
active listing endpoint omits — this costs one extra API call.
label: If set, only cards carrying a label with this exact title.
assigned_to: If set, only cards assigned to this user UID.
description_max_length: In detail="full", truncate descriptions.
description_preview_length: In detail="summary", preview length.deck_get_labeltool Get details of a specific Nextcloud Deck label
Get details of a specific Nextcloud Deck label
deck_get_labelstool Get all labels in a Nextcloud Deck board
Get all labels in a Nextcloud Deck board
deck_get_stacktool Get details of a specific Nextcloud Deck stack.
Get details of a specific Nextcloud Deck stack.
Cards are returned as compact summaries by default. See
deck_get_stacks for the shared parameter semantics.
Args:
board_id: The ID of the board
stack_id: The ID of the stack
include_cards: Include cards in the stack (default True).
detail: "summary" (default) or "full".
status: "open" (default), "done", "archived", or "all"
(non-overlapping, a done+archived card counts as "archived").
"archived"/"all" include archived cards, which the active
listing endpoint omits — this costs one extra API call.
label: If set, only cards carrying a label with this exact title.
assigned_to: If set, only cards assigned to this user UID.
description_max_length: In detail="full", truncate descriptions.
description_preview_length: In detail="summary", preview length.deck_get_stackstool Get all stacks in a Nextcloud Deck board.
Get all stacks in a Nextcloud Deck board.
Cards are returned as compact summaries by default to keep the
response small on large boards. Filtering/projection happen
client-side after the API returns the full board, so they reduce the
tokens the caller sees but not network bandwidth.
Args:
board_id: The ID of the board
include_cards: Include cards inside each stack (default True). Set
False for a lightweight stack listing. Fetch cards separately
via deck_get_cards.
detail: "summary" (default) returns compact card rows. "full"
returns the complete card objects (the old behavior).
status: Which cards to include — "open" (default), "done",
"archived", or "all". The first three partition the board
(a card that is both done and archived counts as "archived").
"archived"/"all" include archived cards, which the active
listing endpoint omits — this costs one extra API call.
label: If set, only cards carrying a label with this exact title.
assigned_to: If set, only cards assigned to this user UID.
description_max_length: In detail="full", truncate each card's
description to this many characters.
description_preview_length: In detail="summary", length of the
description preview carried on each card (default 140).deck_list_attachmentstool List attachments on a Nextcloud Deck card.
List attachments on a Nextcloud Deck card.
Returns both shared-file attachments (``type="file"``, created via
:func:`deck_attach_file` / :func:`deck_attach_note`) and uploaded
binary attachments (``type="deck_file"``). Each carries a ``url`` that
opens it — the file in Files for ``type="file"``, Deck's download route
for ``type="deck_file"``.
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the carddeck_move_card_to_boardtool Move a Nextcloud Deck card to a stack on a different board.
Move a Nextcloud Deck card to a stack on a different board.
The card keeps its identity (same id, comments, attachments), along
with its archived state, due date and user assignments (an assignee
without access to the target board stays assigned but cannot act on the
card). Deck remaps the card's board-scoped labels to the destination
board by title — reusing a same-titled label there, or cloning it when
you have board-manage permission. Use deck_reorder_card for moves
within a single board.
Two caveats from Deck's move route: the card's owner is reassigned to
the user performing the move (the original owner is not preserved), and
a card marked done keeps its done state but its done timestamp is reset
to the time of the move.
target_stack_id must be a stack on target_board_id. The move is
rejected otherwise.
Args:
source_board_id: The ID of the board the card currently lives on
source_stack_id: The ID of the stack the card currently lives in
card_id: The ID of the card to move
target_board_id: The ID of the destination board
target_stack_id: The ID of the destination stack (must be on target_board_id)
order: Position within the destination stack (default 0 = top)deck_remove_dependent_cardtool Remove a dependency between two Nextcloud Deck cards.
Remove a dependency between two Nextcloud Deck cards.
Removes the dependency of ``card_id`` on ``dependent_card_id`` that was
created by deck_assign_dependent_card.
Args:
board_id: The ID of the board containing the depending card
stack_id: The ID of the stack containing the depending card
card_id: The ID of the card that depends on another card
dependent_card_id: The ID of the dependency to removedeck_remove_label_from_cardtool Remove a label from a Nextcloud Deck card
Remove a label from a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
label_id: The ID of the label to removedeck_reorder_cardtool Reorder a Nextcloud Deck card within a board.
Reorder a Nextcloud Deck card within a board.
Moves a card to a new position, optionally into a different stack on
the SAME board. To move a card to a stack on a DIFFERENT board, use
deck_move_card_to_board instead — reordering across boards is rejected
because it would orphan the card's board-scoped labels.
Args:
board_id: The ID of the board
stack_id: The ID of the current stack
card_id: The ID of the card
order: New position in the target stack
target_stack_id: The ID of the target stack (must be on board_id)deck_unarchive_cardtool Unarchive a Nextcloud Deck card
Unarchive a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the carddeck_unassign_user_from_cardtool Unassign a user from a Nextcloud Deck card
Unassign a user from a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
user_id: The user ID to unassigndeck_update_cardtool Update a Nextcloud Deck card
Update a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
title: New title for the card
description: New description for the card
type: New type for the card
owner: New owner for the card
order: New order for the card
duedate: New due date for the card (ISO-8601 format)
archived: Whether the card should be archived
done: Completion date for the card (ISO-8601 format)
startdate: New start date for the card (ISO-8601 format).
Pass an empty string to clear it.
color: New card color as hex RGB, e.g. "FF0000".
Pass an empty string to clear it.deck_update_card_commenttool Update a Nextcloud Deck card comment.
Update a Nextcloud Deck card comment.
The same 1000-character limit applies as for creation (measured after
trimming, in Unicode code points), but the message CANNOT be split: an
update replaces one comment in place. To add more than fits, post a
follow-up comment with deck_create_card_comment instead of growing an
existing one past the limit.
Only the comment's author can update it. The server returns 403
otherwise.
Args:
card_id: The ID of the card the comment belongs to
comment_id: The ID of the comment to update
message: The new comment text (max 1000 characters)deck_update_labeltool Update a Nextcloud Deck label
Update a Nextcloud Deck label
Args:
board_id: The ID of the board
label_id: The ID of the label
title: New title for the label
color: New color for the label (hex format without #)deck_update_stacktool Update a Nextcloud Deck stack
Update a Nextcloud Deck stack
Args:
board_id: The ID of the board
stack_id: The ID of the stack
title: New title for the stack
order: New order for the stacknc_auth_check_statustool Check if Nextcloud access has been provisioned. If a Login Flow is pending, this will poll for completion. Recommended polling interval: 5 seconds.Network
Check if Nextcloud access has been provisioned. If a Login Flow is pending, this will poll for completion. Recommended polling interval: 5 seconds.
nc_auth_provision_accesstool Start Nextcloud Login Flow v2 to obtain an app password. This is required before using any Nextcloud tools. You will be given a URL to open in your browser to lNetwork
Start Nextcloud Login Flow v2 to obtain an app password. This is required before using any Nextcloud tools. You will be given a URL to open in your browser to log in.
nc_auth_update_scopestool Update the scopes for your Nextcloud access. This starts a new Login Flow with the combined scope set. The current app password remains valid until the new one Network
Update the scopes for your Nextcloud access. This starts a new Login Flow with the combined scope set. The current app password remains valid until the new one is obtained.
nc_calendar_bulk_operationstool Perform bulk operations (update/delete) on events matching filter criteria.Filesoutside text
Perform bulk operations (update/delete) on events matching filter criteria.
This tool allows you to efficiently modify or delete multiple events at once
by applying filters to find matching events and then performing the specified operation.
Args:
operation: Type of operation - "update" or "delete"
title_contains: Filter events where title contains this text
categories: Filter events containing any of these categories (comma-separated)
calendar_name: Filter events from this specific calendar
start_date: Filter events starting from this date (YYYY-MM-DD)
end_date: Filter events ending before this date (YYYY-MM-DD)
status: Filter events by status (CONFIRMED, TENTATIVE, CANCELLED)
location_contains: Filter events where location contains this text
# For update operations:
new_title: New title for matching events
new_description: New description for matching events
new_location: New location for matching events
new_categories: New categories for matching events (comma-separated)
new_priority: New priority for matching events (1-9, 5=normal)
new_reminder_minutes: New reminder time in minutes before event
# For move operations:
target_calendar: Calendar to move events to (requires operation="move")
apply_to_series: A matched occurrence of a recurring event stands for
the whole stored series: update/delete act on every occurrence,
not only those inside the date filter. Such matches are skipped
(status "skipped") unless this is true. Move never takes a
recurring series.
Returns:
Summary of operation results including counts and detailsnc_calendar_complete_todotool Mark a todo/task complete.Filesoutside text
Mark a todo/task complete.
Sets STATUS, PERCENT-COMPLETE and COMPLETED together. Doing this through
nc_calendar_update_todo requires knowing that all three are needed and
setting each explicitly — passing status="COMPLETED" alone leaves
PERCENT-COMPLETE stale and writes no completion timestamp.
Args:
calendar_name: Name of the calendar containing the todo
todo_uid: UID of the todo to complete
ctx: MCP context
completed: Completion timestamp (ISO format). Defaults to now (UTC).
etag: The ETag you read this todo with. Optional, and usually
unnecessary — completing a task is normally the intended
outcome whatever else changed. It is offered anyway so that a
caller who *does* want a guarded completion is not pushed back
onto nc_calendar_update_todo and the three-property footgun
this tool exists to spare them.
Returns:
CompleteTodoResponse carrying the three values actually written.
Raises:
ToolError: If ``etag`` was given and the todo changed since.nc_calendar_create_eventtool Create a comprehensive calendar event with full feature support.
Create a comprehensive calendar event with full feature support.
Args:
calendar_name: Name of the calendar to create the event in
title: Event title
start_datetime: ISO format. Three modes:
- ``"2025-01-15T14:00:00Z"`` or ``"2025-01-15T14:00:00+00:00"``
→ stored as UTC.
- ``"2025-01-15T14:00:00"`` with ``timezone="America/New_York"``
→ stored as TZID-bound (server emits ``DTSTART;TZID=...:...``
plus a VTIMEZONE component).
- ``"2025-01-15T14:00:00"`` alone → stored as RFC 5545 floating
local time (interpreted by viewers in their own zone). A
warning is logged so the choice is visible.
- ``"2025-01-15"`` for all-day events.
ctx: MCP context
end_datetime: ISO format end time, empty for all-day events
all_day: Whether this is an all-day event
description: Event description/details
location: Event location
categories: Comma-separated categories (e.g., "work,meeting")
recurring: Whether this is a recurring event. A non-empty
``recurrence_rule`` already implies recurrence, so leave this
unset unless you want to suppress it with ``False``.
recurrence_rule: RFC5545 RRULE (e.g., "FREQ=WEEKLY;BYDAY=MO,WE,FR")
recurrence_end_date: Date (or ISO datetime) the series stops
recurring, written as the rule's ``UNTIL``. Inclusive: a
date-only value keeps that day's occurrence. Rejected if
``recurrence_rule`` already carries ``UNTIL`` or ``COUNT``.
reminder_minutes: Minutes before event to send reminder
reminder_email: Also send an email reminder, as a second VALARM with
``ACTION:EMAIL``. Nextcloud addresses it to the event's
attendees and the calendar's sharees.
status: Event status: CONFIRMED, TENTATIVE, or CANCELLED
priority: Priority level 1-9 (1=highest, 9=lowest, 5=normal)
privacy: Privacy level: PUBLIC, PRIVATE, or CONFIDENTIAL
attendees: Comma-separated email addresses
url: Related URL for the event
color: Event colour as a CSS3 colour name (e.g. ``"tomato"``).
Nextcloud's Calendar UI resolves COLOR through a CSS3 name
lookup, so a hex value is stored but never rendered.
timezone: Optional IANA timezone name (e.g. ``"America/New_York"``).
Applied only when ``start_datetime``/``end_datetime`` are naive
(no offset, no ``Z``). Ignored — with a warning — when the
inputs already carry an explicit offset.
reminders: Ordered list of alarms, replacing ``reminder_minutes`` /
``reminder_email`` when given. Each needs exactly one of
``minutes_before``, ``trigger`` (RFC 5545 duration) or
``trigger_at`` (absolute), plus an optional ``action``
(DISPLAY/EMAIL/AUDIO), ``description``, ``summary`` (EMAIL
subject) and ``related`` (START/END).
Returns:
Dict with event creation resultnc_calendar_create_meetingtool Quick meeting creation with smart defaults
Quick meeting creation with smart defaults
This is a convenience function for creating events with common meeting defaults.
It automatically:
- Calculates end time based on duration
- Sets status to CONFIRMED
- Adds a reminder
- Uses simpler date/time inputs instead of full ISO format
For full control over all event properties, use nc_calendar_create_event instead.
Args:
title: Meeting title
date: Meeting date (YYYY-MM-DD format, e.g., "2025-01-15")
time: Meeting start time (HH:MM format, e.g., "14:00")
ctx: MCP context
duration_minutes: Meeting duration in minutes (default: 60)
calendar_name: Calendar to create the meeting in (default: "personal")
attendees: Comma-separated email addresses of attendees
location: Meeting location
description: Meeting description/agenda
reminder_minutes: Minutes before meeting to send reminder (default: 15)
timezone: IANA timezone ``date``/``time`` are expressed in (e.g.
``"Europe/Amsterdam"``). Defaults to the user's Nextcloud
timezone setting. Only if that is unset or unreadable is the
meeting stored as floating local time.
Returns:
Dict with meeting creation resultnc_calendar_create_todotool Create a new todo/task in a calendar.
Create a new todo/task in a calendar.
Args:
calendar_name: Name of the calendar to create the todo in
summary: Todo title/summary
ctx: MCP context
description: Detailed description of the todo
status: Todo status (NEEDS-ACTION, IN-PROCESS, COMPLETED, CANCELLED)
priority: Priority (0=undefined, 1=highest, 9=lowest)
due: Due date/time (ISO format, e.g., "2025-01-15T14:00:00"). A
date-only value ("2025-01-15") makes it a whole-day task.
dtstart: Start date/time (ISO format). Date-only means whole-day.
RFC 5545 requires both to be the same kind, so a time on
either side makes both date-times.
categories: Comma-separated categories (e.g., "work,urgent")
reminders: Ordered list of alarms. See ``nc_calendar_create_event``
for the shape.
Returns:
Dict with todo creation resultnc_calendar_delete_eventtool Delete a calendar event.
Delete a calendar event.
A missing event is reported as success (status 404) so retries are safe.
A server *refusal* — a scheduled/iMIP object, or a stale entry in the
calendar trashbin holding the UID — comes back with ``success=False`` and
a message explaining the likely cause, rather than raising.nc_calendar_delete_todotool Delete a todo/task from a calendar.
Delete a todo/task from a calendar.
A missing todo is reported as success (status 404) so retries are safe.
A server *refusal* — a scheduled/iMIP object, or a stale entry in the
calendar trashbin holding the UID — comes back with ``success=False`` and
a message explaining the likely cause, rather than raising.
Args:
calendar_name: Name of the calendar containing the todo
todo_uid: UID of the todo to delete
ctx: MCP context
Returns:
DeleteTodoResponse carrying the status and, on refusal, why.nc_calendar_find_availabilitytool Find available time slots for scheduling meetings.
Find available time slots for scheduling meetings.
Analyses the events in your calendars (and, for any attendees given,
their free/busy as reported by the server) and returns the gaps that
are long enough. Slots are *maximal* free windows: a free morning comes
back once as a single long slot, not as a grid of candidate start
times, so pick any sub-range of at least duration_minutes from one.
Not everything on a calendar consumes time. Events marked free
(TRANSP:TRANSPARENT), cancelled events, and calendars set to "never
show me as busy" are ignored. All-day events are ignored too unless
include_all_day is set, because birthdays, name days and subscribed
holiday feeds would otherwise blank out whole working days.
Args:
duration_minutes: Required duration for the meeting in minutes
attendees: Comma-separated attendee email addresses whose free/busy
should also be checked (RFC 6638, which requires a server that
answers scheduling requests for them)
date_range_start: Start date for availability search (YYYY-MM-DD),
defaulting to now. Never searches into the past.
date_range_end: End date for availability search (YYYY-MM-DD),
defaulting to a week after the start
business_hours_only: Only suggest slots between 09:00 and 17:00
exclude_weekends: Skip Saturdays and Sundays
preferred_times: Preferred time ranges as "HH:MM-HH:MM"
(comma-separated). When given, these replace business hours
rather than narrowing them. Overlapping ranges are merged, and
a malformed one is skipped rather than failing the query.
include_all_day: Treat all-day events as busy
timezone: IANA timezone the business hours and preferred times are
expressed in, e.g. "Europe/Amsterdam". Defaults to the server's
local zone. An unknown name is an error, not a fallback.
Returns:
The available slots, plus the window that was actually searchednc_calendar_get_eventtool Get detailed information about a specific eventFilesoutside text
Get detailed information about a specific event
nc_calendar_get_upcoming_eventstool Get upcoming events in next N daysFilesoutside text
Get upcoming events in next N days
nc_calendar_list_calendarstool List all available calendars for the user
List all available calendars for the user
nc_calendar_list_eventstool List events in a calendar (or all calendars) within date range with advanced filtering.Filesoutside text
List events in a calendar (or all calendars) within date range with advanced filtering.
Args:
ctx: MCP context
calendar_name: Name of the calendar to search. Required unless
search_all_calendars=True, in which case it is ignored.
start_date: Start date for search (YYYY-MM-DD format, e.g., "2025-01-01")
end_date: End date for search (YYYY-MM-DD format, e.g., "2025-01-31")
limit: Maximum number of events to return, applied after the filters
and keeping the earliest by start
min_attendees: Filter events with at least this many attendees
min_duration_minutes: Filter events with at least this duration
categories: Filter events containing any of these categories (comma-separated, e.g., "work,meeting")
status: Filter events by status (CONFIRMED, TENTATIVE, or CANCELLED)
title_contains: Filter events where title contains this text
location_contains: Filter events where location contains this text
search_all_calendars: If True, search across all calendars instead of just one
Returns:
List of events matching the filtersnc_calendar_list_todostool List todos/tasks in a calendar with optional filtering.Filesoutside text
List todos/tasks in a calendar with optional filtering.
Args:
calendar_name: Name of the calendar to list todos from
ctx: MCP context
status: Filter by status (NEEDS-ACTION, IN-PROCESS, COMPLETED, CANCELLED)
min_priority: Filter by minimum priority (1=highest, 9=lowest)
categories: Filter by categories (comma-separated, e.g., "work,urgent")
summary_contains: Filter todos where summary contains this text
Returns:
List of todos matching the filtersnc_calendar_manage_calendartool Manage calendar creation, deletion, and properties.
Manage calendar creation, deletion, and properties.
This tool provides comprehensive calendar management functionality including
creating new calendars, deleting existing ones, and updating calendar properties.
Args:
action: Action to perform - "create", "delete", "update", or "list"
calendar_name: Internal name for the calendar (required for create/delete/update)
display_name: Human-readable name for the calendar (used for create/update)
description: Description for the calendar (used for create/update)
color: Hex color code for the calendar (e.g., "#1976D2" for blue)
Returns:
Result of the calendar management operationnc_calendar_search_todostool Search todos across all calendars with optional filtering.
Search todos across all calendars with optional filtering.
Args:
ctx: MCP context
status: Filter by status (NEEDS-ACTION, IN-PROCESS, COMPLETED, CANCELLED)
min_priority: Filter by minimum priority (1=highest, 9=lowest)
categories: Filter by categories (comma-separated, e.g., "work,urgent")
summary_contains: Filter todos where summary contains this text
Returns:
List of todos matching the filters from all calendarsnc_calendar_update_eventtool Update any aspect of an existing event.Filesoutside text
Update any aspect of an existing event.
Only the arguments you pass are touched. Everything else on the stored
event is preserved. See ``nc_calendar_create_event`` for the shared
parameter semantics, including the datetime encoding rules that
``timezone`` selects between.
Recurrence, specifically:
* ``recurrence_rule=""`` or ``recurring=False`` removes the series.
* ``recurrence_end_date`` alone re-bounds the *stored* rule, replacing
any ``UNTIL``/``COUNT`` it carries. Combined with an explicit
``recurrence_rule`` that already bounds itself, it raises instead —
that combination contradicts itself within one request.
Reminders, likewise. Omit them all and the stored alarms survive. Pass
``reminders=[]`` to clear them, or a list to replace them wholesale.nc_calendar_update_todotool Update an existing todo/task.Filesoutside text
Update an existing todo/task.
Args:
calendar_name: Name of the calendar containing the todo
todo_uid: UID of the todo to update
ctx: MCP context
summary: New summary/title
description: New description
status: New status (NEEDS-ACTION, IN-PROCESS, COMPLETED, CANCELLED)
priority: New priority (0-9)
percent_complete: New completion percentage (0-100)
due: New due date/time (ISO format). Date-only means whole-day.
dtstart: New start date/time (ISO format). Date-only means whole-day.
A side left unchanged keeps the stored kind, so a bare date
still becomes a date-time on an existing timed todo.
completed: Completion timestamp (ISO format)
categories: New categories (comma-separated)
reminders: Replacement alarm list. Omit to keep the stored alarms,
or pass ``[]`` to clear them.
etag: The ETag you read this todo with (from nc_calendar_list_todos
or a previous update). The write is refused if the todo changed
since, so your read-modify-write cycle cannot silently discard
someone else's edit. Omitting it still guards the instant
inside this call, but not the window since your read.
Returns:
UpdateTodoResponse carrying the identifiers and the new ETag.
Raises:
ToolError: If the todo changed since ``etag`` was read.nc_contacts_create_addressbooktool Create a new addressbook.
Create a new addressbook.
Args:
name: The name of the addressbook.
display_name: The display name of the addressbook.nc_contacts_create_contacttool Create a new contact.
Create a new contact.
Args:
addressbook: The URI slug of the addressbook (e.g. "contacts"),
not the display name. Use nc_contacts_list_addressbooks to
find available URI slugs.
uid: The unique ID for the contact.
contact_data: A dictionary with the contact's details. Supported keys:
- ``fn`` (str): Formatted full name. Required unless name
parts are given, in which case it is derived from them.
- ``given_name``, ``family_name``, ``additional_names``,
``honorific_prefix``, ``honorific_suffix`` (str): Structured
name, written as vCard ``N``. Alternatively pass ``n`` as a
dict with these keys or as a list ``[family, given, ...]``.
``fn`` is never split into parts. Without them, ``N`` is
written empty.
- ``email`` (str or list of str/dicts): Email address(es).
- ``tel`` / ``phone`` (str or list): Phone number(s).
- ``org`` / ``organization`` (str or list of str): Organization.
Lists become semicolon-separated ORG components per RFC 6350.
- ``title`` (str): Job title.
- ``note`` (str): Free-form note.
- ``nickname`` (str or list of str).
- ``bday`` (ISO date str ``"YYYY-MM-DD"`` or ``datetime.date``).
- ``categories`` (list of str, or comma-separated str).
- ``url`` (str or list of str).
- ``adr`` / ``address`` (dict or list of dicts): Postal
address(es) with keys ``po_box``, ``extended``, ``street``,
``locality``, ``region``, ``postal_code``, ``country`` and an
optional ``type`` (e.g. ``"work"``, ``"home"``).
Unknown keys are ignored and logged as a warning. Example:
``{"fn": "John Doe", "email": "[email protected]",
"organization": "Acme", "note": "Met at conference"}``.nc_contacts_delete_addressbooktool Delete an addressbook.
Delete an addressbook.
nc_contacts_delete_contacttool Delete a contact.
Delete a contact.
Args:
addressbook: The URI slug of the addressbook (e.g. "contacts"),
not the display name. Use nc_contacts_list_addressbooks to
find available URI slugs.
uid: The unique ID of the contact to delete.nc_contacts_list_addressbookstool List all addressbooks for the user.
List all addressbooks for the user.
nc_contacts_list_contactstool List all contacts in the specified addressbook.
List all contacts in the specified addressbook.
Args:
addressbook: The URI slug of the addressbook (e.g. "contacts"),
not the display name. Use nc_contacts_list_addressbooks to
find available URI slugs.
include_photos: Include the inline base64 PHOTO payload. Off by
default: embedded photos dominate vCard size and can push the
response past what the transport delivers. ``has_photo`` still
says which contacts have one.
limit: Maximum number of contacts to return. None returns all.
offset: Number of contacts to skip, for paging through a large
addressbook together with ``limit``.nc_contacts_search_contactstool Search contacts by free-text query across name, nickname, email, and phone.
Search contacts by free-text query across name, nickname, email, and phone.
The query is matched case-insensitively as a substring against:
- the contact's full name (FN)
- any nickname
- every email address
- every phone number (digits only — formatting is stripped before
comparison so '+1 234 567 890' matches '2345678' and '234.567.890')
Args:
query: Free-text search string (case-insensitive substring match).
An empty query returns no results — use list_contacts for that.
addressbook: Optional URI slug of a specific addressbook to search.
When omitted, every addressbook for the user is searched.
include_photos: Include the inline base64 PHOTO payload. Off by
default -- see nc_contacts_list_contacts.
Returns:
ListContactsResponse with matching contacts. The ``addressbook``
field is set to the searched addressbook, or ``"*"`` when all
addressbooks were searched.nc_contacts_update_contacttool Update an existing contact while preserving all existing properties.Network
Update an existing contact while preserving all existing properties.
Args:
addressbook: The URI slug of the addressbook (e.g. "contacts"),
not the display name. Use nc_contacts_list_addressbooks to
find available URI slugs.
uid: The unique ID of the contact to update.
contact_data: A dictionary with the contact's updated details. Supported
keys mirror nc_contacts_create_contact:
- ``fn`` (str): Formatted full name. Not derived from name
parts on update. Pass it explicitly to change it.
- ``given_name``, ``family_name``, ``additional_names``,
``honorific_prefix``, ``honorific_suffix`` (str), or ``n``
(dict or list): Structured name. Only the
components passed are changed, the rest are kept.
- ``email`` (str): Email address. **Update path supports plain
strings only**. Dict / list-form inputs are not applied — the
existing EMAIL line is preserved unchanged and a warning is
logged. Use create_contact for multi-entry support with TYPE
annotations.
- ``tel`` / ``phone`` (str): Phone number. Same single-string
limitation as ``email`` above.
- ``org`` / ``organization`` (str or list of str): Organization.
Lists become semicolon-separated ORG components per RFC 6350.
- ``title`` (str): Job title.
- ``note`` (str): Free-form note.
- ``nickname`` (str or list of str).
- ``bday`` (ISO date str ``"YYYY-MM-DD"`` or ``datetime.date``).
Non-ISO strings are rejected with a warning. The existing
BDAY line is preserved.
- ``categories`` (list of str, or comma-separated str).
- ``url`` (str or list of str). Only the first URL is written
on update. Multi-URL contacts should use create_contact.
- ``adr`` / ``address`` (dict or list of dicts, same shape as
create): **Replaces all** existing addresses, so pass every
address the contact should keep. Only ``[]`` removes them
all. A value with no usable address is ignored. A grouped
``item1.ADR`` is replaced ungrouped, so its ``X-ABLabel``
label no longer applies.
Example: ``{"fn": "Jane Doe", "email": "[email protected]"}``.
etag: Optional ETag for optimistic concurrency control. Pass the
value from a previous read or update. The update is rejected if
the contact changed since.
Returns:
The updated contact and its new ETag, so updates can be chained
without an intervening read.nc_cookbook_create_recipetool Create a new recipe.
Create a new recipe.
Required: name
Optional: All other recipe fields following schema.org/Recipe format.
Times should be in ISO8601 duration format (e.g., 'PT30M' for 30 minutes).nc_cookbook_delete_recipetool Delete a recipe permanently
Delete a recipe permanently
nc_cookbook_get_recipetool Get a specific recipe by its ID
Get a specific recipe by its ID
nc_cookbook_get_recipes_in_categorytool Get all recipes in a specific category.
Get all recipes in a specific category.
Use '_' as the category name to get recipes with no category.nc_cookbook_get_recipes_with_keywordstool Get all recipes that have specific keywords/tags
Get all recipes that have specific keywords/tags
nc_cookbook_import_recipetool Import a recipe from a URL using schema.org metadata.
Import a recipe from a URL using schema.org metadata.
This extracts recipe data from websites that use schema.org Recipe markup.
Many popular recipe sites support this standard.nc_cookbook_list_categoriestool Get all known categories.
Get all known categories.
Note: A category name of '*' indicates recipes with no category.nc_cookbook_list_keywordstool Get all known keywords/tags
Get all known keywords/tags
nc_cookbook_list_recipestool Get all recipes in the database
Get all recipes in the database
nc_cookbook_reindextool Trigger a rescan of all recipes into the caching database.
Trigger a rescan of all recipes into the caching database.
This rebuilds the search index and should be used after manual file changes.nc_cookbook_search_recipestool Search for recipes by keywords, tags, and categories
Search for recipes by keywords, tags, and categories
nc_cookbook_set_configtool Set Cookbook app configuration.
Set Cookbook app configuration.
Args:
folder: Recipe folder path in user's files
update_interval: Automatic rescan interval in minutes
print_image: Whether to print images with recipesnc_cookbook_update_recipetool Update an existing recipe.
Update an existing recipe.
Provide only the fields you want to update. Unspecified fields remain unchanged.nc_get_vector_sync_statustool Get the current vector sync status.Env vars
Get the current vector sync status.
Returns information about the vector sync process, including:
- Number of documents indexed in the vector database
- Number of documents pending processing
- Current sync status (idle, syncing, or disabled)
This is useful for determining when vector indexing is complete
after creating or updating content across all indexed apps.nc_mail_create_tagtool Create a mail tag, or return the existing one (requires mail.write scope).
Create a mail tag, or return the existing one (requires mail.write scope).
Tags are IMAP keywords private to the user. The Mail app has no
tag-listing endpoint, so this is also how you look a tag up — calling it
for an existing name returns that tag rather than creating a duplicate.
Names normalise to a lowercase IMAP label with spaces as underscores, so
"AI Index", "ai index" and "ai_index" are all the same tag.
Args:
display_name: Tag name (max 128 characters)
color: Hex colour, applied only when the tag is created
Returns:
MailTagResponse with the tag, including the ``id`` needed for the
``tags:<id>`` filter of nc_mail_list_messages.nc_mail_delete_messagetool Delete a message (requires mail.write scope).
Delete a message (requires mail.write scope).
The Mail app moves the message to the account's trash mailbox, or
expunges it permanently if it is already in trash. Requires the account
to have a trash mailbox — without one the Mail app rejects the call
("No trash mailbox configured").
Args:
message_id: Numeric message id
Returns:
MailActionResponse confirming the deletion. ``message_id`` echoes
the input and is **stale on return** — trashing re-caches the
message under a new id, so retrying with the same id fails.nc_mail_get_attachmenttool Get a single mail attachment's metadata and content (requires mail.read scope).
Get a single mail attachment's metadata and content (requires mail.read scope).
For an image you want to look at, use nc_mail_view_attachment instead: it
shows the picture, where this returns base64 text.
Args:
message_id: Numeric message id
attachment_id: Attachment id (a string, from the message's attachments)
Returns:
GetAttachmentResponse with name, mime, size, and content. ``content``
is the attachment body base64-encoded. Large attachments produce a
correspondingly large response, so prefer the ``size`` from the
message's attachment list before fetching.nc_mail_get_messagetool Get a single mail message with its full body (requires mail.read scope).
Get a single mail message with its full body (requires mail.read scope).
The Mail app fetches the body from IMAP server-side.
Args:
message_id: Numeric message id (``database_id`` from nc_mail_list_messages)
Returns:
GetMessageResponse with the full message including body and attachments.
Fetch an attachment with nc_mail_get_attachment, or look at an image
one with nc_mail_view_attachment. Attachments with ``id: null`` are
inline body parts and cannot be fetched by either (both require a
string id).nc_mail_get_message_sourcetool Get a message's raw RFC 2822 source (requires mail.read scope).
Get a message's raw RFC 2822 source (requires mail.read scope).
The complete original message including all headers — use this when the
parsed view from nc_mail_get_message is not enough (checking
Received/DKIM headers, List-Unsubscribe, custom X- headers).
Args:
message_id: Numeric message id
Returns:
GetMessageSourceResponse with the raw source. ``source`` is None if
the Mail app returns no content for the message.nc_mail_list_accountstool List the user's configured mail accounts (requires mail.read scope).
List the user's configured mail accounts (requires mail.read scope).
nc_mail_list_mailboxestool List the mailboxes (folders) of a mail account (requires mail.read scope).
List the mailboxes (folders) of a mail account (requires mail.read scope).
Args:
account_id: Account ID (from nc_mail_list_accounts)
Returns:
ListMailboxesResponse with mailboxes. Use a mailbox's ``database_id``
with nc_mail_list_messages.nc_mail_list_messagestool List message envelopes in a mailbox, newest first (requires mail.read scope).
List message envelopes in a mailbox, newest first (requires mail.read scope).
Reads cached envelope metadata (fast). Does not fetch bodies. Use
nc_mail_get_message to fetch a full body.
Args:
mailbox_id: Numeric mailbox id (``database_id`` from nc_mail_list_mailboxes)
cursor: Pagination cursor from a prior page
search_filter: Optional filter query — space-separated ``token:value``
terms, ANDed together. Supported tokens:
* ``is:``/``not:`` — ``read``, ``unread``, ``starred``,
``answered``, ``important``
* ``from:``, ``to:``, ``cc:``, ``bcc:`` — substring match on the
address or display name
* ``subject:``, ``body:`` — substring match (``body:`` searches
IMAP server-side and is slower)
* ``tags:`` — comma-separated tag *database ids* (not names,
get one from nc_mail_create_tag)
* ``start:``, ``end:`` — sent-date bounds, as an ISO date or
datetime (``2026-11-01``, ``2026-11-01T09:00+01:00``), or Unix
seconds. Without an offset the time is taken as UTC. A bare
``end:`` date includes that whole day.
* ``flags:`` — comma-separated ``read``/``unread``/``starred``/
``answered``/``important``/``attachments``
* ``match:anyof`` — OR the from/to/cc/bcc/subject/body terms
instead of ANDing them
Example: ``is:unread from:alice subject:invoice``
limit: Max messages to return (1-100, default 20)
Returns:
ListMessagesResponse with message summaries. ``has_more`` is a
heuristic (true when exactly ``limit`` messages were returned), so it
can be a false positive when a mailbox holds exactly ``limit``
messages. Page with ``cursor`` and stop on an empty result.nc_mail_move_messagetool Move a message to another mailbox (requires mail.write scope).
Move a message to another mailbox (requires mail.write scope).
Args:
message_id: Numeric message id
destination_mailbox_id: Target mailbox id (``database_id`` from
nc_mail_list_mailboxes)
Returns:
MailActionResponse. ``message_id`` echoes what you passed in and is
**stale on return**: the move invalidates it, and the message is
re-cached in the destination under a new id. Re-list the destination
mailbox to address it again — do not retry this call with the same
id, which fails rather than repeating the move.nc_mail_remove_tagtool Remove a tag from a message (requires mail.write scope).
Remove a tag from a message (requires mail.write scope).
Args:
message_id: Numeric message id
tag: Tag display name
Returns:
MailTagResponse with the removed tag.nc_mail_save_drafttool Save an email as a draft WITHOUT sending it (requires mail.draft scope).
Save an email as a draft WITHOUT sending it (requires mail.draft scope).
Nothing is delivered to anyone. The draft is written to the account's
Drafts mailbox (created as "Drafts" if the account has none), where the
user can review, edit and send it from Nextcloud Mail or any other mail
client. Use this to prepare a message, for example a reply, that a person
sends themselves.
The ``From:`` identity is derived by the Mail app from ``account_id``.
Recipients are arrays of ``{"label": "...", "email": "..."}`` objects
(``label`` is optional), as for nc_mail_send_message. Example for ``to``::
[{"label": "John Doe", "email": "[email protected]"}]
To draft a reply, set the subject (e.g. "Re: <original subject>") and the
recipients yourself. There is no reply-reference parameter: the Mail app
does not keep In-Reply-To/References on drafts it writes to the Drafts
mailbox, so a reply sent from the draft is not linked to the original
message by those headers.
Every call saves a new draft. A saved draft cannot be changed through this
tool. To revise one, save a new draft and ask the user to discard the old
one.
The draft is marked as AI-generated, which Nextcloud Mail (5.12 and
later) shows when the draft is opened. The person sending it can remove
the marker.
Args:
account_id: Mail account ID to save the draft in (from nc_mail_list_accounts)
to: Array of To recipients (``[]`` for none yet)
subject: Email subject
body: Email body (plain text unless is_html is true)
is_html: Whether body contains HTML (default false)
cc: Optional array of CC recipients
bcc: Optional array of BCC recipients
Returns:
SaveDraftResponse confirming the draft was saved. Find the draft in
the account's Drafts mailbox.nc_mail_send_messagetool Send an email through a configured Nextcloud Mail account (requires mail.send scope).
Send an email through a configured Nextcloud Mail account (requires mail.send scope).
The ``From:`` identity is derived by the Mail app from ``account_id``.
Recipients are arrays of ``{"label": "...", "email": "..."}`` objects
(``label`` is optional). Example for ``to``::
[{"label": "John Doe", "email": "[email protected]"}]
Args:
account_id: Mail account ID to send from (from nc_mail_list_accounts)
to: Array of To recipients (``[]`` when sending only to cc/bcc)
subject: Email subject
body: Email body (plain text unless is_html is true)
is_html: Whether body contains HTML (default false)
cc: Optional array of CC recipients
bcc: Optional array of BCC recipients. At least one recipient is
needed across to, cc and bcc.
references: Optional RFC 2822 Message-ID for reply threading
Returns:
SendMessageResponse with success status and optional messagenc_mail_set_flagstool Set IMAP flags on a message, e.g. mark it read (requires mail.write scope).
Set IMAP flags on a message, e.g. mark it read (requires mail.write scope).
Only the flags you pass are changed. Omitted ones are left alone. Use
``seen=True`` after processing a message so it does not look unhandled,
and ``seen=False`` to mark it unread again.
Args:
message_id: Numeric message id (``database_id`` from nc_mail_list_messages)
seen: Mark read (True) or unread (False)
flagged: Star (True) or unstar (False)
answered: Mark as replied-to
junk: Mark as junk/spam. Unlike the others this is a custom IMAP
keyword, so the mail server silently ignores it unless the
mailbox permits custom keywords.
Returns:
MailActionResponse naming the flags that were applied. Passing no
flags at all is an error rather than a silent no-op.nc_mail_set_tagtool Assign a tag to a message (requires mail.write scope).
Assign a tag to a message (requires mail.write scope).
The tag is created if it does not exist yet, so this works without a
separate nc_mail_create_tag call.
Args:
message_id: Numeric message id
tag: Tag display name
Returns:
MailTagResponse with the assigned tag.nc_mail_view_attachmenttool Show an image attachment so you can look at it (requires mail.read scope).
Show an image attachment so you can look at it (requires mail.read scope).
Returns the image itself, which a vision model sees as a picture, not as
text. Use this instead of nc_mail_get_attachment for images (photos,
screenshots, scans): that tool returns base64 text, which you cannot look
at.
The image is scaled down to at most ``max_size`` pixels on its longer
edge, 1568 by default, the right size for a vision model. Raise it (up to
2576) to read small print, lower it to save tokens. A photo is turned
upright according to its orientation data.
The attachment is decoded on the MCP server (JPEG, PNG, GIF, WebP, BMP,
TIFF), which takes at most 80 megapixels for JPEG and 24 for the other
formats. Formats such as HEIC are not supported for mail attachments, since
Nextcloud renders no preview for them. Attachments that are not images are
refused. Use nc_mail_get_attachment for those. Inline body parts
(attachments with ``id: null``) cannot be fetched, as with
nc_mail_get_attachment.
Args:
message_id: Numeric message id
attachment_id: Attachment id (a string, from the message's attachments)
max_size: Longest edge of the image you receive, in pixels (64-2576)
Returns:
The image, followed by ``ViewMailAttachmentResponse``: its size and
format, and the size of the attachment it was made from (larger than
the image you got means a higher ``max_size`` would show more detail).nc_news_get_feed_healthtool Get health status for a specific feed (requires news.read scope).
Get health status for a specific feed (requires news.read scope).
Returns error count and last error message if the feed has update issues.
Args:
feed_id: Feed ID to check
Returns:
FeedHealthResponse with error statusnc_news_get_itemtool Get a specific News item by ID with full content (requires news.read scope).
Get a specific News item by ID with full content (requires news.read scope).
Args:
item_id: Item ID
Returns:
GetItemResponse with full item details including HTML bodync_news_get_starred_itemstool Get starred (favorited) News items (requires news.read scope).
Get starred (favorited) News items (requires news.read scope).
Convenience method for retrieving user's starred articles.
Args:
limit: Maximum number of items to return (default 50, -1 for all)
offset: Item ID to start after (for pagination)
Returns:
ListItemsResponse with starred itemsnc_news_get_statustool Get News app status and version (requires news.read scope).
Get News app status and version (requires news.read scope).
Returns version information and any configuration warnings.nc_news_get_unread_itemstool Get unread News items (requires news.read scope).
Get unread News items (requires news.read scope).
Convenience method for retrieving unread articles across all feeds.
Args:
limit: Maximum number of items to return (default 50, -1 for all)
offset: Item ID to start after (for pagination)
Returns:
ListItemsResponse with unread itemsnc_news_list_feedstool List all News feeds with metadata (requires news.read scope).
List all News feeds with metadata (requires news.read scope).
Returns feeds with unread counts, error status, and overall starred count.nc_news_list_folderstool List all News folders (requires news.read scope).
List all News folders (requires news.read scope).
nc_news_list_itemstool List News items (articles) with optional filtering (requires news.read scope).
List News items (articles) with optional filtering (requires news.read scope).
Args:
feed_id: Filter by specific feed ID
folder_id: Filter by specific folder ID
starred_only: Return only starred items
unread_only: Return only unread items
limit: Maximum number of items to return (default 50, -1 for all)
offset: Item ID to start after (for pagination)
Returns:
ListItemsResponse with items, count, and pagination infonc_notes_append_contenttool Append content to an existing note. The tool adds a `\n---\n`
Append content to an existing note. The tool adds a `\n---\n`
between the note and what will be appended.nc_notes_create_notetool
No description.
nc_notes_delete_notetool Delete a note permanently
Delete a note permanently
nc_notes_get_attachmenttool Get a specific attachment from a note
Get a specific attachment from a note
nc_notes_get_notetool Get a specific note by its ID (requires notes.read scope)
Get a specific note by its ID (requires notes.read scope)
nc_notes_list_notestool List notes, returning id, title, and category, plus the total count.
List notes, returning id, title, and category, plus the total count.
Without ``category``, ``total_found`` is the user's total number of notes, so
this answers "how many notes do I have" exactly. Search tools only return the
best matches. With ``category``, it counts that category only: the match is
exact and case-sensitive, and does not include nested ``category/sub``
categories. ``results`` holds at most ``limit`` notes, but ``total_found`` is
never limited. Requires notes.read scope.nc_notes_search_notestool Search notes by title or content, returning only id, title, and category (requires notes.read scope).
Search notes by title or content, returning only id, title, and category (requires notes.read scope).
nc_notes_update_notetool Update an existing note's title, content, or category (requires notes.write scope).
Update an existing note's title, content, or category (requires notes.write scope).
REQUIRED: etag parameter must be provided to prevent overwriting concurrent changes.
Get the current ETag by first retrieving the note using nc_notes_get_note tool.
If the note has been modified by someone else since you retrieved it,
the update will fail with a 412 error.nc_semantic_searchtool
No description.
nc_share_createtool Create a share for a file or folder in Nextcloud.
Create a share for a file or folder in Nextcloud.
Share a file or folder with another user or group. The authenticated user
must own the file/folder being shared.
Args:
path: Path to file/folder to share (relative to your files, e.g., "/document.txt")
share_with: Recipient identifier, required for every share type
except a public link: user id, group id, email address,
federated "user@remote", circle id, Talk conversation token or
Deck card id, matching share_type. Passing a recipient together
with share_type=3 is rejected -- a public link addresses nobody,
and Nextcloud would silently ignore the recipient and publish
the file to anyone holding the URL.
share_type: Share type - 0 for user (default), 1 for group, 4 for
email, 6 for federated, 7 for circle, 10 for Talk conversation,
12 for Deck card. Use 3 for a public link, though
nc_share_create_public_link is preferred for short-lived,
read-only download links with managed expiry
permissions: Share permissions (default: 1 for read-only):
- 1 = read
- 2 = update
- 4 = create
- 8 = delete
- 16 = share
- 31 = all permissions
Common: 1 (read-only), 3 (read+update), 15 (read+update+create+delete)
Returns:
JSON string with share information including share ID
Raises:
ToolError: If the share_type/share_with pairing is invalidnc_share_create_public_linktool Create a short-lived, read-only public download link for a file.
Create a short-lived, read-only public download link for a file.
Use this for binary files (especially images) the client needs as bytes
rather than as text: ``nc_webdav_read_file`` base64s anything it cannot
extract text from, which can exceed the MCP client response budget and get
truncated, leaving the file undecodable. (For documents -- PDF, DOCX --
prefer reading them: that tool returns their text or markdown.)
A public link keeps the MCP response small and lets the client download
the exact original bytes from ``download_url``.
The link is always **read-only** (``permissions=1``): a public,
anonymously-accessible link with write access would be a security
footgun, so it is intentionally not configurable. Use ``nc_share_create``
(shareType=3) if you genuinely need a writable public link.
Args:
path: Path to the file to share (relative to your files, e.g.
"/Receipts/receipt.jpg")
expires_in_minutes: How long the link should remain valid, in
minutes (default: 30). Must be positive — this tool only
creates short-lived links, never a permanent one. See the
expiry caveat below.
Expiry caveat:
Nextcloud enforces public-link expiry at **date granularity**, not
minute precision: a link expires at 00:00:00 on ``expireDate`` in
the owner's timezone (i.e. the end of the day before ``expireDate``).
The requested window is rounded up so the link stays valid at least
that long. ``expires_at`` reports the precise requested instant, but
the link may remain valid until the end of that day server-side. To
revoke earlier, call ``nc_share_delete`` with the returned
``share_id``.
Returns:
PublicDownloadLinkResponse with the share URL, download URL, and
advisory expiry.
Raises:
ToolError: If ``expires_in_minutes`` is not positive, or if the OCS
response carries no share url.nc_share_deletetool Delete a share by its ID.
Delete a share by its ID.
Remove a share that you created. You must be the owner of the share.
Args:
share_id: The ID of the share to delete
Returns:
JSON string confirming deletionnc_share_gettool Get information about a specific share.
Get information about a specific share.
Retrieve details about a share by its ID. You must have access to the share
(either as owner or recipient).
Args:
share_id: The ID of the share
Returns:
JSON string with share informationnc_share_listtool List shares created by you or shared with you.
List shares created by you or shared with you.
Args:
path: Optional path to filter shares for a specific file/folder
shared_with_me: If True, list shares that others shared with you.
If False (default), list shares you created.
Returns:
JSON string with list of sharesnc_share_updatetool Update the permissions of an existing share.
Update the permissions of an existing share.
Modify the permissions for a share you created. You must be the owner.
Args:
share_id: The ID of the share to update
permissions: New permissions value:
- 1 = read
- 2 = update
- 4 = create
- 8 = delete
- 16 = share
- 31 = all permissions
Common: 1 (read-only), 3 (read+update), 15 (read+update+create+delete)
Returns:
JSON string with updated share informationnc_shopping_list_add_itemstool Add one or more items to a shopping list.
Add one or more items to a shopping list.
Takes a list so a whole recipe's ingredients land in one call, e.g.
``[{"name": "flour", "quantity": "2", "unit": "cups"},
{"name": "eggs", "quantity": "3"}]``. See the ``items`` schema for the
fields each entry accepts — only ``name`` is required.
The whole list is validated before anything is sent, so a malformed
entry adds nothing. Once sending starts the items go one at a time — the
app has no bulk endpoint — so a failure partway through leaves the
earlier items on the list, and the error says how many those were.
A name already on the list is added again as a **second row**. The
quantity-merging the Shopping List web UI does is client-side, so the
API does not do it for you. To top up an existing item instead, read the
list with ``nc_shopping_list_get_items`` and use
``nc_shopping_list_update_item``.nc_shopping_list_check_itemtool Tick an item off the list, or put it back (``checked=false``).
Tick an item off the list, or put it back (``checked=false``).
nc_shopping_list_clear_checked_itemstool Delete every ticked-off item on a shopping list.
Delete every ticked-off item on a shopping list.
nc_shopping_list_create_listtool Create a new shopping list.
Create a new shopping list.
Titles are not unique — calling this twice with the same title makes two
lists.nc_shopping_list_delete_itemtool Delete a single item from a shopping list.
Delete a single item from a shopping list.
nc_shopping_list_delete_listtool Delete a shopping list and every item on it. Only the owner may do this.
Delete a shopping list and every item on it. Only the owner may do this.
nc_shopping_list_get_itemstool Get every item on a shopping list, ticked-off ones included.
Get every item on a shopping list, ticked-off ones included.
nc_shopping_list_get_listtool Get a single shopping list by ID.
Get a single shopping list by ID.
nc_shopping_list_get_liststool List every shopping list the user owns or has had shared with them.
List every shopping list the user owns or has had shared with them.
nc_shopping_list_uncheck_all_itemstool Put every ticked-off item on a shopping list back among the open items.
Put every ticked-off item on a shopping list back among the open items.
nc_shopping_list_update_itemtool Update an item's name, quantity, unit or shop area.
Update an item's name, quantity, unit or shop area.
Only the arguments given are changed. Omitted ones keep their value,
which also means this tool can set a field but not *clear* one back to
empty — pass a new value, or delete and re-add the item. Use
``nc_shopping_list_check_item`` to tick an item off — this tool does not
touch the checked state.nc_shopping_list_update_listtool Rename an existing shopping list.
Rename an existing shopping list.
nc_tables_delete_rowtool Delete a row from a table
Delete a row from a table
nc_tables_get_rowtool Get a single table row by ID.
Get a single table row by ID.
Pass ``columns`` (column IDs) to return only those cells (omit it for
all cells, while ``[]`` returns no cells).nc_tables_get_schematool Get the schema/structure of a specific table including columns and views
Get the schema/structure of a specific table including columns and views
nc_tables_insert_rowtool Insert a new row into a table.
Insert a new row into a table.
Data should be a dictionary mapping column IDs to values, e.g. {1: "text", 2: 42}nc_tables_list_tablestool List all tables available to the user
List all tables available to the user
nc_tables_read_tabletool Read rows from a table with optional pagination.
Read rows from a table with optional pagination.
Pass ``columns`` (column IDs from nc_tables_get_schema) to return only
those cells of each row (omit it for all cells, while ``[]`` returns rows
with no cells, e.g. to list row IDs). To read a filtered/sorted subset, use
nc_tables_read_view with one of the table's views.nc_tables_read_viewtool Read the rows of a table view, with the view's filters and sorting applied.
Read the rows of a table view, with the view's filters and sorting applied.
View IDs are listed under ``views`` in nc_tables_get_schema. Filters and
sorting are managed by the table owner in the Tables UI. Pass
``columns`` (column IDs) to return only those cells of each row (omit
it for all cells, while ``[]`` returns rows with no cells).nc_tables_update_rowtool Update an existing row in a table.
Update an existing row in a table.
Data should be a dictionary mapping column IDs to new values, e.g. {1: "new text", 2: 99}nc_webdav_copy_resourcetool Copy a file or directory in NextCloud.
Copy a file or directory in NextCloud.
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and either
the source or destination path (or one of their ancestor folders)
carries an excluded system tag.
Args:
source_path: Full path of the file or directory to copy
destination_path: Destination path for the copy
overwrite: Whether to overwrite the destination if it exists (default: False)
if_destination_match: Optional ETag of the destination (from
nc_webdav_read_file or nc_webdav_write_file). The copy then
replaces the destination only if it is still that exact version,
so ``overwrite=True`` cannot clobber a file someone else changed
in the meantime. Requires ``overwrite=True``. ``"*"`` is not
accepted. Files only — a directory destination always fails the
check with 412.
Returns:
``CopyResourceResponse``. ``success`` is
False for the known conflicts — 404 when the source does not
exist, 412 when the destination exists and ``overwrite`` is
False, 409 for a missing parent — with ``message`` explaining
which. Other failures raise.nc_webdav_create_commenttool Post a comment on a file in NextCloud.
Post a comment on a file in NextCloud.
To notify someone, mention them by Nextcloud user ID: ``@username``, or
``@"user id with spaces"``. Nextcloud parses the mention out of the
message when it stores the comment and sends the notification itself --
nothing else is needed here.
Raises ``ToolError`` when the file does not exist, or when
``EXCLUDED_TAGS`` is configured and the file (or an ancestor folder)
carries an excluded system tag. Raises ``ValueError`` for a blank
message, or one over Nextcloud's limit -- nothing is posted in either
case.
Args:
path: Full path to the file to comment on
message: The comment text (max 1000 characters, measured after
trimming whitespace, counting Unicode code points)
Returns:
CreateFileCommentResponse with the new comment's ID.nc_webdav_create_directorytool Create a directory in NextCloud.
Create a directory in NextCloud.
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and the
target path lies inside a folder carrying an excluded system tag.
Args:
path: Full path of the directory to create
Returns:
Dict with status_code (201 for created, 405 if already exists)nc_webdav_delete_resourcetool Delete a file or directory in NextCloud.
Delete a file or directory in NextCloud.
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and the
target path (or an ancestor folder) carries an excluded system tag.
Args:
path: Full path of the file or directory to delete
Returns:
Dict with status_code indicating result (404 if not found)nc_webdav_edit_filetool Change part of a text file in place, by exact text replacement.
Change part of a text file in place, by exact text replacement.
Prefer this over nc_webdav_write_file for changing an existing text
file: send only the passage to replace and its replacement, not the
whole file. Plain UTF-8 text files only, such as Markdown (including
Collectives pages), YAML, JSON, XML, CSV, configuration files and
source code. PDFs, Office and OpenDocument files, images other than
SVG, audio, video and archives are refused, because a text edit would
corrupt them. Replace those as a whole with nc_webdav_write_file.
Each edit replaces ``old_string`` with ``new_string``. ``old_string``
must match the file exactly, including whitespace, indentation and
line breaks, and must occur exactly once unless ``replace_all`` is
true, so quote enough surrounding text to make it unique. Strip the
line-number prefix if you copied the text from a read with
line_numbers. To delete text, use an empty ``new_string``.
Several edits are applied in order, each to the result of the previous
one, and saved as a single change (one new file version). If any edit
cannot be applied, nothing is saved and the error says which one and
why.
The file is read and written back guarded by its etag, so a change
made elsewhere at the same moment is never overwritten. Pass
``if_match`` (an etag from nc_webdav_read_file) to also refuse the edit
if the file changed since you read it. Windows line endings (CRLF) and
a byte-order mark are kept as they are.
Raises ``ToolError`` when the file does not exist, is not a plain UTF-8
text file, is larger than ``WEBDAV_WRITE_MAX_MB``, carries an excluded
tag, is locked, changed concurrently, or when an edit cannot be applied.
Args:
path: Full path of the file to edit
edits: Replacements, applied in order. Each has ``old_string``,
``new_string`` and optionally ``replace_all``.
if_match: Optional etag from an earlier read. The edit fails if
the file has changed since.
Returns:
``EditFileResponse`` with the new ``etag``, the number of
``replacements`` and a unified ``diff`` of the change, to check it
without re-reading the file.nc_webdav_find_by_nametool Find files by name pattern in NextCloud.
Find files by name pattern in NextCloud.
Args:
pattern: Name pattern to search for (supports % wildcard)
scope: Directory path to search in (empty string for user root)
limit: Maximum number of results to return
Returns:
SearchFilesResponse with list of matching filesnc_webdav_find_by_tag_nametool Find all files carrying a given tag.
Find all files carrying a given tag.
Args:
tag: Tag name, case-sensitive.nc_webdav_find_by_typetool Find files by MIME type in NextCloud.
Find files by MIME type in NextCloud.
Args:
mime_type: MIME type to search for (supports % wildcard)
scope: Directory path to search in (empty string for user root)
limit: Maximum number of results to return
Returns:
SearchFilesResponse with list of matching filesnc_webdav_get_file_tagstool List the tags assigned to one file.
List the tags assigned to one file.
Args:
path: Path to the file, relative to the user's files root.nc_webdav_list_commentstool Read the comments people have left on a file in NextCloud.
Read the comments people have left on a file in NextCloud.
Comments are how a team annotates a file in place -- review requests,
hand-offs, context that does not belong in the file itself.
Raises ``ToolError`` when the file does not exist, or when
``EXCLUDED_TAGS`` is configured and the file (or an ancestor folder)
carries an excluded system tag.
Args:
path: Full path to the file (e.g. "/Documents/report.pdf")
limit: Maximum number of comments to return (default: 20)
offset: How many of the newest comments to skip, for paging
Returns:
ListFileCommentsResponse with the comments, newest first.nc_webdav_list_directorytool List files and directories in the specified NextCloud path.
List files and directories in the specified NextCloud path.
When ``EXCLUDED_TAGS`` is configured: raises ``ToolError`` if the
listed path itself is tagged (or sits inside a tagged folder),
and otherwise omits any tagged children from the listing. The
early guard is consistent with the mutating tools and avoids a
round-trip to Nextcloud for a known-excluded path.
Args:
path: Directory path to list (empty string for root directory)
Returns:
DirectoryListing with files, total_count, directories_count, files_count, and total_sizenc_webdav_list_favoritestool List all favorite files in NextCloud.
List all favorite files in NextCloud.
Args:
scope: Directory path to search in (empty string for all favorites)
limit: Maximum number of results to return
Returns:
SearchFilesResponse with list of favorite filesnc_webdav_list_tagstool List all system tags available for tagging files.
List all system tags available for tagging files.
nc_webdav_list_trashtool List deleted files in the user's trash bin.
List deleted files in the user's trash bin.
Each entry carries the id needed to restore it, the location it was
deleted from, and when it was deleted.nc_webdav_list_versionstool List stored previous versions of a file.
List stored previous versions of a file.
Args:
path: Path to the file, relative to the user's files root.nc_webdav_move_resourcetool Move or rename a file or directory in NextCloud.
Move or rename a file or directory in NextCloud.
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and either
the source or destination path (or one of their ancestor folders)
carries an excluded system tag.
Args:
source_path: Full path of the file or directory to move
destination_path: New path for the file or directory
overwrite: Whether to overwrite the destination if it exists (default: False)
if_destination_match: Optional ETag of the destination (from
nc_webdav_read_file or nc_webdav_write_file). The move then
replaces the destination only if it is still that exact version,
so ``overwrite=True`` cannot clobber a file someone else changed
in the meantime. Requires ``overwrite=True``. ``"*"`` is not
accepted. Files only — a directory destination always fails the
check with 412.
Returns:
``MoveResourceResponse``. ``success`` is
False for the known conflicts — 404 when the source does not
exist, 412 when the destination exists and ``overwrite`` is
False, 409 for a missing parent — with ``message`` explaining
which. Other failures raise.nc_webdav_read_filetool Read the content of a file from NextCloud.
Read the content of a file from NextCloud.
For photos, screenshots and other images, use nc_webdav_view_image
instead: it shows you the image itself, while this tool returns it as
base64 text or OCR output.
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and the
file (or an ancestor folder) carries an excluded system tag.
Args:
path: Full path to the file to read
parse_document: How to handle a document (PDF, DOCX, image, ...):
- ``"auto"`` (default): extract its text. Cheapest route that
works -- a PDF with a good text layer is read directly, and a
scanned one escalates to OCR when the server has OCR enabled.
- ``"markdown"``: additionally reconstruct structure (headings,
tables) rather than returning a flat text layer. Costs a
second, slower parse and is bounded by a page ceiling, when it
cannot be honoured the response says so instead of pretending.
- ``"raw"``: do not parse. Text files are decoded, anything else
comes back base64-encoded.
Files no processor handles (plain text, JSON, archives) are
unaffected by this argument.
page_start: PDF only. First page to read (1-based). Omit it, and
page_end, to read the whole document. Use a range for a long
PDF: only those pages are parsed and returned, which is faster
and keeps the response to a size you can use. The markdown page
ceiling then counts only the requested pages.
page_end: PDF only. Last page to read (1-based, inclusive). Omitted
means through the last page. A value past the end is clamped to
the last page and noted in parse_notes. Neither argument can be
combined with parse_document="raw".
line_start: Text files only. First line to read (1-based). Use a
line range to look at part of a long text file instead of
loading all of it, for example to find the passage to change
with nc_webdav_edit_file. Cannot be combined with page_start or
page_end.
line_end: Text files only. Last line to read (1-based, inclusive).
Omitted means through the last line. A value past the end is
clamped. ``total_lines`` in the response says how long the file
is. A single line longer than the response limit is returned
cut off, and parse_notes says so.
line_numbers: Prefix each returned line with its number and a tab,
for a line-range read. Strip that prefix again before quoting
text in nc_webdav_edit_file.
Returns:
``ReadFileResponse``. Alongside ``path``/``content``/``content_type``/
``size``/``etag`` it always describes what you are actually holding:
- ``parse_status``: ``parsed`` / ``failed`` / ``skipped`` /
``not_applicable``.
- ``content_format``: ``markdown``, ``text`` or ``base64``.
- ``parse_tier`` / ``parse_processor``: which extraction tier
produced the content (``fast``, ``structured``, ``ocr``).
- ``parse_notes``: **if this is non-empty, tell the user what
degraded** (OCR unavailable, structure not reconstructed, size cap,
parse failure) rather than presenting the content as the complete
document.
- ``etag``: pass this back into ``nc_webdav_write_file``'s
``if_match`` when writing this same path later, so a manual edit
made elsewhere in the meantime (e.g. in the Nextcloud web UI) is
detected as a conflict instead of silently overwritten.
- ``url``: a link that opens the file in Nextcloud. Offer it when
reporting on the file, and especially when ``parse_notes`` says
the extraction degraded.
- ``page_count``: total pages in a parsed PDF. With ``page_start``/
``page_end`` (the pages actually returned) it tells you whether
more remains to read.nc_webdav_restore_from_trashtool Restore a deleted file from the trash bin to its original location.
Restore a deleted file from the trash bin to its original location.
Args:
entry_id: The id from nc_webdav_list_trash (not the file name).nc_webdav_restore_versiontool Roll a file back to an earlier version.
Roll a file back to an earlier version.
The current content is not lost: Nextcloud stores it as a version in
turn, so the rollback itself can be undone.
Args:
path: Path to the file, relative to the user's files root.
version_id: The version_id from nc_webdav_list_versions.nc_webdav_search_filestool Search for files in NextCloud using WebDAV SEARCH.
Search for files in NextCloud using WebDAV SEARCH.
This is a high-level search tool that supports common search patterns.
For more complex queries, use the specific search tools.
Args:
scope: Directory path to search in (empty string for user root)
name_pattern: File name pattern (supports % wildcard, e.g., "%.txt" for all text files)
mime_type: MIME type to filter by (supports % wildcard, e.g., "image/%" for all images)
only_favorites: If True, only return favorited files
limit: Maximum number of results to return
Returns:
SearchFilesResponse with list of matching filesnc_webdav_tag_filetool Attach a tag to a file, creating the tag if it does not exist yet.
Attach a tag to a file, creating the tag if it does not exist yet.
Args:
path: Path to the file, relative to the user's files root.
tag: Tag name.nc_webdav_untag_filetool Remove a tag from a file. The tag itself keeps existing.
Remove a tag from a file. The tag itself keeps existing.
Args:
path: Path to the file, relative to the user's files root.
tag: Tag name.nc_webdav_view_imagetool Show an image file so you can look at it (photos, screenshots, scans).Network
Show an image file so you can look at it (photos, screenshots, scans).
Returns the image itself, which a vision model sees as a picture, not as
text. Use this instead of nc_webdav_read_file for images: that tool
returns them as base64 text or OCR output, which you cannot look at.
Works for images anywhere in the user's files, including Notes
attachments, images on Collectives pages and files shared in Talk.
The image is scaled down to at most ``max_size`` pixels on its longer
edge, the right size for a vision model. Raise it (up to 2576) to read
small print, lower it to save tokens. A photo is turned upright according
to its orientation data.
Nextcloud renders the image, so formats such as HEIC work when the
Nextcloud server can preview them. Otherwise the original is decoded here
(JPEG, PNG, GIF, WebP, BMP, TIFF), which takes at most 80 megapixels for
JPEG and 24 for the other formats. Files that are not images are refused.
Raises ``ToolError`` for those, for files that do not exist or cannot be
decoded, and when ``EXCLUDED_TAGS`` hides the file.
Args:
path: Path of the image, relative to the user's files root
max_size: Longest edge of the image you receive, in pixels (64-2576)
Returns:
The image, followed by ``ViewImageResponse``: its size and format,
whether it was made from Nextcloud's preview or the original, and the
size of what it was made from (larger than the image you got means a
higher ``max_size`` would show more detail).nc_webdav_write_filetool Write content to a file in NextCloud.
Write content to a file in NextCloud.
To change part of an existing text file, use nc_webdav_edit_file
instead: it takes only the passage to replace, not the whole file.
Writes are **fail-closed**: an existing file is never silently
overwritten. What happens depends on ``if_match`` (see below).
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and the
target path (or an ancestor folder) carries an excluded system tag,
when the decoded content exceeds ``WEBDAV_WRITE_MAX_MB``, when the
write conflicts with a concurrent edit or an existing/missing file
(412), or when the file is locked by another client (423) -- see
``if_match`` below.
Args:
path: Full path where to write the file
content: File content (text or base64 for binary)
content_type: MIME type (auto-detected if not provided, use 'type;base64' for binary)
if_match: Controls overwrite safety.
- Omit (``None``) to **create a new file**: the write fails
with a ``ToolError`` if the path already exists. To change an
existing file you must first read it with
``nc_webdav_read_file`` and pass the etag it returned.
- Pass that **etag** to overwrite the file only if it has not
changed since you read it. If someone edited it in the
meantime (e.g. in the Nextcloud web UI) the write fails --
re-read and retry deliberately rather than looping.
- Pass the literal ``"*"`` to **force-overwrite** an existing
file unconditionally (fails if the file does not exist).
Returns:
``WriteFileResponse`` with ``path``, ``status_code``, ``size``,
``created`` (True when a new file was created, i.e. HTTP 201, False
when an existing file was overwritten, i.e. HTTP 204) and ``etag``.
``etag`` is the file as just written — pass it straight back as
``if_match`` on the next write to chain edits without an intervening
read. It is ``None`` when the server did not return one (some
proxies strip it). Re-read the file to obtain it in that case.provision_nextcloud_accesstool Provision offline access to Nextcloud resources. This is required before using Nextcloud tools. You'll need to complete an OAuth authorization in your browser.Network
Provision offline access to Nextcloud resources. This is required before using Nextcloud tools. You'll need to complete an OAuth authorization in your browser.
revoke_nextcloud_accesstool Revoke offline access to Nextcloud resources.Network
Revoke offline access to Nextcloud resources.
sar_case_createtool Open a subject access request (SAR) case.
Open a subject access request (SAR) case.
A case collects the documents to disclose about one person, with a
reason for each, and produces redacted archives of them. It is stored
as `<folder>/<name>/sar-case.json` in Nextcloud, so anyone who can
write that folder (e.g. a team folder) can work on it, in Astrolabe or
through these tools. Use the returned `case_id` with the other
`sar_case_*` tools.
Args:
folder: Existing folder the user can write to, e.g. a team folder.
name: Case name, e.g. "SAR-2026-014". Becomes a sub-folder.
subject: The data subject's names, aliases, email addresses, phone
numbers, NI numbers and addresses. These are kept in exports. List every
alias ("Jane Doe", "Ms Doe", "J. Doe"), as unlisted forms are
redacted.
description: Free text, e.g. the request reference.sar_case_exporttool Build a redacted archive of an open case, in the background.Network
Build a redacted archive of an open case, in the background.
Every person, address, UK postcode, email address, phone number and UK NI
number in the documents is replaced with a numbered placeholder ([PERSON_1],
[ADDRESS_1], ...), except the subject's own. The archive holds one PDF
per document (redacted text, not the original layout), an index with
each document's reason and redaction counts, and the logged searches.
The case is locked while exporting. Poll `sar_case_get` until it is
"ready_for_audit". Each export is a new version (`-v1`, `-v2`, ...).
Args:
output_folder: Where to write the archive. Defaults to the case's
own `exports/` folder.sar_case_gettool A SAR case: subject, items (paged by `offset`/`limit`, with
A SAR case: subject, items (paged by `offset`/`limit`, with
`items_total`), logged queries, exports, and the latest export's
progress in `latest_export`. Poll this after `sar_case_export`: the
case moves to "ready_for_audit" when the archive is written.sar_case_itemstool Add, update or remove documents in an open SAR case, and log the
Add, update or remove documents in an open SAR case, and log the
searches run for it.
Args:
add: Documents to include, using `doc_type` and `id` from search
results as `doc_type`/`doc_id`, optionally with a `reason`
(printed in the archive when given), `title`, `found_by` (the
query that found it) and a page range for paged files. Adding a
document already in the case updates it.
remove: Documents to drop, by `doc_type`/`doc_id`.
queries: Searches run for the case, including ones that found
nothing (`text`, optional `hits`). They are recorded in the archive.sar_case_listtool List the SAR cases this user can see, newest first, with their state
List the SAR cases this user can see, newest first, with their state
(open, exporting, ready_for_audit, closed) and item count.sar_case_searchtool Search for documents for an open SAR case, and log the search in it.
Search for documents for an open SAR case, and log the search in it.
Takes the same filters as `nc_semantic_search` (folders, document
types, modified dates, relevance) and returns the same results. The
query and its filters are recorded in the case and listed, redacted,
in the archive. Results default to one row per document. Add the ones
to disclose with `sar_case_items`.sar_case_updatetool Change a case's subject identifiers or description (open cases
Change a case's subject identifiers or description (open cases
only), close it, or reopen it.
Args:
state: "closed" finishes the case: it becomes read-only and cannot
be reopened. Its archives stay. "open" reopens a case that is
ready for audit, to change it and export again.talk_add_participanttool Add a participant to a group or public Talk conversation.
Add a participant to a group or public Talk conversation.
A one-to-one conversation cannot take additional participants -- the
server rejects that with a room-type error.
Args:
token: Conversation token.
participant: Identifier to add, interpreted according to `source`.
source: Where the identifier comes from - "users" (default),
"groups", "emails", "circles", or "federated_users".talk_create_conversationtool Create a new Talk conversation (room).
Create a new Talk conversation (room).
Args:
room_name: Display name for the room. Required for a group (2) or
public (3) room. Omit it for a one-to-one room, which spreed
names after the other participant.
room_type: 2 for a group room (default), 3 for a public room, 1 for
a one-to-one room.
invite: User or group ID to add at creation time. Required for a
one-to-one room, where it is the other participant and is what
defines the room. Optional otherwise.talk_get_conversationtool Get details of a Talk conversation by its token.
Get details of a Talk conversation by its token.
Args:
token: Unique room token (returned by ``talk_list_conversations``).talk_get_messagestool Read chat history for a Talk conversation.
Read chat history for a Talk conversation.
Returns the most recent messages (older first when paginated).
Does not move the user's read marker. Call
``talk_mark_as_read`` separately if desired.
Args:
token: Conversation token.
limit: Max messages per page. Valid range is 1-200 (spreed
caps server-side at 200). Values outside this range are
clamped. Default 50.
last_known_message_id: Pagination cursor — pass the
``last_known_message_id`` from the previous response to
fetch the next (older) page. An empty page with no
``last_known_message_id`` means there is no older history.
include_last_known: Include the cursor message in the page
instead of starting just before it.
thread_id: Optional ID of a thread (its root message ID) to read
only that thread: the root message plus every message posted
inside it. Use a message's ``threadId``, or the ``id`` of the
root returned by ``talk_send_message`` with ``thread_title``.
Pagination with ``last_known_message_id`` works the same
within the thread. The thread is complete once the root
message (``id`` equal to ``thread_id``) has been returned.
An unknown thread is an error on Talk 23+, while Talk 22
returns an empty page instead.talk_list_conversationstool List the user's Talk conversations (rooms).
List the user's Talk conversations (rooms).
Args:
modified_since: Optional Unix timestamp. Only conversations
modified after this time are returned.
include_status: Whether to include user-status info for
one-to-one conversations.talk_list_participantstool List the participants of a Talk conversation.
List the participants of a Talk conversation.
Args:
token: Conversation token.
include_status: Include each participant's user-status info.talk_list_reactionstool List the reactions on a Talk chat message, grouped by emoji.
List the reactions on a Talk chat message, grouped by emoji.
Args:
token: Conversation token.
message_id: ID of the message to read reactions from.
reaction: Optional single emoji to filter to.talk_mark_as_readtool Move the user's read marker forward in a Talk conversation.
Move the user's read marker forward in a Talk conversation.
Args:
token: Conversation token.
last_read_message: Optional message ID to mark as the new
read position. When omitted, spreed marks everything
currently in the room as read.talk_reacttool React to a Talk chat message with an emoji.
React to a Talk chat message with an emoji.
Returns the message's reactions after the change, so the caller does
not need a follow-up read.
Args:
token: Conversation token.
message_id: ID of the message to react to.
reaction: The emoji to react with.talk_remove_reactiontool Remove the user's own reaction from a Talk chat message.
Remove the user's own reaction from a Talk chat message.
Removing a reaction the user has not made is reported by the server as
a not-found error rather than succeeding silently.
Args:
token: Conversation token.
message_id: ID of the message to remove the reaction from.
reaction: The emoji to remove.talk_send_messagetool Post a chat message into a Talk conversation as the user.
Post a chat message into a Talk conversation as the user.
A random ``referenceId`` is attached so spreed dedupes the post
if the request is retried.
Args:
token: Conversation token.
message: Message text (max 32000 characters).
reply_to: Optional parent message ID to thread the reply.
thread_id: Optional ID of an existing thread to post into (the
thread's root message ID). Mutually exclusive with
thread_title.
thread_title: Optional title that starts a brand-new thread,
with this message as its root. Mutually exclusive with
thread_id and with reply_to. Instances that do not
advertise the "threads" feature under the spreed OCS
capability are expected to ignore it rather than error, so
this is not gated client-side -- normal message sending
and reply_to must keep working regardless.
silent: When True the message is delivered without push
notifications (e.g. for status updates).Text the model reads (223)
Every tool, prompt and resource description as written in the code: the model sees all of it, the user usually does not.
nc_mail_set_flags tool
Set IMAP flags on a message, e.g. mark it read (requires mail.write scope).
Only the flags you pass are changed. Omitted ones are left alone. Use
``seen=True`` after processing a message so it does not look unhandled,
and ``seen=False`` to mark it unread again.
Args:
message_id: Numeric message id (``database_id`` from nc_mail_list_messages)
seen: Mark read (True) or unread (False)
flagged: Star (True) or unstar (False)
answered: Mark as replied-to
junk: Mark as junk/spam. Unlike the others this is a custom IMAP
keyword, so the mail server silently ignores it unless the
mailbox permits custom keywords.
Returns:
MailActionResponse naming the flags that were applied. Passing no
flags at all is an error rather than a silent no-op.nc_auth_provision_access tool
Start Nextcloud Login Flow v2 to obtain an app password. This is required before using any Nextcloud tools. You will be given a URL to open in your browser to log in.
nc_auth_check_status tool
Check if Nextcloud access has been provisioned. If a Login Flow is pending, this will poll for completion. Recommended polling interval: 5 seconds.
nc_auth_update_scopes tool
Update the scopes for your Nextcloud access. This starts a new Login Flow with the combined scope set. The current app password remains valid until the new one is obtained.
nc_calendar_list_calendars tool
List all available calendars for the user
nc_calendar_create_event tool
Create a comprehensive calendar event with full feature support.
Args:
calendar_name: Name of the calendar to create the event in
title: Event title
start_datetime: ISO format. Three modes:
- ``"2025-01-15T14:00:00Z"`` or ``"2025-01-15T14:00:00+00:00"``
→ stored as UTC.
- ``"2025-01-15T14:00:00"`` with ``timezone="America/New_York"``
→ stored as TZID-bound (server emits ``DTSTART;TZID=...:...``
plus a VTIMEZONE component).
- ``"2025-01-15T14:00:00"`` alone → stored as RFC 5545 floating
local time (interpreted by viewers in their own zone). A
warning is logged so the choice is visible.
- ``"2025-01-15"`` for all-day events.
ctx: MCP context
end_datetime: ISO format end time, empty for all-day events
all_day: Whether this is an all-day event
description: Event description/details
location: Event location
categories: Comma-separated categories (e.g., "work,meeting")
recurring: Whether this is a recurring event. A non-empty
``recurrence_rule`` already implies recurrence, so leave this
unset unless you want to suppress it with ``False``.
recurrence_rule: RFC5545 RRULE (e.g., "FREQ=WEEKLY;BYDAY=MO,WE,FR")
recurrence_end_date: Date (or ISO datetime) the series stops
recurring, written as the rule's ``UNTIL``. Inclusive: a
date-only value keeps that day's occurrence. Rejected if
``recurrence_rule`` already carries ``UNTIL`` or ``COUNT``.
reminder_minutes: Minutes before event to send reminder
reminder_email: Also send an email reminder, as a second VALARM with
``ACTION:EMAIL``. Nextcloud addresses it to the event's
attendees and the calendar's sharees.
status: Event status: CONFIRMED, TENTATIVE, or CANCELLED
priority: Priority level 1-9 (1=highest, 9=lowest, 5=normal)
privacy: Privacy level: PUBLIC, PRIVATE, or CONFIDENTIAL
attendees: Comma-separated email addresses
url: Related URL for the event
color: Event colour as a CSS3 colour name (e.g. ``"tomato"``).
Nextcloud's Calendar UI resolves COLOR through a CSS3 name
lookup, so a hex value is stored but never rendered.
timezone: Optional IANA timezone name (e.g. ``"America/New_York"``).
Applied only when ``start_datetime``/``end_datetime`` are naive
(no offset, no ``Z``). Ignored — with a warning — when the
inputs already carry an explicit offset.
reminders: Ordered list of alarms, replacing ``reminder_minutes`` /
``reminder_email`` when given. Each needs exactly one of
``minutes_before``, ``trigger`` (RFC 5545 duration) or
``trigger_at`` (absolute), plus an optional ``action``
(DISPLAY/EMAIL/AUDIO), ``description``, ``summary`` (EMAIL
subject) and ``related`` (START/END).
Returns:
Dict with event creation resultnc_calendar_list_events tool
List events in a calendar (or all calendars) within date range with advanced filtering.
Args:
ctx: MCP context
calendar_name: Name of the calendar to search. Required unless
search_all_calendars=True, in which case it is ignored.
start_date: Start date for search (YYYY-MM-DD format, e.g., "2025-01-01")
end_date: End date for search (YYYY-MM-DD format, e.g., "2025-01-31")
limit: Maximum number of events to return, applied after the filters
and keeping the earliest by start
min_attendees: Filter events with at least this many attendees
min_duration_minutes: Filter events with at least this duration
categories: Filter events containing any of these categories (comma-separated, e.g., "work,meeting")
status: Filter events by status (CONFIRMED, TENTATIVE, or CANCELLED)
title_contains: Filter events where title contains this text
location_contains: Filter events where location contains this text
search_all_calendars: If True, search across all calendars instead of just one
Returns:
List of events matching the filtersnc_calendar_get_event tool
Get detailed information about a specific event
nc_calendar_update_event tool
Update any aspect of an existing event.
Only the arguments you pass are touched. Everything else on the stored
event is preserved. See ``nc_calendar_create_event`` for the shared
parameter semantics, including the datetime encoding rules that
``timezone`` selects between.
Recurrence, specifically:
* ``recurrence_rule=""`` or ``recurring=False`` removes the series.
* ``recurrence_end_date`` alone re-bounds the *stored* rule, replacing
any ``UNTIL``/``COUNT`` it carries. Combined with an explicit
``recurrence_rule`` that already bounds itself, it raises instead —
that combination contradicts itself within one request.
Reminders, likewise. Omit them all and the stored alarms survive. Pass
``reminders=[]`` to clear them, or a list to replace them wholesale.nc_calendar_delete_event tool
Delete a calendar event.
A missing event is reported as success (status 404) so retries are safe.
A server *refusal* — a scheduled/iMIP object, or a stale entry in the
calendar trashbin holding the UID — comes back with ``success=False`` and
a message explaining the likely cause, rather than raising.nc_calendar_create_meeting tool
Quick meeting creation with smart defaults
This is a convenience function for creating events with common meeting defaults.
It automatically:
- Calculates end time based on duration
- Sets status to CONFIRMED
- Adds a reminder
- Uses simpler date/time inputs instead of full ISO format
For full control over all event properties, use nc_calendar_create_event instead.
Args:
title: Meeting title
date: Meeting date (YYYY-MM-DD format, e.g., "2025-01-15")
time: Meeting start time (HH:MM format, e.g., "14:00")
ctx: MCP context
duration_minutes: Meeting duration in minutes (default: 60)
calendar_name: Calendar to create the meeting in (default: "personal")
attendees: Comma-separated email addresses of attendees
location: Meeting location
description: Meeting description/agenda
reminder_minutes: Minutes before meeting to send reminder (default: 15)
timezone: IANA timezone ``date``/``time`` are expressed in (e.g.
``"Europe/Amsterdam"``). Defaults to the user's Nextcloud
timezone setting. Only if that is unset or unreadable is the
meeting stored as floating local time.
Returns:
Dict with meeting creation resultnc_calendar_get_upcoming_events tool
Get upcoming events in next N days
nc_calendar_find_availability tool
Find available time slots for scheduling meetings.
Analyses the events in your calendars (and, for any attendees given,
their free/busy as reported by the server) and returns the gaps that
are long enough. Slots are *maximal* free windows: a free morning comes
back once as a single long slot, not as a grid of candidate start
times, so pick any sub-range of at least duration_minutes from one.
Not everything on a calendar consumes time. Events marked free
(TRANSP:TRANSPARENT), cancelled events, and calendars set to "never
show me as busy" are ignored. All-day events are ignored too unless
include_all_day is set, because birthdays, name days and subscribed
holiday feeds would otherwise blank out whole working days.
Args:
duration_minutes: Required duration for the meeting in minutes
attendees: Comma-separated attendee email addresses whose free/busy
should also be checked (RFC 6638, which requires a server that
answers scheduling requests for them)
date_range_start: Start date for availability search (YYYY-MM-DD),
defaulting to now. Never searches into the past.
date_range_end: End date for availability search (YYYY-MM-DD),
defaulting to a week after the start
business_hours_only: Only suggest slots between 09:00 and 17:00
exclude_weekends: Skip Saturdays and Sundays
preferred_times: Preferred time ranges as "HH:MM-HH:MM"
(comma-separated). When given, these replace business hours
rather than narrowing them. Overlapping ranges are merged, and
a malformed one is skipped rather than failing the query.
include_all_day: Treat all-day events as busy
timezone: IANA timezone the business hours and preferred times are
expressed in, e.g. "Europe/Amsterdam". Defaults to the server's
local zone. An unknown name is an error, not a fallback.
Returns:
The available slots, plus the window that was actually searchednc_calendar_bulk_operations tool
Perform bulk operations (update/delete) on events matching filter criteria.
This tool allows you to efficiently modify or delete multiple events at once
by applying filters to find matching events and then performing the specified operation.
Args:
operation: Type of operation - "update" or "delete"
title_contains: Filter events where title contains this text
categories: Filter events containing any of these categories (comma-separated)
calendar_name: Filter events from this specific calendar
start_date: Filter events starting from this date (YYYY-MM-DD)
end_date: Filter events ending before this date (YYYY-MM-DD)
status: Filter events by status (CONFIRMED, TENTATIVE, CANCELLED)
location_contains: Filter events where location contains this text
# For update operations:
new_title: New title for matching events
new_description: New description for matching events
new_location: New location for matching events
new_categories: New categories for matching events (comma-separated)
new_priority: New priority for matching events (1-9, 5=normal)
new_reminder_minutes: New reminder time in minutes before event
# For move operations:
target_calendar: Calendar to move events to (requires operation="move")
apply_to_series: A matched occurrence of a recurring event stands for
the whole stored series: update/delete act on every occurrence,
not only those inside the date filter. Such matches are skipped
(status "skipped") unless this is true. Move never takes a
recurring series.
Returns:
Summary of operation results including counts and detailsnc_calendar_manage_calendar tool
Manage calendar creation, deletion, and properties.
This tool provides comprehensive calendar management functionality including
creating new calendars, deleting existing ones, and updating calendar properties.
Args:
action: Action to perform - "create", "delete", "update", or "list"
calendar_name: Internal name for the calendar (required for create/delete/update)
display_name: Human-readable name for the calendar (used for create/update)
description: Description for the calendar (used for create/update)
color: Hex color code for the calendar (e.g., "#1976D2" for blue)
Returns:
Result of the calendar management operationnc_calendar_list_todos tool
List todos/tasks in a calendar with optional filtering.
Args:
calendar_name: Name of the calendar to list todos from
ctx: MCP context
status: Filter by status (NEEDS-ACTION, IN-PROCESS, COMPLETED, CANCELLED)
min_priority: Filter by minimum priority (1=highest, 9=lowest)
categories: Filter by categories (comma-separated, e.g., "work,urgent")
summary_contains: Filter todos where summary contains this text
Returns:
List of todos matching the filtersnc_calendar_create_todo tool
Create a new todo/task in a calendar.
Args:
calendar_name: Name of the calendar to create the todo in
summary: Todo title/summary
ctx: MCP context
description: Detailed description of the todo
status: Todo status (NEEDS-ACTION, IN-PROCESS, COMPLETED, CANCELLED)
priority: Priority (0=undefined, 1=highest, 9=lowest)
due: Due date/time (ISO format, e.g., "2025-01-15T14:00:00"). A
date-only value ("2025-01-15") makes it a whole-day task.
dtstart: Start date/time (ISO format). Date-only means whole-day.
RFC 5545 requires both to be the same kind, so a time on
either side makes both date-times.
categories: Comma-separated categories (e.g., "work,urgent")
reminders: Ordered list of alarms. See ``nc_calendar_create_event``
for the shape.
Returns:
Dict with todo creation resultnc_calendar_update_todo tool
Update an existing todo/task.
Args:
calendar_name: Name of the calendar containing the todo
todo_uid: UID of the todo to update
ctx: MCP context
summary: New summary/title
description: New description
status: New status (NEEDS-ACTION, IN-PROCESS, COMPLETED, CANCELLED)
priority: New priority (0-9)
percent_complete: New completion percentage (0-100)
due: New due date/time (ISO format). Date-only means whole-day.
dtstart: New start date/time (ISO format). Date-only means whole-day.
A side left unchanged keeps the stored kind, so a bare date
still becomes a date-time on an existing timed todo.
completed: Completion timestamp (ISO format)
categories: New categories (comma-separated)
reminders: Replacement alarm list. Omit to keep the stored alarms,
or pass ``[]`` to clear them.
etag: The ETag you read this todo with (from nc_calendar_list_todos
or a previous update). The write is refused if the todo changed
since, so your read-modify-write cycle cannot silently discard
someone else's edit. Omitting it still guards the instant
inside this call, but not the window since your read.
Returns:
UpdateTodoResponse carrying the identifiers and the new ETag.
Raises:
ToolError: If the todo changed since ``etag`` was read.nc_calendar_complete_todo tool
Mark a todo/task complete.
Sets STATUS, PERCENT-COMPLETE and COMPLETED together. Doing this through
nc_calendar_update_todo requires knowing that all three are needed and
setting each explicitly — passing status="COMPLETED" alone leaves
PERCENT-COMPLETE stale and writes no completion timestamp.
Args:
calendar_name: Name of the calendar containing the todo
todo_uid: UID of the todo to complete
ctx: MCP context
completed: Completion timestamp (ISO format). Defaults to now (UTC).
etag: The ETag you read this todo with. Optional, and usually
unnecessary — completing a task is normally the intended
outcome whatever else changed. It is offered anyway so that a
caller who *does* want a guarded completion is not pushed back
onto nc_calendar_update_todo and the three-property footgun
this tool exists to spare them.
Returns:
CompleteTodoResponse carrying the three values actually written.
Raises:
ToolError: If ``etag`` was given and the todo changed since.nc_calendar_delete_todo tool
Delete a todo/task from a calendar.
A missing todo is reported as success (status 404) so retries are safe.
A server *refusal* — a scheduled/iMIP object, or a stale entry in the
calendar trashbin holding the UID — comes back with ``success=False`` and
a message explaining the likely cause, rather than raising.
Args:
calendar_name: Name of the calendar containing the todo
todo_uid: UID of the todo to delete
ctx: MCP context
Returns:
DeleteTodoResponse carrying the status and, on refusal, why.nc_calendar_search_todos tool
Search todos across all calendars with optional filtering.
Args:
ctx: MCP context
status: Filter by status (NEEDS-ACTION, IN-PROCESS, COMPLETED, CANCELLED)
min_priority: Filter by minimum priority (1=highest, 9=lowest)
categories: Filter by categories (comma-separated, e.g., "work,urgent")
summary_contains: Filter todos where summary contains this text
Returns:
List of todos matching the filters from all calendarscollectives_get_collectives tool
List all Nextcloud Collectives the user has access to
collectives_get_pages tool
List all pages in a Nextcloud Collective
Args:
collective_id: ID of the collectivecollectives_get_page tool
Get a page's metadata and markdown content from a Nextcloud Collective.
Content is fetched via WebDAV using the page's file path. To update
page content, use nc_webdav_edit_file for a partial change, or
nc_webdav_write_file to replace it all, with the path
collectivePath/filePath/fileName (omit filePath for root-level pages).
Args:
collective_id: ID of the collective
page_id: ID of the pagecollectives_search_pages tool
Full-text search within a Nextcloud Collective
Args:
collective_id: ID of the collective
query: Search query stringcollectives_get_tags tool
List all tags in a Nextcloud Collective
Args:
collective_id: ID of the collectivecollectives_get_trashed_pages tool
List trashed pages in a Nextcloud Collective
Args:
collective_id: ID of the collectivecollectives_get_trashed_collectives tool
List all trashed Nextcloud Collectives.
Returns collectives that have been soft-deleted and can be restored
or permanently deleted.collectives_create_collective tool
Create a new Nextcloud Collective
Args:
name: Name of the collective
emoji: Optional emoji for the collectivecollectives_set_collective_emoji tool
Set or clear the emoji on a Nextcloud Collective.
Setting the same emoji twice produces the same result (idempotent).
Pass emoji=None to clear the emoji.
Args:
collective_id: ID of the collective
emoji: Emoji to set, or None to clearcollectives_trash_collective tool
Move a Nextcloud Collective to trash (soft delete).
The collective can be restored or permanently deleted afterwards.
Args:
collective_id: ID of the collective to trashcollectives_delete_collective tool
Permanently delete a Nextcloud Collective.
WARNING: This is irreversible. The collective must be in the trash
first (use collectives_trash_collective). All pages and content
will be permanently destroyed.
Args:
collective_id: ID of the trashed collective to permanently deletecollectives_restore_collective tool
Restore a Nextcloud Collective from trash.
Args:
collective_id: ID of the trashed collective to restorecollectives_create_page tool
Create a new page in a Nextcloud Collective.
Pages are created as empty markdown files. Use nc_webdav_write_file
with the path collectivePath/filePath/fileName to add content after
creation (omit filePath for root-level pages).
Args:
collective_id: ID of the collective
parent_id: ID of the parent page (use 0 for top-level pages)
title: Title of the new pagecollectives_move_page tool
Move or copy a page within a Nextcloud Collective
Args:
collective_id: ID of the collective
page_id: ID of the page to move/copy
parent_id: Target parent page ID
title: New title (optional)
index: Position in subpage order (default 0)
copy: If true, copy instead of movecollectives_trash_page tool
Move a page to trash in a Nextcloud Collective (soft delete).
Trashed pages can be restored with collectives_restore_page. The
Collectives API does not support permanent page deletion. Trashed
pages are cleaned up by Nextcloud's retention policy.
Args:
collective_id: ID of the collective
page_id: ID of the page to trashcollectives_restore_page tool
Restore a page from trash in a Nextcloud Collective
Args:
collective_id: ID of the collective
page_id: ID of the page to restorecollectives_set_page_emoji tool
Set or clear the emoji on a Nextcloud Collective page
Args:
collective_id: ID of the collective
page_id: ID of the page
emoji: Emoji to set, or null to clearcollectives_create_tag tool
Create a new tag in a Nextcloud Collective
Args:
collective_id: ID of the collective
name: Tag name
color: Hex color code (e.g. "FF0000")collectives_assign_tag tool
Assign a tag to a page in a Nextcloud Collective
Args:
collective_id: ID of the collective
page_id: ID of the page
tag_id: ID of the tag to assigncollectives_remove_tag tool
Remove a tag from a page in a Nextcloud Collective.
This is a reversible operation — the tag still exists and can be
reassigned with collectives_assign_tag.
Args:
collective_id: ID of the collective
page_id: ID of the page
tag_id: ID of the tag to removenc_contacts_list_addressbooks tool
List all addressbooks for the user.
nc_contacts_list_contacts tool
List all contacts in the specified addressbook.
Args:
addressbook: The URI slug of the addressbook (e.g. "contacts"),
not the display name. Use nc_contacts_list_addressbooks to
find available URI slugs.
include_photos: Include the inline base64 PHOTO payload. Off by
default: embedded photos dominate vCard size and can push the
response past what the transport delivers. ``has_photo`` still
says which contacts have one.
limit: Maximum number of contacts to return. None returns all.
offset: Number of contacts to skip, for paging through a large
addressbook together with ``limit``.nc_contacts_search_contacts tool
Search contacts by free-text query across name, nickname, email, and phone.
The query is matched case-insensitively as a substring against:
- the contact's full name (FN)
- any nickname
- every email address
- every phone number (digits only — formatting is stripped before
comparison so '+1 234 567 890' matches '2345678' and '234.567.890')
Args:
query: Free-text search string (case-insensitive substring match).
An empty query returns no results — use list_contacts for that.
addressbook: Optional URI slug of a specific addressbook to search.
When omitted, every addressbook for the user is searched.
include_photos: Include the inline base64 PHOTO payload. Off by
default -- see nc_contacts_list_contacts.
Returns:
ListContactsResponse with matching contacts. The ``addressbook``
field is set to the searched addressbook, or ``"*"`` when all
addressbooks were searched.nc_contacts_create_addressbook tool
Create a new addressbook.
Args:
name: The name of the addressbook.
display_name: The display name of the addressbook.nc_contacts_delete_addressbook tool
Delete an addressbook.
nc_contacts_create_contact tool
Create a new contact.
Args:
addressbook: The URI slug of the addressbook (e.g. "contacts"),
not the display name. Use nc_contacts_list_addressbooks to
find available URI slugs.
uid: The unique ID for the contact.
contact_data: A dictionary with the contact's details. Supported keys:
- ``fn`` (str): Formatted full name. Required unless name
parts are given, in which case it is derived from them.
- ``given_name``, ``family_name``, ``additional_names``,
``honorific_prefix``, ``honorific_suffix`` (str): Structured
name, written as vCard ``N``. Alternatively pass ``n`` as a
dict with these keys or as a list ``[family, given, ...]``.
``fn`` is never split into parts. Without them, ``N`` is
written empty.
- ``email`` (str or list of str/dicts): Email address(es).
- ``tel`` / ``phone`` (str or list): Phone number(s).
- ``org`` / ``organization`` (str or list of str): Organization.
Lists become semicolon-separated ORG components per RFC 6350.
- ``title`` (str): Job title.
- ``note`` (str): Free-form note.
- ``nickname`` (str or list of str).
- ``bday`` (ISO date str ``"YYYY-MM-DD"`` or ``datetime.date``).
- ``categories`` (list of str, or comma-separated str).
- ``url`` (str or list of str).
- ``adr`` / ``address`` (dict or list of dicts): Postal
address(es) with keys ``po_box``, ``extended``, ``street``,
``locality``, ``region``, ``postal_code``, ``country`` and an
optional ``type`` (e.g. ``"work"``, ``"home"``).
Unknown keys are ignored and logged as a warning. Example:
``{"fn": "John Doe", "email": "[email protected]",
"organization": "Acme", "note": "Met at conference"}``.nc_contacts_delete_contact tool
Delete a contact.
Args:
addressbook: The URI slug of the addressbook (e.g. "contacts"),
not the display name. Use nc_contacts_list_addressbooks to
find available URI slugs.
uid: The unique ID of the contact to delete.nc_contacts_update_contact tool
Update an existing contact while preserving all existing properties.
Args:
addressbook: The URI slug of the addressbook (e.g. "contacts"),
not the display name. Use nc_contacts_list_addressbooks to
find available URI slugs.
uid: The unique ID of the contact to update.
contact_data: A dictionary with the contact's updated details. Supported
keys mirror nc_contacts_create_contact:
- ``fn`` (str): Formatted full name. Not derived from name
parts on update. Pass it explicitly to change it.
- ``given_name``, ``family_name``, ``additional_names``,
``honorific_prefix``, ``honorific_suffix`` (str), or ``n``
(dict or list): Structured name. Only the
components passed are changed, the rest are kept.
- ``email`` (str): Email address. **Update path supports plain
strings only**. Dict / list-form inputs are not applied — the
existing EMAIL line is preserved unchanged and a warning is
logged. Use create_contact for multi-entry support with TYPE
annotations.
- ``tel`` / ``phone`` (str): Phone number. Same single-string
limitation as ``email`` above.
- ``org`` / ``organization`` (str or list of str): Organization.
Lists become semicolon-separated ORG components per RFC 6350.
- ``title`` (str): Job title.
- ``note`` (str): Free-form note.
- ``nickname`` (str or list of str).
- ``bday`` (ISO date str ``"YYYY-MM-DD"`` or ``datetime.date``).
Non-ISO strings are rejected with a warning. The existing
BDAY line is preserved.
- ``categories`` (list of str, or comma-separated str).
- ``url`` (str or list of str). Only the first URL is written
on update. Multi-URL contacts should use create_contact.
- ``adr`` / ``address`` (dict or list of dicts, same shape as
create): **Replaces all** existing addresses, so pass every
address the contact should keep. Only ``[]`` removes them
all. A value with no usable address is ignored. A grouped
``item1.ADR`` is replaced ungrouped, so its ``X-ABLabel``
label no longer applies.
Example: ``{"fn": "Jane Doe", "email": "[email protected]"}``.
etag: Optional ETag for optimistic concurrency control. Pass the
value from a previous read or update. The update is rejected if
the contact changed since.
Returns:
The updated contact and its new ETag, so updates can be chained
without an intervening read.nc_cookbook_import_recipe tool
Import a recipe from a URL using schema.org metadata.
This extracts recipe data from websites that use schema.org Recipe markup.
Many popular recipe sites support this standard.nc_cookbook_list_recipes tool
Get all recipes in the database
nc_cookbook_get_recipe tool
Get a specific recipe by its ID
nc_cookbook_create_recipe tool
Create a new recipe.
Required: name
Optional: All other recipe fields following schema.org/Recipe format.
Times should be in ISO8601 duration format (e.g., 'PT30M' for 30 minutes).nc_cookbook_update_recipe tool
Update an existing recipe.
Provide only the fields you want to update. Unspecified fields remain unchanged.nc_cookbook_delete_recipe tool
Delete a recipe permanently
nc_cookbook_search_recipes tool
Search for recipes by keywords, tags, and categories
nc_cookbook_list_categories tool
Get all known categories.
Note: A category name of '*' indicates recipes with no category.nc_cookbook_get_recipes_in_category tool
Get all recipes in a specific category.
Use '_' as the category name to get recipes with no category.nc_cookbook_list_keywords tool
Get all known keywords/tags
nc_cookbook_get_recipes_with_keywords tool
Get all recipes that have specific keywords/tags
nc_cookbook_set_config tool
Set Cookbook app configuration.
Args:
folder: Recipe folder path in user's files
update_interval: Automatic rescan interval in minutes
print_image: Whether to print images with recipesnc_cookbook_reindex tool
Trigger a rescan of all recipes into the caching database.
This rebuilds the search index and should be used after manual file changes.deck_get_boards tool
Get all Nextcloud Deck boards
deck_get_board tool
Get details of a specific Nextcloud Deck board.
Args:
board_id: The ID of the board
include_acl: Include the board's ACL entries (default True). Set
False to reduce response size when ACLs are not needed.
include_users: Include the board's user list (default True). Set
False to reduce response size when users are not needed.
include_labels: Include the board's label definitions (default
True). Set False to reduce response size. Labels can still be
retrieved via deck_get_labels.deck_get_stacks tool
Get all stacks in a Nextcloud Deck board.
Cards are returned as compact summaries by default to keep the
response small on large boards. Filtering/projection happen
client-side after the API returns the full board, so they reduce the
tokens the caller sees but not network bandwidth.
Args:
board_id: The ID of the board
include_cards: Include cards inside each stack (default True). Set
False for a lightweight stack listing. Fetch cards separately
via deck_get_cards.
detail: "summary" (default) returns compact card rows. "full"
returns the complete card objects (the old behavior).
status: Which cards to include — "open" (default), "done",
"archived", or "all". The first three partition the board
(a card that is both done and archived counts as "archived").
"archived"/"all" include archived cards, which the active
listing endpoint omits — this costs one extra API call.
label: If set, only cards carrying a label with this exact title.
assigned_to: If set, only cards assigned to this user UID.
description_max_length: In detail="full", truncate each card's
description to this many characters.
description_preview_length: In detail="summary", length of the
description preview carried on each card (default 140).deck_get_stack tool
Get details of a specific Nextcloud Deck stack.
Cards are returned as compact summaries by default. See
deck_get_stacks for the shared parameter semantics.
Args:
board_id: The ID of the board
stack_id: The ID of the stack
include_cards: Include cards in the stack (default True).
detail: "summary" (default) or "full".
status: "open" (default), "done", "archived", or "all"
(non-overlapping, a done+archived card counts as "archived").
"archived"/"all" include archived cards, which the active
listing endpoint omits — this costs one extra API call.
label: If set, only cards carrying a label with this exact title.
assigned_to: If set, only cards assigned to this user UID.
description_max_length: In detail="full", truncate descriptions.
description_preview_length: In detail="summary", preview length.deck_get_archived_stacks tool
List archived stacks (with their archived cards) for a Nextcloud
Deck board.
This is the archived-only shortcut: it returns *only* archived cards
in a single call. The active list tools (deck_get_cards,
deck_get_stacks, deck_get_board_overview) also include archived cards
when called with status="archived"/"all". Use this tool when you want
archived cards exclusively and don't need the open ones. Typical use:
auditing completed work archived off the active board (e.g. cards moved
through a "Done" stack and then archived via deck_archive_card). The
shape mirrors deck_get_stacks.
Cards are always included on the returned stacks (an archived stack
without its cards would have no audit value) and returned as compact
summaries by default. There is no ``status`` filter — every card here
is archived by definition — but ``label``/``assigned_to`` narrow the
set just like the active-stack tools.
Args:
board_id: The ID of the board
detail: "summary" (default) or "full".
label: If set, only cards carrying a label with this exact title.
assigned_to: If set, only cards assigned to this user UID.
description_max_length: In detail="full", truncate descriptions.
description_preview_length: In detail="summary", preview length.deck_get_cards tool
Get all cards in a Nextcloud Deck stack.
Cards are returned as compact summaries by default. Filtering and
projection are applied client-side after the API returns the full
stack, so they reduce the tokens the caller sees but not network
bandwidth — network-wise this tool is equivalent to
deck_get_stack(include_cards=True).
Args:
board_id: The ID of the board
stack_id: The ID of the stack
detail: "summary" (default) returns compact card rows. "full"
returns the complete card objects.
status: "open" (default), "done", "archived", or "all". The first
three partition the board (a done+archived card counts as
"archived"). "archived"/"all" include archived cards, which the
active listing endpoint omits — this costs one extra API call.
label: If set, only cards carrying a label with this exact title.
assigned_to: If set, only cards assigned to this user UID.
description_max_length: In detail="full", truncate descriptions.
description_preview_length: In detail="summary", preview length.deck_get_board_overview tool
Get a compact, whole-board snapshot in a single call.
Returns the board title, its label legend, and every stack with its
cards projected to compact summary rows. Prefer it for "show me the
board" / "what's in progress" style requests on large boards — it is
the token-efficient way to view board *state*. It intentionally omits
the board-management fields (ACL, user list, full label objects) that
deck_get_board exposes. Reach for deck_get_board when you need those.
Args:
board_id: The ID of the board
status: Which cards to include — "open" (default), "done",
"archived", or "all". The first three partition the board
(a card that is both done and archived counts as "archived").
"archived"/"all" include archived cards, which the active
listing endpoint omits — this costs one extra API call.
label: If set, only cards carrying a label with this exact title.
assigned_to: If set, only cards assigned to this user UID.
description_preview_length: Length of the description preview
carried on each card summary (default 140).deck_get_card tool
Get details of a specific Nextcloud Deck card
deck_get_labels tool
Get all labels in a Nextcloud Deck board
deck_get_label tool
Get details of a specific Nextcloud Deck label
deck_create_board tool
Create a new Nextcloud Deck board
Args:
title: The title of the new board
color: The hexadecimal color of the new board (e.g. FF0000)deck_create_stack tool
Create a new stack in a Nextcloud Deck board
Args:
board_id: The ID of the board
title: The title of the new stack
order: Order for sorting the stacksdeck_update_stack tool
Update a Nextcloud Deck stack
Args:
board_id: The ID of the board
stack_id: The ID of the stack
title: New title for the stack
order: New order for the stackdeck_delete_stack tool
Delete a Nextcloud Deck stack
Args:
board_id: The ID of the board
stack_id: The ID of the stackdeck_create_card tool
Create a new card in a Nextcloud Deck stack
Args:
board_id: The ID of the board
stack_id: The ID of the stack
title: The title of the new card
type: Type of the card (default: plain)
order: Order for sorting the cards
description: Description of the card
duedate: Due date of the card (ISO-8601 format)
startdate: Start date of the card (ISO-8601 format)
color: Card color as hex RGB, e.g. "FF0000"deck_update_card tool
Update a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
title: New title for the card
description: New description for the card
type: New type for the card
owner: New owner for the card
order: New order for the card
duedate: New due date for the card (ISO-8601 format)
archived: Whether the card should be archived
done: Completion date for the card (ISO-8601 format)
startdate: New start date for the card (ISO-8601 format).
Pass an empty string to clear it.
color: New card color as hex RGB, e.g. "FF0000".
Pass an empty string to clear it.deck_delete_card tool
Delete a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the carddeck_archive_card tool
Archive a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the carddeck_unarchive_card tool
Unarchive a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the carddeck_reorder_card tool
Reorder a Nextcloud Deck card within a board.
Moves a card to a new position, optionally into a different stack on
the SAME board. To move a card to a stack on a DIFFERENT board, use
deck_move_card_to_board instead — reordering across boards is rejected
because it would orphan the card's board-scoped labels.
Args:
board_id: The ID of the board
stack_id: The ID of the current stack
card_id: The ID of the card
order: New position in the target stack
target_stack_id: The ID of the target stack (must be on board_id)deck_move_card_to_board tool
Move a Nextcloud Deck card to a stack on a different board.
The card keeps its identity (same id, comments, attachments), along
with its archived state, due date and user assignments (an assignee
without access to the target board stays assigned but cannot act on the
card). Deck remaps the card's board-scoped labels to the destination
board by title — reusing a same-titled label there, or cloning it when
you have board-manage permission. Use deck_reorder_card for moves
within a single board.
Two caveats from Deck's move route: the card's owner is reassigned to
the user performing the move (the original owner is not preserved), and
a card marked done keeps its done state but its done timestamp is reset
to the time of the move.
target_stack_id must be a stack on target_board_id. The move is
rejected otherwise.
Args:
source_board_id: The ID of the board the card currently lives on
source_stack_id: The ID of the stack the card currently lives in
card_id: The ID of the card to move
target_board_id: The ID of the destination board
target_stack_id: The ID of the destination stack (must be on target_board_id)
order: Position within the destination stack (default 0 = top)deck_create_label tool
Create a new label in a Nextcloud Deck board
Args:
board_id: The ID of the board
title: The title of the new label
color: The color of the new label (hex format without #)deck_update_label tool
Update a Nextcloud Deck label
Args:
board_id: The ID of the board
label_id: The ID of the label
title: New title for the label
color: New color for the label (hex format without #)deck_delete_label tool
Delete a Nextcloud Deck label
Args:
board_id: The ID of the board
label_id: The ID of the labeldeck_assign_label_to_card tool
Assign a label to a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
label_id: The ID of the label to assigndeck_remove_label_from_card tool
Remove a label from a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
label_id: The ID of the label to removedeck_assign_user_to_card tool
Assign a user to a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
user_id: The user ID to assigndeck_unassign_user_from_card tool
Unassign a user from a Nextcloud Deck card
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
user_id: The user ID to unassigndeck_assign_dependent_card tool
deck_remove_dependent_card tool
Remove a dependency between two Nextcloud Deck cards.
Removes the dependency of ``card_id`` on ``dependent_card_id`` that was
created by deck_assign_dependent_card.
Args:
board_id: The ID of the board containing the depending card
stack_id: The ID of the stack containing the depending card
card_id: The ID of the card that depends on another card
dependent_card_id: The ID of the dependency to removedeck_get_card_comments tool
List comments on a Nextcloud Deck card.
Returns compact comments by default (dropping mentions, actor type and
display name). Ordering and truncation apply within the returned page.
Args:
card_id: The ID of the card
limit: Maximum number of comments to return (default 20, max 200)
offset: Pagination offset (default 0)
detail: "summary" (default) returns compact comments. "full"
returns the complete comment objects.
message_max_length: If set, truncate each comment message to this
many characters.
order: "newest" (default) or "oldest" — sort the page by creation
time.deck_create_card_comment tool
Create a comment on a Nextcloud Deck card.
Deck caps a comment at 1000 characters, measured after trimming
whitespace and counted in Unicode code points. Markdown and @-mentions
are NOT expanded before that check, so what you pass is what is counted.
Check the length before calling and pick `overflow` accordingly:
- 1000 characters or fewer: call as-is. `overflow` is ignored.
- Longer, and the text is meant to be read on the card (activity
updates, run summaries, changelogs): pass overflow="split" up front
rather than guessing a shorter message. The text is cut at markdown
heading, then paragraph, then line, then sentence, then word
boundaries -- never mid-word -- each part is prefixed "(i/N)", and
parts 2..N are posted as replies to part 1 so the card shows one
thread. @-mentions are never split across parts. At most 10 parts.
Past that, write the content to a note (nc_notes_create_note) or a
file (nc_webdav_write_file), attach it with deck_attach_note /
deck_attach_file, and post a short pointer comment instead.
- Longer, and you would rather shorten it yourself: leave the default
overflow="error". Nothing is posted and the error states the exact
overage.
Splitting is not atomic. If a later part fails, the earlier parts stay
posted and the error names their comment ids -- resume from there
instead of re-sending the whole message, which would duplicate them.
Supports @-mentions: "@alice", or @"alice smith" for ids with spaces.
Args:
card_id: The ID of the card to comment on
message: The comment text (max 1000 characters unless
overflow="split")
parent_id: Optional ID of a parent comment to reply to. When
splitting, part 1 replies to this comment and parts 2..N reply
to part 1.
overflow: What to do when the message exceeds 1000 characters.
"error" (the default) posts nothing and explains the overage.
"split" posts the message as multiple threaded comments.
Returns:
CardCommentResponse. For a single comment, `comment` is it, `parts`
is null and `part_count` is 1. When split, `comment` is part 1,
`parts` lists every posted part in order (parts[0] is part 1), and
`part_count` is how many were posted.deck_update_card_comment tool
Update a Nextcloud Deck card comment.
The same 1000-character limit applies as for creation (measured after
trimming, in Unicode code points), but the message CANNOT be split: an
update replaces one comment in place. To add more than fits, post a
follow-up comment with deck_create_card_comment instead of growing an
existing one past the limit.
Only the comment's author can update it. The server returns 403
otherwise.
Args:
card_id: The ID of the card the comment belongs to
comment_id: The ID of the comment to update
message: The new comment text (max 1000 characters)deck_delete_card_comment tool
Delete a Nextcloud Deck card comment
Only the comment's author can delete it. The server returns 403 otherwise.
Args:
card_id: The ID of the card the comment belongs to
comment_id: The ID of the comment to deletedeck_attach_file tool
Attach an existing Nextcloud file to a Deck card without copying.
Creates a share of ``path`` with the card (``shareType=12``,
``shareWith=<card_id>``). The file stays in its original location.
Clicking the attachment in the Deck UI opens the file in place.
Generic over the user's Files: works for any file the caller can
read — markdown notes, PDFs, images, spreadsheets, etc. Use
:func:`deck_attach_note` if you have a Notes-app note ID and want
the path resolved automatically. Calling twice with the same
``path`` creates two distinct shares — caller is responsible for
de-duping.
Args:
card_id: The ID of the Deck card to attach to
path: Path to the file in the user's Nextcloud Files (must start
with "/", e.g. "/Documents/spec.pdf" or "/Notes/My Note.md")deck_attach_note tool
Attach a Nextcloud Note to a Deck card without copying.
Convenience wrapper: looks up the note's filesystem path from the
Notes app settings + note metadata, then shares the file with the
card (same mechanism as :func:`deck_attach_file`). The note remains
editable in the Notes app. The card just shows a clickable link to
it.
Path is reconstructed as ``<notes_folder>/<category>/<title>.md``.
If the note's title contains characters that the Notes app sanitises
differently (rare), use :func:`deck_attach_file` with the explicit
path instead.
Args:
card_id: The ID of the Deck card to attach to
note_id: The ID of the Note to attachdeck_list_attachments tool
List attachments on a Nextcloud Deck card.
Returns both shared-file attachments (``type="file"``, created via
:func:`deck_attach_file` / :func:`deck_attach_note`) and uploaded
binary attachments (``type="deck_file"``). Each carries a ``url`` that
opens it — the file in Files for ``type="file"``, Deck's download route
for ``type="deck_file"``.
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the carddeck_delete_attachment tool
Delete an attachment from a Nextcloud Deck card.
For ``type="file"`` attachments this removes the share linking the
file to the card. The underlying file in the user's Files is left
untouched. For ``type="deck_file"`` blobs the binary is deleted from
Deck's storage.
Args:
board_id: The ID of the board
stack_id: The ID of the stack
card_id: The ID of the card
attachment_id: The ID of the attachment to delete
attachment_type: The attachment's ``type`` as reported by
:func:`deck_list_attachments` — ``"file"`` for a Files share,
``"deck_file"`` for a blob uploaded into Deck. Deck resolves the
id against this type, so passing the wrong one 404s.nc_mail_list_accounts tool
List the user's configured mail accounts (requires mail.read scope).
nc_mail_list_mailboxes tool
List the mailboxes (folders) of a mail account (requires mail.read scope).
Args:
account_id: Account ID (from nc_mail_list_accounts)
Returns:
ListMailboxesResponse with mailboxes. Use a mailbox's ``database_id``
with nc_mail_list_messages.nc_mail_list_messages tool
List message envelopes in a mailbox, newest first (requires mail.read scope).
Reads cached envelope metadata (fast). Does not fetch bodies. Use
nc_mail_get_message to fetch a full body.
Args:
mailbox_id: Numeric mailbox id (``database_id`` from nc_mail_list_mailboxes)
cursor: Pagination cursor from a prior page
search_filter: Optional filter query — space-separated ``token:value``
terms, ANDed together. Supported tokens:
* ``is:``/``not:`` — ``read``, ``unread``, ``starred``,
``answered``, ``important``
* ``from:``, ``to:``, ``cc:``, ``bcc:`` — substring match on the
address or display name
* ``subject:``, ``body:`` — substring match (``body:`` searches
IMAP server-side and is slower)
* ``tags:`` — comma-separated tag *database ids* (not names,
get one from nc_mail_create_tag)
* ``start:``, ``end:`` — sent-date bounds, as an ISO date or
datetime (``2026-11-01``, ``2026-11-01T09:00+01:00``), or Unix
seconds. Without an offset the time is taken as UTC. A bare
``end:`` date includes that whole day.
* ``flags:`` — comma-separated ``read``/``unread``/``starred``/
``answered``/``important``/``attachments``
* ``match:anyof`` — OR the from/to/cc/bcc/subject/body terms
instead of ANDing them
Example: ``is:unread from:alice subject:invoice``
limit: Max messages to return (1-100, default 20)
Returns:
ListMessagesResponse with message summaries. ``has_more`` is a
heuristic (true when exactly ``limit`` messages were returned), so it
can be a false positive when a mailbox holds exactly ``limit``
messages. Page with ``cursor`` and stop on an empty result.nc_mail_get_message tool
Get a single mail message with its full body (requires mail.read scope).
The Mail app fetches the body from IMAP server-side.
Args:
message_id: Numeric message id (``database_id`` from nc_mail_list_messages)
Returns:
GetMessageResponse with the full message including body and attachments.
Fetch an attachment with nc_mail_get_attachment, or look at an image
one with nc_mail_view_attachment. Attachments with ``id: null`` are
inline body parts and cannot be fetched by either (both require a
string id).nc_mail_send_message tool
Send an email through a configured Nextcloud Mail account (requires mail.send scope).
The ``From:`` identity is derived by the Mail app from ``account_id``.
Recipients are arrays of ``{"label": "...", "email": "..."}`` objects
(``label`` is optional). Example for ``to``::
[{"label": "John Doe", "email": "[email protected]"}]
Args:
account_id: Mail account ID to send from (from nc_mail_list_accounts)
to: Array of To recipients (``[]`` when sending only to cc/bcc)
subject: Email subject
body: Email body (plain text unless is_html is true)
is_html: Whether body contains HTML (default false)
cc: Optional array of CC recipients
bcc: Optional array of BCC recipients. At least one recipient is
needed across to, cc and bcc.
references: Optional RFC 2822 Message-ID for reply threading
Returns:
SendMessageResponse with success status and optional messagenc_mail_save_draft tool
Save an email as a draft WITHOUT sending it (requires mail.draft scope).
Nothing is delivered to anyone. The draft is written to the account's
Drafts mailbox (created as "Drafts" if the account has none), where the
user can review, edit and send it from Nextcloud Mail or any other mail
client. Use this to prepare a message, for example a reply, that a person
sends themselves.
The ``From:`` identity is derived by the Mail app from ``account_id``.
Recipients are arrays of ``{"label": "...", "email": "..."}`` objects
(``label`` is optional), as for nc_mail_send_message. Example for ``to``::
[{"label": "John Doe", "email": "[email protected]"}]
To draft a reply, set the subject (e.g. "Re: <original subject>") and the
recipients yourself. There is no reply-reference parameter: the Mail app
does not keep In-Reply-To/References on drafts it writes to the Drafts
mailbox, so a reply sent from the draft is not linked to the original
message by those headers.
Every call saves a new draft. A saved draft cannot be changed through this
tool. To revise one, save a new draft and ask the user to discard the old
one.
The draft is marked as AI-generated, which Nextcloud Mail (5.12 and
later) shows when the draft is opened. The person sending it can remove
the marker.
Args:
account_id: Mail account ID to save the draft in (from nc_mail_list_accounts)
to: Array of To recipients (``[]`` for none yet)
subject: Email subject
body: Email body (plain text unless is_html is true)
is_html: Whether body contains HTML (default false)
cc: Optional array of CC recipients
bcc: Optional array of BCC recipients
Returns:
SaveDraftResponse confirming the draft was saved. Find the draft in
the account's Drafts mailbox.nc_mail_get_attachment tool
Get a single mail attachment's metadata and content (requires mail.read scope).
For an image you want to look at, use nc_mail_view_attachment instead: it
shows the picture, where this returns base64 text.
Args:
message_id: Numeric message id
attachment_id: Attachment id (a string, from the message's attachments)
Returns:
GetAttachmentResponse with name, mime, size, and content. ``content``
is the attachment body base64-encoded. Large attachments produce a
correspondingly large response, so prefer the ``size`` from the
message's attachment list before fetching.nc_mail_view_attachment tool
Show an image attachment so you can look at it (requires mail.read scope).
Returns the image itself, which a vision model sees as a picture, not as
text. Use this instead of nc_mail_get_attachment for images (photos,
screenshots, scans): that tool returns base64 text, which you cannot look
at.
The image is scaled down to at most ``max_size`` pixels on its longer
edge, 1568 by default, the right size for a vision model. Raise it (up to
2576) to read small print, lower it to save tokens. A photo is turned
upright according to its orientation data.
The attachment is decoded on the MCP server (JPEG, PNG, GIF, WebP, BMP,
TIFF), which takes at most 80 megapixels for JPEG and 24 for the other
formats. Formats such as HEIC are not supported for mail attachments, since
Nextcloud renders no preview for them. Attachments that are not images are
refused. Use nc_mail_get_attachment for those. Inline body parts
(attachments with ``id: null``) cannot be fetched, as with
nc_mail_get_attachment.
Args:
message_id: Numeric message id
attachment_id: Attachment id (a string, from the message's attachments)
max_size: Longest edge of the image you receive, in pixels (64-2576)
Returns:
The image, followed by ``ViewMailAttachmentResponse``: its size and
format, and the size of the attachment it was made from (larger than
the image you got means a higher ``max_size`` would show more detail).nc_mail_get_message_source tool
Get a message's raw RFC 2822 source (requires mail.read scope).
The complete original message including all headers — use this when the
parsed view from nc_mail_get_message is not enough (checking
Received/DKIM headers, List-Unsubscribe, custom X- headers).
Args:
message_id: Numeric message id
Returns:
GetMessageSourceResponse with the raw source. ``source`` is None if
the Mail app returns no content for the message.nc_mail_create_tag tool
Create a mail tag, or return the existing one (requires mail.write scope).
Tags are IMAP keywords private to the user. The Mail app has no
tag-listing endpoint, so this is also how you look a tag up — calling it
for an existing name returns that tag rather than creating a duplicate.
Names normalise to a lowercase IMAP label with spaces as underscores, so
"AI Index", "ai index" and "ai_index" are all the same tag.
Args:
display_name: Tag name (max 128 characters)
color: Hex colour, applied only when the tag is created
Returns:
MailTagResponse with the tag, including the ``id`` needed for the
``tags:<id>`` filter of nc_mail_list_messages.nc_mail_set_tag tool
Assign a tag to a message (requires mail.write scope).
The tag is created if it does not exist yet, so this works without a
separate nc_mail_create_tag call.
Args:
message_id: Numeric message id
tag: Tag display name
Returns:
MailTagResponse with the assigned tag.nc_mail_remove_tag tool
Remove a tag from a message (requires mail.write scope).
Args:
message_id: Numeric message id
tag: Tag display name
Returns:
MailTagResponse with the removed tag.nc_mail_move_message tool
Move a message to another mailbox (requires mail.write scope).
Args:
message_id: Numeric message id
destination_mailbox_id: Target mailbox id (``database_id`` from
nc_mail_list_mailboxes)
Returns:
MailActionResponse. ``message_id`` echoes what you passed in and is
**stale on return**: the move invalidates it, and the message is
re-cached in the destination under a new id. Re-list the destination
mailbox to address it again — do not retry this call with the same
id, which fails rather than repeating the move.nc_mail_delete_message tool
Delete a message (requires mail.write scope).
The Mail app moves the message to the account's trash mailbox, or
expunges it permanently if it is already in trash. Requires the account
to have a trash mailbox — without one the Mail app rejects the call
("No trash mailbox configured").
Args:
message_id: Numeric message id
Returns:
MailActionResponse confirming the deletion. ``message_id`` echoes
the input and is **stale on return** — trashing re-caches the
message under a new id, so retrying with the same id fails.nc_news_list_folders tool
List all News folders (requires news.read scope).
nc_news_list_feeds tool
List all News feeds with metadata (requires news.read scope).
Returns feeds with unread counts, error status, and overall starred count.nc_news_list_items tool
List News items (articles) with optional filtering (requires news.read scope).
Args:
feed_id: Filter by specific feed ID
folder_id: Filter by specific folder ID
starred_only: Return only starred items
unread_only: Return only unread items
limit: Maximum number of items to return (default 50, -1 for all)
offset: Item ID to start after (for pagination)
Returns:
ListItemsResponse with items, count, and pagination infonc_news_get_item tool
Get a specific News item by ID with full content (requires news.read scope).
Args:
item_id: Item ID
Returns:
GetItemResponse with full item details including HTML bodync_news_get_starred_items tool
Get starred (favorited) News items (requires news.read scope).
Convenience method for retrieving user's starred articles.
Args:
limit: Maximum number of items to return (default 50, -1 for all)
offset: Item ID to start after (for pagination)
Returns:
ListItemsResponse with starred itemsnc_news_get_unread_items tool
Get unread News items (requires news.read scope).
Convenience method for retrieving unread articles across all feeds.
Args:
limit: Maximum number of items to return (default 50, -1 for all)
offset: Item ID to start after (for pagination)
Returns:
ListItemsResponse with unread itemsnc_news_get_feed_health tool
Get health status for a specific feed (requires news.read scope).
Returns error count and last error message if the feed has update issues.
Args:
feed_id: Feed ID to check
Returns:
FeedHealthResponse with error statusnc_news_get_status tool
Get News app status and version (requires news.read scope).
Returns version information and any configuration warnings.nc_notes_create_note tool
nc_notes_update_note tool
Update an existing note's title, content, or category (requires notes.write scope).
REQUIRED: etag parameter must be provided to prevent overwriting concurrent changes.
Get the current ETag by first retrieving the note using nc_notes_get_note tool.
If the note has been modified by someone else since you retrieved it,
the update will fail with a 412 error.nc_notes_append_content tool
Append content to an existing note. The tool adds a `\\n---\\n`
between the note and what will be appended.nc_notes_search_notes tool
Search notes by title or content, returning only id, title, and category (requires notes.read scope).
nc_notes_list_notes tool
List notes, returning id, title, and category, plus the total count.
Without ``category``, ``total_found`` is the user's total number of notes, so
this answers "how many notes do I have" exactly. Search tools only return the
best matches. With ``category``, it counts that category only: the match is
exact and case-sensitive, and does not include nested ``category/sub``
categories. ``results`` holds at most ``limit`` notes, but ``total_found`` is
never limited. Requires notes.read scope.nc_notes_get_note tool
Get a specific note by its ID (requires notes.read scope)
nc_notes_get_attachment tool
Get a specific attachment from a note
nc_notes_delete_note tool
Delete a note permanently
provision_nextcloud_access tool
Provision offline access to Nextcloud resources. This is required before using Nextcloud tools. You'll need to complete an OAuth authorization in your browser.
revoke_nextcloud_access tool
Revoke offline access to Nextcloud resources.
check_provisioning_status tool
Check whether Nextcloud access is provisioned.
check_logged_in tool
Check if you are logged in to Nextcloud. If not logged in, this tool will prompt you to complete the login flow.
sar_case_create tool
Open a subject access request (SAR) case.
A case collects the documents to disclose about one person, with a
reason for each, and produces redacted archives of them. It is stored
as `<folder>/<name>/sar-case.json` in Nextcloud, so anyone who can
write that folder (e.g. a team folder) can work on it, in Astrolabe or
through these tools. Use the returned `case_id` with the other
`sar_case_*` tools.
Args:
folder: Existing folder the user can write to, e.g. a team folder.
name: Case name, e.g. "SAR-2026-014". Becomes a sub-folder.
subject: The data subject's names, aliases, email addresses, phone
numbers, NI numbers and addresses. These are kept in exports. List every
alias ("Jane Doe", "Ms Doe", "J. Doe"), as unlisted forms are
redacted.
description: Free text, e.g. the request reference.sar_case_list tool
List the SAR cases this user can see, newest first, with their state
(open, exporting, ready_for_audit, closed) and item count.sar_case_get tool
A SAR case: subject, items (paged by `offset`/`limit`, with
`items_total`), logged queries, exports, and the latest export's
progress in `latest_export`. Poll this after `sar_case_export`: the
case moves to "ready_for_audit" when the archive is written.sar_case_update tool
Change a case's subject identifiers or description (open cases
only), close it, or reopen it.
Args:
state: "closed" finishes the case: it becomes read-only and cannot
be reopened. Its archives stay. "open" reopens a case that is
ready for audit, to change it and export again.sar_case_items tool
Add, update or remove documents in an open SAR case, and log the
searches run for it.
Args:
add: Documents to include, using `doc_type` and `id` from search
results as `doc_type`/`doc_id`, optionally with a `reason`
(printed in the archive when given), `title`, `found_by` (the
query that found it) and a page range for paged files. Adding a
document already in the case updates it.
remove: Documents to drop, by `doc_type`/`doc_id`.
queries: Searches run for the case, including ones that found
nothing (`text`, optional `hits`). They are recorded in the archive.sar_case_search tool
Search for documents for an open SAR case, and log the search in it.
Takes the same filters as `nc_semantic_search` (folders, document
types, modified dates, relevance) and returns the same results. The
query and its filters are recorded in the case and listed, redacted,
in the archive. Results default to one row per document. Add the ones
to disclose with `sar_case_items`.sar_case_export tool
Build a redacted archive of an open case, in the background.
Every person, address, UK postcode, email address, phone number and UK NI
number in the documents is replaced with a numbered placeholder ([PERSON_1],
[ADDRESS_1], ...), except the subject's own. The archive holds one PDF
per document (redacted text, not the original layout), an index with
each document's reason and redaction counts, and the logged searches.
The case is locked while exporting. Poll `sar_case_get` until it is
"ready_for_audit". Each export is a new version (`-v1`, `-v2`, ...).
Args:
output_folder: Where to write the archive. Defaults to the case's
own `exports/` folder.nc_semantic_search tool
nc_get_vector_sync_status tool
Get the current vector sync status.
Returns information about the vector sync process, including:
- Number of documents indexed in the vector database
- Number of documents pending processing
- Current sync status (idle, syncing, or disabled)
This is useful for determining when vector indexing is complete
after creating or updating content across all indexed apps.nc_share_create tool
Create a share for a file or folder in Nextcloud.
Share a file or folder with another user or group. The authenticated user
must own the file/folder being shared.
Args:
path: Path to file/folder to share (relative to your files, e.g., "/document.txt")
share_with: Recipient identifier, required for every share type
except a public link: user id, group id, email address,
federated "user@remote", circle id, Talk conversation token or
Deck card id, matching share_type. Passing a recipient together
with share_type=3 is rejected -- a public link addresses nobody,
and Nextcloud would silently ignore the recipient and publish
the file to anyone holding the URL.
share_type: Share type - 0 for user (default), 1 for group, 4 for
email, 6 for federated, 7 for circle, 10 for Talk conversation,
12 for Deck card. Use 3 for a public link, though
nc_share_create_public_link is preferred for short-lived,
read-only download links with managed expiry
permissions: Share permissions (default: 1 for read-only):
- 1 = read
- 2 = update
- 4 = create
- 8 = delete
- 16 = share
- 31 = all permissions
Common: 1 (read-only), 3 (read+update), 15 (read+update+create+delete)
Returns:
JSON string with share information including share ID
Raises:
ToolError: If the share_type/share_with pairing is invalidnc_share_create_public_link tool
Create a short-lived, read-only public download link for a file.
Use this for binary files (especially images) the client needs as bytes
rather than as text: ``nc_webdav_read_file`` base64s anything it cannot
extract text from, which can exceed the MCP client response budget and get
truncated, leaving the file undecodable. (For documents -- PDF, DOCX --
prefer reading them: that tool returns their text or markdown.)
A public link keeps the MCP response small and lets the client download
the exact original bytes from ``download_url``.
The link is always **read-only** (``permissions=1``): a public,
anonymously-accessible link with write access would be a security
footgun, so it is intentionally not configurable. Use ``nc_share_create``
(shareType=3) if you genuinely need a writable public link.
Args:
path: Path to the file to share (relative to your files, e.g.
"/Receipts/receipt.jpg")
expires_in_minutes: How long the link should remain valid, in
minutes (default: 30). Must be positive — this tool only
creates short-lived links, never a permanent one. See the
expiry caveat below.
Expiry caveat:
Nextcloud enforces public-link expiry at **date granularity**, not
minute precision: a link expires at 00:00:00 on ``expireDate`` in
the owner's timezone (i.e. the end of the day before ``expireDate``).
The requested window is rounded up so the link stays valid at least
that long. ``expires_at`` reports the precise requested instant, but
the link may remain valid until the end of that day server-side. To
revoke earlier, call ``nc_share_delete`` with the returned
``share_id``.
Returns:
PublicDownloadLinkResponse with the share URL, download URL, and
advisory expiry.
Raises:
ToolError: If ``expires_in_minutes`` is not positive, or if the OCS
response carries no share url.nc_share_delete tool
Delete a share by its ID.
Remove a share that you created. You must be the owner of the share.
Args:
share_id: The ID of the share to delete
Returns:
JSON string confirming deletionnc_share_get tool
Get information about a specific share.
Retrieve details about a share by its ID. You must have access to the share
(either as owner or recipient).
Args:
share_id: The ID of the share
Returns:
JSON string with share informationnc_share_list tool
List shares created by you or shared with you.
Args:
path: Optional path to filter shares for a specific file/folder
shared_with_me: If True, list shares that others shared with you.
If False (default), list shares you created.
Returns:
JSON string with list of sharesnc_share_update tool
Update the permissions of an existing share.
Modify the permissions for a share you created. You must be the owner.
Args:
share_id: The ID of the share to update
permissions: New permissions value:
- 1 = read
- 2 = update
- 4 = create
- 8 = delete
- 16 = share
- 31 = all permissions
Common: 1 (read-only), 3 (read+update), 15 (read+update+create+delete)
Returns:
JSON string with updated share informationnc_shopping_list_get_lists tool
List every shopping list the user owns or has had shared with them.
nc_shopping_list_get_list tool
Get a single shopping list by ID.
nc_shopping_list_create_list tool
Create a new shopping list.
Titles are not unique — calling this twice with the same title makes two
lists.nc_shopping_list_update_list tool
Rename an existing shopping list.
nc_shopping_list_delete_list tool
Delete a shopping list and every item on it. Only the owner may do this.
nc_shopping_list_get_items tool
Get every item on a shopping list, ticked-off ones included.
nc_shopping_list_add_items tool
Add one or more items to a shopping list.
Takes a list so a whole recipe's ingredients land in one call, e.g.
``[{"name": "flour", "quantity": "2", "unit": "cups"},
{"name": "eggs", "quantity": "3"}]``. See the ``items`` schema for the
fields each entry accepts — only ``name`` is required.
The whole list is validated before anything is sent, so a malformed
entry adds nothing. Once sending starts the items go one at a time — the
app has no bulk endpoint — so a failure partway through leaves the
earlier items on the list, and the error says how many those were.
A name already on the list is added again as a **second row**. The
quantity-merging the Shopping List web UI does is client-side, so the
API does not do it for you. To top up an existing item instead, read the
list with ``nc_shopping_list_get_items`` and use
``nc_shopping_list_update_item``.nc_shopping_list_update_item tool
Update an item's name, quantity, unit or shop area.
Only the arguments given are changed. Omitted ones keep their value,
which also means this tool can set a field but not *clear* one back to
empty — pass a new value, or delete and re-add the item. Use
``nc_shopping_list_check_item`` to tick an item off — this tool does not
touch the checked state.nc_shopping_list_check_item tool
Tick an item off the list, or put it back (``checked=false``).
nc_shopping_list_delete_item tool
Delete a single item from a shopping list.
nc_shopping_list_clear_checked_items tool
Delete every ticked-off item on a shopping list.
nc_shopping_list_uncheck_all_items tool
Put every ticked-off item on a shopping list back among the open items.
nc_tables_list_tables tool
List all tables available to the user
nc_tables_get_schema tool
Get the schema/structure of a specific table including columns and views
nc_tables_read_table tool
Read rows from a table with optional pagination.
Pass ``columns`` (column IDs from nc_tables_get_schema) to return only
those cells of each row (omit it for all cells, while ``[]`` returns rows
with no cells, e.g. to list row IDs). To read a filtered/sorted subset, use
nc_tables_read_view with one of the table's views.nc_tables_read_view tool
Read the rows of a table view, with the view's filters and sorting applied.
View IDs are listed under ``views`` in nc_tables_get_schema. Filters and
sorting are managed by the table owner in the Tables UI. Pass
``columns`` (column IDs) to return only those cells of each row (omit
it for all cells, while ``[]`` returns rows with no cells).nc_tables_get_row tool
Get a single table row by ID.
Pass ``columns`` (column IDs) to return only those cells (omit it for
all cells, while ``[]`` returns no cells).nc_tables_insert_row tool
Insert a new row into a table.
Data should be a dictionary mapping column IDs to values, e.g. {1: "text", 2: 42}nc_tables_update_row tool
Update an existing row in a table.
Data should be a dictionary mapping column IDs to new values, e.g. {1: "new text", 2: 99}nc_tables_delete_row tool
Delete a row from a table
talk_list_conversations tool
List the user's Talk conversations (rooms).
Args:
modified_since: Optional Unix timestamp. Only conversations
modified after this time are returned.
include_status: Whether to include user-status info for
one-to-one conversations.talk_get_conversation tool
Get details of a Talk conversation by its token.
Args:
token: Unique room token (returned by ``talk_list_conversations``).talk_get_messages tool
Read chat history for a Talk conversation.
Returns the most recent messages (older first when paginated).
Does not move the user's read marker. Call
``talk_mark_as_read`` separately if desired.
Args:
token: Conversation token.
limit: Max messages per page. Valid range is 1-200 (spreed
caps server-side at 200). Values outside this range are
clamped. Default 50.
last_known_message_id: Pagination cursor — pass the
``last_known_message_id`` from the previous response to
fetch the next (older) page. An empty page with no
``last_known_message_id`` means there is no older history.
include_last_known: Include the cursor message in the page
instead of starting just before it.
thread_id: Optional ID of a thread (its root message ID) to read
only that thread: the root message plus every message posted
inside it. Use a message's ``threadId``, or the ``id`` of the
root returned by ``talk_send_message`` with ``thread_title``.
Pagination with ``last_known_message_id`` works the same
within the thread. The thread is complete once the root
message (``id`` equal to ``thread_id``) has been returned.
An unknown thread is an error on Talk 23+, while Talk 22
returns an empty page instead.talk_list_participants tool
List the participants of a Talk conversation.
Args:
token: Conversation token.
include_status: Include each participant's user-status info.talk_send_message tool
Post a chat message into a Talk conversation as the user.
A random ``referenceId`` is attached so spreed dedupes the post
if the request is retried.
Args:
token: Conversation token.
message: Message text (max 32000 characters).
reply_to: Optional parent message ID to thread the reply.
thread_id: Optional ID of an existing thread to post into (the
thread's root message ID). Mutually exclusive with
thread_title.
thread_title: Optional title that starts a brand-new thread,
with this message as its root. Mutually exclusive with
thread_id and with reply_to. Instances that do not
advertise the "threads" feature under the spreed OCS
capability are expected to ignore it rather than error, so
this is not gated client-side -- normal message sending
and reply_to must keep working regardless.
silent: When True the message is delivered without push
notifications (e.g. for status updates).talk_mark_as_read tool
Move the user's read marker forward in a Talk conversation.
Args:
token: Conversation token.
last_read_message: Optional message ID to mark as the new
read position. When omitted, spreed marks everything
currently in the room as read.talk_create_conversation tool
Create a new Talk conversation (room).
Args:
room_name: Display name for the room. Required for a group (2) or
public (3) room. Omit it for a one-to-one room, which spreed
names after the other participant.
room_type: 2 for a group room (default), 3 for a public room, 1 for
a one-to-one room.
invite: User or group ID to add at creation time. Required for a
one-to-one room, where it is the other participant and is what
defines the room. Optional otherwise.talk_add_participant tool
Add a participant to a group or public Talk conversation.
A one-to-one conversation cannot take additional participants -- the
server rejects that with a room-type error.
Args:
token: Conversation token.
participant: Identifier to add, interpreted according to `source`.
source: Where the identifier comes from - "users" (default),
"groups", "emails", "circles", or "federated_users".talk_list_reactions tool
List the reactions on a Talk chat message, grouped by emoji.
Args:
token: Conversation token.
message_id: ID of the message to read reactions from.
reaction: Optional single emoji to filter to.talk_react tool
React to a Talk chat message with an emoji.
Returns the message's reactions after the change, so the caller does
not need a follow-up read.
Args:
token: Conversation token.
message_id: ID of the message to react to.
reaction: The emoji to react with.talk_remove_reaction tool
Remove the user's own reaction from a Talk chat message.
Removing a reaction the user has not made is reported by the server as
a not-found error rather than succeeding silently.
Args:
token: Conversation token.
message_id: ID of the message to remove the reaction from.
reaction: The emoji to remove.nc_webdav_list_directory tool
List files and directories in the specified NextCloud path.
When ``EXCLUDED_TAGS`` is configured: raises ``ToolError`` if the
listed path itself is tagged (or sits inside a tagged folder),
and otherwise omits any tagged children from the listing. The
early guard is consistent with the mutating tools and avoids a
round-trip to Nextcloud for a known-excluded path.
Args:
path: Directory path to list (empty string for root directory)
Returns:
DirectoryListing with files, total_count, directories_count, files_count, and total_sizenc_webdav_read_file tool
Read the content of a file from NextCloud.
For photos, screenshots and other images, use nc_webdav_view_image
instead: it shows you the image itself, while this tool returns it as
base64 text or OCR output.
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and the
file (or an ancestor folder) carries an excluded system tag.
Args:
path: Full path to the file to read
parse_document: How to handle a document (PDF, DOCX, image, ...):
- ``"auto"`` (default): extract its text. Cheapest route that
works -- a PDF with a good text layer is read directly, and a
scanned one escalates to OCR when the server has OCR enabled.
- ``"markdown"``: additionally reconstruct structure (headings,
tables) rather than returning a flat text layer. Costs a
second, slower parse and is bounded by a page ceiling, when it
cannot be honoured the response says so instead of pretending.
- ``"raw"``: do not parse. Text files are decoded, anything else
comes back base64-encoded.
Files no processor handles (plain text, JSON, archives) are
unaffected by this argument.
page_start: PDF only. First page to read (1-based). Omit it, and
page_end, to read the whole document. Use a range for a long
PDF: only those pages are parsed and returned, which is faster
and keeps the response to a size you can use. The markdown page
ceiling then counts only the requested pages.
page_end: PDF only. Last page to read (1-based, inclusive). Omitted
means through the last page. A value past the end is clamped to
the last page and noted in parse_notes. Neither argument can be
combined with parse_document="raw".
line_start: Text files only. First line to read (1-based). Use a
line range to look at part of a long text file instead of
loading all of it, for example to find the passage to change
with nc_webdav_edit_file. Cannot be combined with page_start or
page_end.
line_end: Text files only. Last line to read (1-based, inclusive).
Omitted means through the last line. A value past the end is
clamped. ``total_lines`` in the response says how long the file
is. A single line longer than the response limit is returned
cut off, and parse_notes says so.
line_numbers: Prefix each returned line with its number and a tab,
for a line-range read. Strip that prefix again before quoting
text in nc_webdav_edit_file.
Returns:
``ReadFileResponse``. Alongside ``path``/``content``/``content_type``/
``size``/``etag`` it always describes what you are actually holding:
- ``parse_status``: ``parsed`` / ``failed`` / ``skipped`` /
``not_applicable``.
- ``content_format``: ``markdown``, ``text`` or ``base64``.
- ``parse_tier`` / ``parse_processor``: which extraction tier
produced the content (``fast``, ``structured``, ``ocr``).
- ``parse_notes``: **if this is non-empty, tell the user what
degraded** (OCR unavailable, structure not reconstructed, size cap,
parse failure) rather than presenting the content as the complete
document.
- ``etag``: pass this back into ``nc_webdav_write_file``'s
``if_match`` when writing this same path later, so a manual edit
made elsewhere in the meantime (e.g. in the Nextcloud web UI) is
detected as a conflict instead of silently overwritten.
- ``url``: a link that opens the file in Nextcloud. Offer it when
reporting on the file, and especially when ``parse_notes`` says
the extraction degraded.
- ``page_count``: total pages in a parsed PDF. With ``page_start``/
``page_end`` (the pages actually returned) it tells you whether
more remains to read.nc_webdav_write_file tool
Write content to a file in NextCloud.
To change part of an existing text file, use nc_webdav_edit_file
instead: it takes only the passage to replace, not the whole file.
Writes are **fail-closed**: an existing file is never silently
overwritten. What happens depends on ``if_match`` (see below).
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and the
target path (or an ancestor folder) carries an excluded system tag,
when the decoded content exceeds ``WEBDAV_WRITE_MAX_MB``, when the
write conflicts with a concurrent edit or an existing/missing file
(412), or when the file is locked by another client (423) -- see
``if_match`` below.
Args:
path: Full path where to write the file
content: File content (text or base64 for binary)
content_type: MIME type (auto-detected if not provided, use 'type;base64' for binary)
if_match: Controls overwrite safety.
- Omit (``None``) to **create a new file**: the write fails
with a ``ToolError`` if the path already exists. To change an
existing file you must first read it with
``nc_webdav_read_file`` and pass the etag it returned.
- Pass that **etag** to overwrite the file only if it has not
changed since you read it. If someone edited it in the
meantime (e.g. in the Nextcloud web UI) the write fails --
re-read and retry deliberately rather than looping.
- Pass the literal ``"*"`` to **force-overwrite** an existing
file unconditionally (fails if the file does not exist).
Returns:
``WriteFileResponse`` with ``path``, ``status_code``, ``size``,
``created`` (True when a new file was created, i.e. HTTP 201, False
when an existing file was overwritten, i.e. HTTP 204) and ``etag``.
``etag`` is the file as just written — pass it straight back as
``if_match`` on the next write to chain edits without an intervening
read. It is ``None`` when the server did not return one (some
proxies strip it). Re-read the file to obtain it in that case.nc_webdav_edit_file tool
Change part of a text file in place, by exact text replacement.
Prefer this over nc_webdav_write_file for changing an existing text
file: send only the passage to replace and its replacement, not the
whole file. Plain UTF-8 text files only, such as Markdown (including
Collectives pages), YAML, JSON, XML, CSV, configuration files and
source code. PDFs, Office and OpenDocument files, images other than
SVG, audio, video and archives are refused, because a text edit would
corrupt them. Replace those as a whole with nc_webdav_write_file.
Each edit replaces ``old_string`` with ``new_string``. ``old_string``
must match the file exactly, including whitespace, indentation and
line breaks, and must occur exactly once unless ``replace_all`` is
true, so quote enough surrounding text to make it unique. Strip the
line-number prefix if you copied the text from a read with
line_numbers. To delete text, use an empty ``new_string``.
Several edits are applied in order, each to the result of the previous
one, and saved as a single change (one new file version). If any edit
cannot be applied, nothing is saved and the error says which one and
why.
The file is read and written back guarded by its etag, so a change
made elsewhere at the same moment is never overwritten. Pass
``if_match`` (an etag from nc_webdav_read_file) to also refuse the edit
if the file changed since you read it. Windows line endings (CRLF) and
a byte-order mark are kept as they are.
Raises ``ToolError`` when the file does not exist, is not a plain UTF-8
text file, is larger than ``WEBDAV_WRITE_MAX_MB``, carries an excluded
tag, is locked, changed concurrently, or when an edit cannot be applied.
Args:
path: Full path of the file to edit
edits: Replacements, applied in order. Each has ``old_string``,
``new_string`` and optionally ``replace_all``.
if_match: Optional etag from an earlier read. The edit fails if
the file has changed since.
Returns:
``EditFileResponse`` with the new ``etag``, the number of
``replacements`` and a unified ``diff`` of the change, to check it
without re-reading the file.nc_webdav_create_directory tool
Create a directory in NextCloud.
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and the
target path lies inside a folder carrying an excluded system tag.
Args:
path: Full path of the directory to create
Returns:
Dict with status_code (201 for created, 405 if already exists)nc_webdav_delete_resource tool
Delete a file or directory in NextCloud.
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and the
target path (or an ancestor folder) carries an excluded system tag.
Args:
path: Full path of the file or directory to delete
Returns:
Dict with status_code indicating result (404 if not found)nc_webdav_move_resource tool
Move or rename a file or directory in NextCloud.
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and either
the source or destination path (or one of their ancestor folders)
carries an excluded system tag.
Args:
source_path: Full path of the file or directory to move
destination_path: New path for the file or directory
overwrite: Whether to overwrite the destination if it exists (default: False)
if_destination_match: Optional ETag of the destination (from
nc_webdav_read_file or nc_webdav_write_file). The move then
replaces the destination only if it is still that exact version,
so ``overwrite=True`` cannot clobber a file someone else changed
in the meantime. Requires ``overwrite=True``. ``"*"`` is not
accepted. Files only — a directory destination always fails the
check with 412.
Returns:
``MoveResourceResponse``. ``success`` is
False for the known conflicts — 404 when the source does not
exist, 412 when the destination exists and ``overwrite`` is
False, 409 for a missing parent — with ``message`` explaining
which. Other failures raise.nc_webdav_copy_resource tool
Copy a file or directory in NextCloud.
Raises ``ToolError`` when ``EXCLUDED_TAGS`` is configured and either
the source or destination path (or one of their ancestor folders)
carries an excluded system tag.
Args:
source_path: Full path of the file or directory to copy
destination_path: Destination path for the copy
overwrite: Whether to overwrite the destination if it exists (default: False)
if_destination_match: Optional ETag of the destination (from
nc_webdav_read_file or nc_webdav_write_file). The copy then
replaces the destination only if it is still that exact version,
so ``overwrite=True`` cannot clobber a file someone else changed
in the meantime. Requires ``overwrite=True``. ``"*"`` is not
accepted. Files only — a directory destination always fails the
check with 412.
Returns:
``CopyResourceResponse``. ``success`` is
False for the known conflicts — 404 when the source does not
exist, 412 when the destination exists and ``overwrite`` is
False, 409 for a missing parent — with ``message`` explaining
which. Other failures raise.nc_webdav_search_files tool
Search for files in NextCloud using WebDAV SEARCH.
This is a high-level search tool that supports common search patterns.
For more complex queries, use the specific search tools.
Args:
scope: Directory path to search in (empty string for user root)
name_pattern: File name pattern (supports % wildcard, e.g., "%.txt" for all text files)
mime_type: MIME type to filter by (supports % wildcard, e.g., "image/%" for all images)
only_favorites: If True, only return favorited files
limit: Maximum number of results to return
Returns:
SearchFilesResponse with list of matching filesnc_webdav_find_by_name tool
Find files by name pattern in NextCloud.
Args:
pattern: Name pattern to search for (supports % wildcard)
scope: Directory path to search in (empty string for user root)
limit: Maximum number of results to return
Returns:
SearchFilesResponse with list of matching filesnc_webdav_find_by_type tool
Find files by MIME type in NextCloud.
Args:
mime_type: MIME type to search for (supports % wildcard)
scope: Directory path to search in (empty string for user root)
limit: Maximum number of results to return
Returns:
SearchFilesResponse with list of matching filesnc_webdav_list_favorites tool
List all favorite files in NextCloud.
Args:
scope: Directory path to search in (empty string for all favorites)
limit: Maximum number of results to return
Returns:
SearchFilesResponse with list of favorite filesnc_webdav_list_comments tool
Read the comments people have left on a file in NextCloud.
Comments are how a team annotates a file in place -- review requests,
hand-offs, context that does not belong in the file itself.
Raises ``ToolError`` when the file does not exist, or when
``EXCLUDED_TAGS`` is configured and the file (or an ancestor folder)
carries an excluded system tag.
Args:
path: Full path to the file (e.g. "/Documents/report.pdf")
limit: Maximum number of comments to return (default: 20)
offset: How many of the newest comments to skip, for paging
Returns:
ListFileCommentsResponse with the comments, newest first.nc_webdav_create_comment tool
Post a comment on a file in NextCloud.
To notify someone, mention them by Nextcloud user ID: ``@username``, or
``@"user id with spaces"``. Nextcloud parses the mention out of the
message when it stores the comment and sends the notification itself --
nothing else is needed here.
Raises ``ToolError`` when the file does not exist, or when
``EXCLUDED_TAGS`` is configured and the file (or an ancestor folder)
carries an excluded system tag. Raises ``ValueError`` for a blank
message, or one over Nextcloud's limit -- nothing is posted in either
case.
Args:
path: Full path to the file to comment on
message: The comment text (max 1000 characters, measured after
trimming whitespace, counting Unicode code points)
Returns:
CreateFileCommentResponse with the new comment's ID.nc_webdav_list_trash tool
List deleted files in the user's trash bin.
Each entry carries the id needed to restore it, the location it was
deleted from, and when it was deleted.nc_webdav_restore_from_trash tool
Restore a deleted file from the trash bin to its original location.
Args:
entry_id: The id from nc_webdav_list_trash (not the file name).nc_webdav_list_versions tool
List stored previous versions of a file.
Args:
path: Path to the file, relative to the user's files root.nc_webdav_restore_version tool
Roll a file back to an earlier version.
The current content is not lost: Nextcloud stores it as a version in
turn, so the rollback itself can be undone.
Args:
path: Path to the file, relative to the user's files root.
version_id: The version_id from nc_webdav_list_versions.nc_webdav_list_tags tool
List all system tags available for tagging files.
nc_webdav_get_file_tags tool
List the tags assigned to one file.
Args:
path: Path to the file, relative to the user's files root.nc_webdav_find_by_tag_name tool
Find all files carrying a given tag.
Args:
tag: Tag name, case-sensitive.nc_webdav_tag_file tool
Attach a tag to a file, creating the tag if it does not exist yet.
Args:
path: Path to the file, relative to the user's files root.
tag: Tag name.nc_webdav_untag_file tool
Remove a tag from a file. The tag itself keeps existing.
Args:
path: Path to the file, relative to the user's files root.
tag: Tag name.nc_webdav_view_image tool
Show an image file so you can look at it (photos, screenshots, scans).
Returns the image itself, which a vision model sees as a picture, not as
text. Use this instead of nc_webdav_read_file for images: that tool
returns them as base64 text or OCR output, which you cannot look at.
Works for images anywhere in the user's files, including Notes
attachments, images on Collectives pages and files shared in Talk.
The image is scaled down to at most ``max_size`` pixels on its longer
edge, the right size for a vision model. Raise it (up to 2576) to read
small print, lower it to save tokens. A photo is turned upright according
to its orientation data.
Nextcloud renders the image, so formats such as HEIC work when the
Nextcloud server can preview them. Otherwise the original is decoded here
(JPEG, PNG, GIF, WebP, BMP, TIFF), which takes at most 80 megapixels for
JPEG and 24 for the other formats. Files that are not images are refused.
Raises ``ToolError`` for those, for files that do not exist or cannot be
decoded, and when ``EXCLUDED_TAGS`` hides the file.
Args:
path: Path of the image, relative to the user's files root
max_size: Longest edge of the image you receive, in pixels (64-2576)
Returns:
The image, followed by ``ViewImageResponse``: its size and format,
whether it was made from Nextcloud's preview or the original, and the
size of what it was made from (larger than the image you got means a
higher ``max_size`` would show more detail).deck_assign_dependent_card tool
nc_notes_create_note tool
nc_notes_create_note tool
nc_semantic_search tool
nc_get_capabilities resource
Get the Nextcloud Host capabilities
cookbook_get_version resource
Get the Cookbook app and API version
cookbook_get_config resource
Get the Cookbook app configuration
nc_cookbook_get_recipe_resource resource
Get a recipe by ID using resource URI
deck_boards_resource resource
List all Nextcloud Deck boards.
DEPRECATED: use the ``deck_get_boards`` tool instead.deck_board_resource resource
Get details of a specific Nextcloud Deck board.
DEPRECATED: use the ``deck_get_board`` tool instead.deck_stacks_resource resource
List all stacks in a Nextcloud Deck board.
DEPRECATED: use the ``deck_get_stacks`` tool instead.deck_stack_resource resource
Get details of a specific Nextcloud Deck stack.
DEPRECATED: use the ``deck_get_stack`` tool instead.deck_cards_resource resource
List all cards in a Nextcloud Deck stack.
DEPRECATED: use the ``deck_get_cards`` tool instead.deck_card_resource resource
Get details of a specific Nextcloud Deck card.
DEPRECATED: use the ``deck_get_card`` tool instead.deck_labels_resource resource
List all labels in a Nextcloud Deck board.
DEPRECATED: use the ``deck_get_labels`` tool instead.deck_label_resource resource
Get details of a specific Nextcloud Deck label.
DEPRECATED: use the ``deck_get_label`` tool instead.notes_get_settings resource
Get the Notes App settings
nc_notes_get_attachment_resource resource
Get a specific attachment from a note
nc_get_note_resource resource
Get user note using note id
What we checked
The same checks run on every server. Each line below has one of these marks:
- 8 checks: command injection, argument injection, path traversal, server-side request forgery, SQL injection, code execution, unsafe deserialization, template injectionChecked on every scan. Results in this category are published only after a person has verified them.
- Runs programs the caller choosesNo tool runs a command or program the caller supplies — 219 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Executes caller-supplied codeNo tool evaluates code the caller supplies — 219 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Reads or writes any file pathNo tool works on a file path the caller supplies without a root check — 219 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Requests any addressNo tool sends a request to an address the caller supplies — 219 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Runs caller-supplied SQLNo tool executes a query the caller supplies — 219 tool handlers traced. Not every path could be followed, so this is not a clean pass.
- Tools that start processesNot seen in the traced code of 219 capabilities; 216 more call code the scanner could not follow, where it may happen
- Tools that touch files8 of 219 capabilities touch files; 208 more call code the scanner could not follow, where it may happen
- Tools that call the network10 of 219 capabilities call the network; 206 more call code the scanner could not follow, where it may happen
Where the code is: 219 handlers in 19 files at commit 2206c62623f3
nextcloud_mcp_server/server/__init__.pync_get_capabilitiesnextcloud_mcp_server/server/auth_tools.pync_auth_provision_access, nc_auth_check_status, nc_auth_update_scopesnextcloud_mcp_server/server/calendar.pync_calendar_list_calendars, nc_calendar_create_event, nc_calendar_list_events, nc_calendar_get_event, nc_calendar_update_event, nc_calendar_delete_event, nc_calendar_create_meeting, nc_calendar_get_upcoming_events, nc_calendar_find_availability, nc_calendar_bulk_operations, nc_calendar_manage_calendar, nc_calendar_list_todos +5nextcloud_mcp_server/server/collectives.pycollectives_get_collectives, collectives_get_pages, collectives_get_page, collectives_search_pages, collectives_get_tags, collectives_get_trashed_pages, collectives_get_trashed_collectives, collectives_create_collective, collectives_set_collective_emoji, collectives_trash_collective, collectives_delete_collective, collectives_restore_collective +8nextcloud_mcp_server/server/contacts.pync_contacts_list_addressbooks, nc_contacts_list_contacts, nc_contacts_search_contacts, nc_contacts_create_addressbook, nc_contacts_delete_addressbook, nc_contacts_create_contact, nc_contacts_delete_contact, nc_contacts_update_contactnextcloud_mcp_server/server/cookbook.pycookbook_get_version, cookbook_get_config, nc_cookbook_get_recipe_resource, nc_cookbook_import_recipe, nc_cookbook_list_recipes, nc_cookbook_get_recipe, nc_cookbook_create_recipe, nc_cookbook_update_recipe, nc_cookbook_delete_recipe, nc_cookbook_search_recipes, nc_cookbook_list_categories, nc_cookbook_get_recipes_in_category +4nextcloud_mcp_server/server/deck.pydeck_boards_resource, deck_board_resource, deck_stacks_resource, deck_stack_resource, deck_cards_resource, deck_card_resource, deck_labels_resource, deck_label_resource, deck_get_boards, deck_get_board, deck_get_stacks, deck_get_stack +34nextcloud_mcp_server/server/mail.pync_mail_list_accounts, nc_mail_list_mailboxes, nc_mail_list_messages, nc_mail_get_message, nc_mail_send_message, nc_mail_save_draft, nc_mail_get_attachment, nc_mail_view_attachment, nc_mail_get_message_source, nc_mail_set_flags, nc_mail_create_tag, nc_mail_set_tag +3nextcloud_mcp_server/server/news.pync_news_list_folders, nc_news_list_feeds, nc_news_list_items, nc_news_get_item, nc_news_get_starred_items, nc_news_get_unread_items, nc_news_get_feed_health, nc_news_get_statusnextcloud_mcp_server/server/notes.pynotes_get_settings, nc_notes_get_attachment_resource, nc_get_note_resource, nc_notes_create_note, nc_notes_update_note, nc_notes_append_content, nc_notes_search_notes, nc_notes_list_notes, nc_notes_get_note, nc_notes_get_attachment, nc_notes_delete_notenextcloud_mcp_server/server/oauth_tools.pyprovision_nextcloud_access, revoke_nextcloud_access, check_provisioning_status, check_logged_innextcloud_mcp_server/server/sar.pysar_case_create, sar_case_list, sar_case_get, sar_case_update, sar_case_items, sar_case_search, sar_case_exportnextcloud_mcp_server/server/semantic.pync_semantic_search, nc_get_vector_sync_statusnextcloud_mcp_server/server/sharing.pync_share_create, nc_share_create_public_link, nc_share_delete, nc_share_get, nc_share_list, nc_share_updatenextcloud_mcp_server/server/shopping_list.pync_shopping_list_get_lists, nc_shopping_list_get_list, nc_shopping_list_create_list, nc_shopping_list_update_list, nc_shopping_list_delete_list, nc_shopping_list_get_items, nc_shopping_list_add_items, nc_shopping_list_update_item, nc_shopping_list_check_item, nc_shopping_list_delete_item, nc_shopping_list_clear_checked_items, nc_shopping_list_uncheck_all_itemsnextcloud_mcp_server/server/tables.pync_tables_list_tables, nc_tables_get_schema, nc_tables_read_table, nc_tables_read_view, nc_tables_get_row, nc_tables_insert_row, nc_tables_update_row, nc_tables_delete_rownextcloud_mcp_server/server/talk.pytalk_list_conversations, talk_get_conversation, talk_get_messages, talk_list_participants, talk_send_message, talk_mark_as_read, talk_create_conversation, talk_add_participant, talk_list_reactions, talk_react, talk_remove_reactionnextcloud_mcp_server/server/webdav.pync_webdav_list_directory, nc_webdav_read_file, nc_webdav_write_file, nc_webdav_edit_file, nc_webdav_create_directory, nc_webdav_delete_resource, nc_webdav_move_resource, nc_webdav_copy_resource, nc_webdav_search_files, nc_webdav_find_by_name, nc_webdav_find_by_type, nc_webdav_list_favorites +11nextcloud_mcp_server/server/webdav_image.pync_webdav_view_image
- 5 checks: tool poisoning, instruction override, hidden content, exfiltration requests, metadata integrityChecked on every scan. Results in this category are published only after a person has verified them.
- Dependency manifests2 manifests: packages/nextcloud-client/pyproject.toml, pyproject.toml
- Lockfiles checked against OSV1 file resolved and checked against the OSV database; 2 not resolved: packages/nextcloud-client/pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked; pyproject.toml: dependency ranges declared here were not resolved against a lockfile and were not checked
- Known vulnerabilities in production dependencies CRITICAL2 production packages with known advisories
- Known vulnerabilities in other dependenciesNo package used only for development, tests or examples has a known advisory
- MCP SDK versionNo MCP SDK declared in a manifest
- 3 checks: credential harvesting, undeclared credential access, credentials sent over the networkChecked on every scan. Results in this category are published only after a person has verified them.
- Tools that read credentialsNot seen in the traced code of 219 capabilities; 216 more call code the scanner could not follow, where it may happen
- Environment variables1 capability reads environment variables (often API keys)
- Authentication declaredNot checked: needs the live server's tools/list (a remote server declares how clients authenticate)
- 3 checks: undeclared network access, undeclared file access, undeclared process executionChecked on every scan. Results in this category are published only after a person has verified them.
- Tool descriptions presentEvery tool has a description the model and the user can read (1 only in code no tool reaches)
- Statically known namesEvery tool's name could be read from the code
- Input schemasNot checked: needs the live server's tools/list (every tool declares an input schema)
- Destructive tools annotatedNot checked: needs the live server's tools/list (tools that write, delete or run commands carry destructivehint)
Dependencies with known vulnerabilities (2 in production)
Dependency ranges were not resolved against a lockfile, so the score is capped at 7.
pillowPyPI 11.3.0 CRITICAL 96 advisories 12.1.112.2.012.3.0+1 more
- CRITICALGHSA-w889-685w-c8fh BIT-pillow-2026-112900 CVE-2026-112900Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
- CRITICALGHSA-332p-7hrc-92wf BIT-pillow-2026-112393 CVE-2026-112393Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
- CRITICALGHSA-8g5g-8vmr-9782 BIT-pillow-2026-112403 CVE-2026-112403 PYSEC-2026-4332Pillow: Heap buffer overflow in ImagingJpegDecode
- CRITICALGHSA-5x8w-8jj5-q52h BIT-pillow-2026-112398 CVE-2026-112398 PYSEC-2026-4330Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
- CRITICALGHSA-v9pv-5gc8-w2m6 BIT-pillow-2026-96639 CVE-2026-96639 PYSEC-2026-4339Pillow multi-frame loaders can reuse stale native image storage after mode transitions
- HIGHGHSA-cfh3-3jmp-rvhc BIT-pillow-2026-25990 CVE-2026-25990 PYSEC-2026-2249Pillow affected by out-of-bounds write when loading PSD images
- HIGHGHSA-65qm-jvmh-6pqg BIT-pillow-2026-112400 CVE-2026-112400Pillow: GIF seek keeps rejected size after DecompressionBombError, allowing DoS
- HIGHGHSA-vjc4-5qp5-m44j BIT-pillow-2026-59204 CVE-2026-59204 PYSEC-2026-3496Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
- HIGHGHSA-5xm2-6676-qcp9 BIT-pillow-2026-112399 CVE-2026-112399Pillow: APNG background disposal allocates full canvas before decompression bomb check
- HIGHGHSA-phj9-mv4w-65pm BIT-pillow-2026-55380 CVE-2026-55380 PYSEC-2026-2256Pillow `GdImageFile._open()`: image dimensions accepted without `_decompression_bomb_check()`
- HIGHGHSA-jg86-v3jv-hrpm BIT-pillow-2026-112894 CVE-2026-112894Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
- HIGHGHSA-g7cr-3p24-7wf7 BIT-pillow-2026-96778 CVE-2026-96778Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
- HIGHGHSA-c6hw-5grf-ff96 BIT-pillow-2026-112404 CVE-2026-112404Pillow: OOB read in TiffDecode.c tile and RGBA paths leaks heap memory into pixels
- HIGHGHSA-g4qv-2jxx-769h BIT-pillow-2026-96643 CVE-2026-96643 PYSEC-2026-4342Pillow: PNG eXIf chunk makes EXIF parsing run in quadratic time
- HIGHGHSA-mrfp-p49p-3hf2 BIT-pillow-2026-96640 CVE-2026-96640Pillow PDF append accepts malformed shared page-tree DAG causing resource exhaustion
- HIGHGHSA-5x94-69rx-g8h2 BIT-pillow-2026-54060 CVE-2026-54060 PYSEC-2026-2254Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`
- HIGHGHSA-xvh5-g6gv-559v BIT-pillow-2026-112902 CVE-2026-112902 PYSEC-2026-4363 Pillow: Memory disclosure and segfault in libtiff encoder via crafted TIFF tags
- HIGHGHSA-62p4-gmf7-7g93 BIT-pillow-2026-54058 CVE-2026-54058 PYSEC-2026-3493Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
- HIGHGHSA-58r4-6rv3-gfh8 BIT-pillow-2026-112397 CVE-2026-112397 PYSEC-2026-4329Pillow: Out-of-bounds access in _imagingmorph on a zero-width image
- HIGHGHSA-whj4-6x5x-4v2j BIT-pillow-2026-40192 CVE-2026-40192 PYSEC-2026-2250FITS GZIP decompression bomb in Pillow
- HIGHGHSA-45hq-cxwh-f6vc BIT-pillow-2026-55379 CVE-2026-55379 PYSEC-2026-2255Pillow `BdfFontFile`: `Image.new()` called without `_decompression_bomb_check()` — bomb protection bypass via font loading
- HIGHGHSA-jjj6-mw9f-p565 BIT-pillow-2026-59200 CVE-2026-59200 PYSEC-2026-3495Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
- HIGHGHSA-3j72-p6qg-6xp7 BIT-pillow-2026-96642 CVE-2026-96642 PYSEC-2026-4341Pillow: TarIO negative size field causes infinite CPU-spin loop
- HIGHGHSA-xcvg-w56q-r89m CVE-2026-128067Pillow: Heap buffer overflow saving TIFF with libtiff when tags override image size
- HIGHGHSA-22hg-r758-rrw9 BIT-pillow-2026-112390 CVE-2026-112390Pillow: Infinite loop in MIC n_frames when the embedded TIFF
- HIGHGHSA-q45j-58j2-45rg BIT-pillow-2026-112897 CVE-2026-112897Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips
- HIGHGHSA-xj96-63gp-2gmr BIT-pillow-2026-59197 CVE-2026-59197 PYSEC-2026-3454Pillow: Heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`
- HIGHGHSA-p4wg-p73j-c528 BIT-pillow-2026-112895 CVE-2026-112895Pillow: Unbounded recursion parsing a PDF page tree or trailer chain (incomplete fix for CVE-2026-42310)
- HIGHGHSA-f2g6-542v-9j58 BIT-pillow-2026-112406 CVE-2026-112406Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
- HIGHGHSA-8v84-f9pq-wr9x BIT-pillow-2026-54059 CVE-2026-54059 PYSEC-2026-2253Pillow `PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading
- HIGHGHSA-g842-9rc4-69pw BIT-pillow-2026-96637 CVE-2026-96637 PYSEC-2026-4338Pillow: Decompression bomb check bypass in SpiderImagePlugin.seek() leads to unbounded allocation DoS
- HIGHGHSA-6r8x-57c9-28j4 BIT-pillow-2026-59199 CVE-2026-59199 PYSEC-2026-3451Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow
- HIGHGHSA-78g4-xqwv-q3g8Pillow: Bundled libopenjp2 2.5.4 in all wheels since 11.1.0 carries OSV-2025-219 heap-buffer-overflow write reachable from Image.open().load()
- HIGHGHSA-9v9v-9qvf-h2hj BIT-pillow-2026-96644 CVE-2026-96644 PYSEC-2026-4343Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)
- HIGHGHSA-pwv6-vv43-88gr BIT-pillow-2026-42311 CVE-2026-42311 PYSEC-2026-2252Pillow has an OOB Write with Invalid PSD Tile Extents (Integer Overflow)
- HIGHGHSA-pchr-8j38-3x4p BIT-pillow-2026-112896 CVE-2026-112896 PYSEC-2026-4334Pillow: TIFF encoder ColorMap plane-size mismatch causes a heap out-of-bounds read
- HIGHGHSA-j4m9-6w36-pw47 BIT-pillow-2026-112893 CVE-2026-112893Pillow: Invalid free in FreeType glyph rendering when a stroker is active
- HIGHGHSA-9hw9-ch79-4vh6 BIT-pillow-2026-59205 CVE-2026-59205 PYSEC-2026-3453Pillow: Controlled heap out-of-bounds write in Pillow `ImageCmsTransform.apply()` via output mode mismatch
- HIGHGHSA-27h8-gf7j-v5hc BIT-pillow-2026-112392 CVE-2026-112392 PYSEC-2026-4326Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
- HIGHGHSA-7mwm-ghpf-9vrm BIT-pillow-2026-112402 CVE-2026-112402 PYSEC-2026-4331Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform
- HIGHGHSA-gg2r-wvfm-q9rx BIT-pillow-2026-112892 CVE-2026-112892Pillow: MSP RLE decoder expands a tiny file into unbounded memory
- MEDIUMPYSEC-2026-2255 BIT-pillow-2026-55379 CVE-2026-55379 GHSA-45hq-cxwh-f6vcPillow is a Python imaging library. Prior to 12.3.0, PIL/BdfFontFile.py bdf_char() read the BBX width and height field from a BDF font file and passed attacker-controlled dimensions to Image.new() without calling Image._decompression_bomb_check(), bypassing Pillow's documented decompression bomb protection and allowing excessive memory allocation. This issue is fixed in version 12.3.0.
- MEDIUMPYSEC-2026-4342 BIT-pillow-2026-96643 CVE-2026-96643 GHSA-g4qv-2jxx-769hPillow is a Python imaging library. From 11.0.0 until 13.0.0, Exif.load() in src/PIL/Image.py repeatedly slices the remaining EXIF data while it begins with the six-byte Exif header. src/PIL/PngImagePlugin.py accepts an uncapped PNG eXIf chunk, so a file filled with repeated headers causes a new shrinking copy on every iteration and quadratic CPU work. The condition is reachable through Image.getexif(), Image._getexif(), and ImageOps.exif_transpose(), including common photo-upload rotation workflows. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4330 BIT-pillow-2026-112398 CVE-2026-112398 GHSA-5x8w-8jj5-q52hPillow is a Python imaging library. Prior to 13.0.0, Pillow's FlashPix JPEG-tile decoder can write decoded scanlines beyond the allocated tile buffer. FlashPix (FPX) JPEG decoding selects raw mode LA with two bytes per pixel, while an unrecognized JPEG mode can be decoded as JCS_UNKNOWN with four components, causing ImagingJpegDecode to write four-component scanlines into the two-byte tile buffer. An attacker can supply a crafted OLE2 FlashPix file to an application with the optional olefile dependency installed that opens or thumbnails untrusted input. This can corrupt heap memory and may allow arbitrary code execution. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4338 BIT-pillow-2026-96637 CVE-2026-96637 GHSA-g842-9rc4-69pwPillow is a Python imaging library. Prior to 13.0.0, SpiderImageFile.seek() in src/PIL/SpiderImagePlugin.py reparses a later SPIDER stack frame and replaces self._size without rerunning Image._decompression_bomb_check(). A tiny file can use a safe first frame to pass Image.open() and then declare very large dimensions in a later mode F frame. Loading that frame allocates approximately four bytes per attacker-declared pixel and can consume multiple gigabytes of memory. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4341 BIT-pillow-2026-96642 CVE-2026-96642 GHSA-3j72-p6qg-6xp7Pillow is a Python imaging library. Prior to 13.0.0, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does not match, the parser repeatedly reads that header, consumes a full CPU core, and never returns. TarIO is reached only when an application directly uses PIL.TarIO.TarIO rather than the default Image.open() path. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-2253 BIT-pillow-2026-54059 CVE-2026-54059 GHSA-8v84-f9pq-wr9xPillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them directly to Image.frombytes() without calling Image._decompression_bomb_check(), allowing crafted PCF font data to cause excessive memory allocation. This issue is fixed in version 12.3.0.
- MEDIUMPYSEC-2026-3496 BIT-pillow-2026-59204 CVE-2026-59204 GHSA-vjc4-5qp5-m44jPillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service
- MEDIUMGHSA-wqgw-9xfh-qf2g CVE-2026-128066Pillow: Memory DoS in TIFF and EXIF IFD parsing via overlapping tag data
- MEDIUMGHSA-24rc-8hj2-v98c BIT-pillow-2026-96638 CVE-2026-96638Pillow: BMP RLE decoder memory-amplification DoS via unbounded delta escape / absolute mode
- MEDIUMGHSA-p8hx-v2p6-rp84 BIT-pillow-2026-96636 CVE-2026-96636 PYSEC-2026-4337Pillow: Decompression-bomb protection bypass via multi-frame seek() in MPO and DCX (MpoImageFile.seek / DcxImageFile.seek)
- MEDIUMGHSA-4rm8-3hmm-39fg BIT-pillow-2026-96641 CVE-2026-96641 PYSEC-2026-4340Pillow: Reachable undefined behavior in native integer operations, potentially leading to denial of service or logic integrity compromise
- MEDIUMPYSEC-2026-2257 BIT-pillow-2026-55798 CVE-2026-55798 GHSA-4x4j-2g7c-83w6Pillow is a Python imaging library. Prior to 12.3.0, WindowsViewer.get_command() constructed a cmd.exe shell command by directly embedding a file path into an f-string without escaping and passed the result to subprocess.Popen(..., shell=True), allowing shell metacharacters in the file path to inject arbitrary cmd.exe commands. This issue is fixed in version 12.3.0.
- MEDIUMGHSA-4558-3h8r-v8xp BIT-pillow-2026-112394 CVE-2026-112394 PYSEC-2026-4327Pillow: P;2L and P;4L decoders may read 1 to 3 bytes past the passed buffer size
- MEDIUMPYSEC-2026-3494 BIT-pillow-2026-59198 CVE-2026-59198 GHSA-fj7v-r99m-22gqPillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
- MEDIUMPYSEC-2026-3451 BIT-pillow-2026-59199 CVE-2026-59199 GHSA-6r8x-57c9-28j4Pillow is a Python imaging library. Prior to 12.3.0, Pillow public image coordinate APIs can trigger a native heap out-of-bounds write when given coordinates near the signed 32-bit integer limits in Image.paste(), Image.crop(), or Image.alpha_composite(). This issue is fixed in version 12.3.0.
- MEDIUMGHSA-254f-3936-288h BIT-pillow-2026-112391 CVE-2026-112391Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()
- MEDIUMPYSEC-2026-3495 BIT-pillow-2026-59200 CVE-2026-59200 GHSA-jjj6-mw9f-p565Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()
- MEDIUMPYSEC-2026-2249 BIT-pillow-2026-25990 CVE-2026-25990 GHSA-cfh3-3jmp-rvhcPillow is a Python imaging library. From 10.3.0 to before 12.1.1, an out-of-bounds write may be triggered when loading a specially crafted PSD image. This vulnerability is fixed in 12.1.1.
- MEDIUMGHSA-wjx4-4jcj-g98j BIT-pillow-2026-42308 CVE-2026-42308 PYSEC-2026-165Pillow has an integer overflow when processing fonts
- MEDIUMPYSEC-2026-4332 BIT-pillow-2026-112403 CVE-2026-112403 GHSA-8g5g-8vmr-9782Pillow is a Python imaging library. Prior to 13.0.0, Pillow's JPEG decoder can write a full-width scanline into a buffer sized for a requested draft scale. ImagingJpegDecode does not verify libjpeg's actual output width and component count after scaling is requested, and an 8-bit lossless SOF3 JPEG decoded by a build linked to libjpeg-turbo 3.x can ignore the requested downscaling geometry. An attacker can supply such a JPEG to an application that uses draft() or thumbnail() to request downscaling. This can corrupt heap memory, crash the process, or potentially allow code execution. Older libjpeg-turbo 2.x and IJG builds reject the SOF3 input. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-2252 BIT-pillow-2026-42311 CVE-2026-42311 GHSA-pwv6-vv43-88grPillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.
- MEDIUMGHSA-vx6w-vv9f-6gvg BIT-pillow-2026-112899 CVE-2026-112899Pillow: EPS load(scale) lets Ghostscript render past the decompression bomb limit
- MEDIUMGHSA-r73j-pqj5-w3x7 BIT-pillow-2026-42310 CVE-2026-42310 PYSEC-2026-2874Pillow has a PDF Parsing Trailer Infinite Loop (DoS)
- MEDIUMGHSA-fj7v-r99m-22gq BIT-pillow-2026-59198 CVE-2026-59198 PYSEC-2026-3494Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images
- MEDIUMPYSEC-2026-3454 BIT-pillow-2026-59197 CVE-2026-59197 GHSA-xj96-63gp-2gmrPillow is a Python imaging library. Prior to 12.3.0, Pillow's public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before rank-filter size validation and ImagingExpand() computes output dimensions with unchecked signed int arithmetic. This issue is fixed in version 12.3.0.
- MEDIUMPYSEC-2026-2256 BIT-pillow-2026-55380 CVE-2026-55380 GHSA-phj9-mv4w-65pmPillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py GdImageFile._open() read image dimensions from the GD 2.x header and stored them in self._size without calling Image._decompression_bomb_check(), allowing a crafted .gd file to trigger excessive C-heap allocation when loaded. This issue is fixed in version 12.3.0.
- MEDIUMGHSA-654x-cwwv-5j9c BIT-pillow-2026-114501 CVE-2026-114501 PYSEC-2026-4336Pillow: Arrow export leaks stale heap memory when PILLOW_ALIGNMENT > 1
- MEDIUMPYSEC-2026-3453 BIT-pillow-2026-59205 CVE-2026-59205 GHSA-9hw9-ch79-4vh6Pillow is a Python imaging library. Prior to 12.3.0, Pillow's ImageCms.ImageCmsTransform.apply(im, imOut) API can trigger controlled native heap corruption when the caller supplies an output image whose mode does not match the transform's declared output mode. This issue is fixed in version 12.3.0.
- MEDIUMPYSEC-2026-2251 BIT-pillow-2026-42309 CVE-2026-42309 GHSA-5xmw-vc9v-4wf2Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cause a heap buffer overflow, as nested lists were recursively unpacked beyond the allocated buffer. Coordinate lists are now validated to contain exactly two numeric coordinates. This issue has been patched in version 12.2.0.
- MEDIUMPYSEC-2026-4339 BIT-pillow-2026-96639 CVE-2026-96639 GHSA-v9pv-5gc8-w2m6Pillow is a Python imaging library. From 11.0.0 until 13.0.0, multi-frame loaders can retain an ImagingCore allocation created for a narrow frame mode while a later frame of the same dimensions changes the logical mode and decoder tiles to wider RGB or CMYK data. ImageFile.load_prepare() reuses the stale native storage because _im is non-null without verifying that its mode and size still match. Crafted PSD, MPO, DCX, or MIC frame transitions can then write wider pixels into the narrow allocation, causing native out-of-bounds writes and crashes. The MPO path can also cause a native over-read and, in demonstrated runtime-specific profiles, command execution. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4363 BIT-pillow-2026-112902 CVE-2026-112902 GHSA-xvh5-g6gv-559vPillow is a Python imaging library. In versions through 12.3.0, the libtiff TIFF encoder can pass arguments to TIFFSetField() that do not match libtiff’s definition of the corresponding tag. When an application saves attacker-controlled image metadata through this encoder, crafted tag values can cause invalid memory reads, copying process memory into the encoded output or crashing the process. Applications that return the encoded output to an attacker can disclose that memory. The issue is reachable when re-saving compressed TIFF images and through certain conversions that preserve EXIF metadata into compressed TIFF output. This vulnerability is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4326 BIT-pillow-2026-112392 CVE-2026-112392 GHSA-27h8-gf7j-v5hcPillow is a Python imaging library. Prior to 13.0.0, Pillow's rank-based filters can dereference invalid image storage for a zero-size image. ImagingExpand() allocates a non-empty output and then faults while replicating edges by reading the first pixel from empty input storage; ImagingRankFilter is never reached. An attacker can supply or cause creation of a zero-size image to an application that applies a rank, median, minimum, or maximum filter. This causes a native process crash. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4331 BIT-pillow-2026-112402 CVE-2026-112402 GHSA-7mwm-ghpf-9vrmPillow is a Python imaging library. Prior to 13.0.0, Pillow can double free image memory when ImagingScaleAffine encounters a selective allocation failure. The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE operations with the default NEAREST resampling. The output image allocation must succeed while the additional per-column lookup allocation fails, after which the error path deletes image storage that later cleanup releases again. An attacker who can drive such a large Image.transform() operation under memory pressure may trigger the failure. This can crash the process and may corrupt memory. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4336 BIT-pillow-2026-114501 CVE-2026-114501 GHSA-654x-cwwv-5j9cPillow is a Python imaging library. From 11.2.1 until 13.0.0, Arrow export assumes that an image's rows are tightly contiguous and exports from im->blocks[0].ptr even when PILLOW_ALIGNMENT makes aligned_linesize include row padding or an aligned offset before the first row. The resulting Arrow buffer can include uninitialized padding, bytes preceding the first row, or stale heap contents from previously freed images. Applications that configure alignment and export images to Arrow can therefore disclose one user's pixels or other process memory to another user. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-165 BIT-pillow-2026-42308 CVE-2026-42308 GHSA-wjx4-4jcj-g98jPillow is a Python imaging library. Prior to version 12.2.0, if a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the current position, it may lead to an integer overflow. This issue has been patched in version 12.2.0.
- MEDIUMPYSEC-2026-4340 BIT-pillow-2026-96641 CVE-2026-96641 GHSA-4rm8-3hmm-39fgPillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C integer overflow in xsize += dx, producing a large positive width from a negative mathematical result. Applications that use getlength(), getsize(), or derived layout, quota, serialization, or allocation calculations can experience logic-integrity errors or resource consumption, while the high-level mask path commonly retains a decompression-bomb check. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-fc9g-5qg7-mf45 BIT-pillow-2026-112891 CVE-2026-112891Pillow: Quadratic GIF comment copying during save
- MEDIUMPYSEC-2026-4329 BIT-pillow-2026-112397 CVE-2026-112397 GHSA-58r4-6rv3-gfh8Pillow is a Python imaging library. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-3493 BIT-pillow-2026-54058 CVE-2026-54058 GHSA-62p4-gmf7-7g93Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)
- MEDIUMPYSEC-2026-4343 BIT-pillow-2026-96644 CVE-2026-96644 GHSA-9v9v-9qvf-h2hjPillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c. The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields but copies pixel data using the original full dimensions. A crafted wide, short metafile can pass the pixel-count decompression-bomb check and make the Windows-only renderer read beyond the heap buffer, potentially disclosing memory or crashing the process. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4337 BIT-pillow-2026-96636 CVE-2026-96636 GHSA-p8hx-v2p6-rp84Pillow is a Python imaging library. Prior to 13.0.0, MpoImageFile.seek() and DcxImageFile.seek() reparse later MPO or DCX frames and replace self._size without rerunning Image._decompression_bomb_check(). A crafted multi-frame image can use a tiny first frame to pass Image.open() and then declare an over-limit later frame. Normal frame iteration through seek(), load(), or ImageSequence.Iterator can decode that frame and commit hundreds of megabytes or more, causing memory-exhaustion denial of service. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-74r2-7ff9-mjj2 BIT-pillow-2026-112401 CVE-2026-112401Pillow: Quadratic GIF comment concatenation allows DoS in Image.open()
- MEDIUMGHSA-4x4j-2g7c-83w6 BIT-pillow-2026-55798 CVE-2026-55798 PYSEC-2026-2257Pillow: WindowsViewer.get_command() OS command injection via unescaped shell path
- MEDIUMGHSA-5xmw-vc9v-4wf2 BIT-pillow-2026-42309 CVE-2026-42309 PYSEC-2026-2251Pillow has a heap buffer overflow with nested list coordinates
- MEDIUMPYSEC-2026-4327 BIT-pillow-2026-112394 CVE-2026-112394 GHSA-4558-3h8r-v8xpPillow is a Python imaging library. Prior to 13.0.0, Pillow's P;2L and P;4L raw decoders can read past the end of an input buffer. ImagingRawDecode calculates a packed-pixel row size, while the unpackers read separately padded bit planes. A caller can supply a buffer and image dimensions whose accepted size is smaller than the unpacker's actual footprint. This can disclose up to three adjacent heap bytes in output pixels or crash the process. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4328 BIT-pillow-2026-112396 CVE-2026-112396 GHSA-4rr5-89j8-mwwmPillow is a Python imaging library. From 11.3.0 until 13.0.0, Pillow has a heap use-after-free when libtiff rejects a tag while encoding TIFF data to an in-memory buffer. When an application saves attacker-influenced TIFF tags to BytesIO, libtiff can reject a tag during encoding in ImagingLibTiffEncode; the error path then frees the output buffer without closing or clearing the TIFF handle, and later cleanup flushes through the write callback into freed memory, which can crash the process and may enable code execution. This issue is fixed in version 13.0.0.
- MEDIUMGHSA-xgh8-jp6q-p5x8 BIT-pillow-2026-112901 CVE-2026-112901 PYSEC-2026-4335Pillow: ReDoS in XbmImagePlugin: 512-byte file stalls Image.open() for minutes
- MEDIUMPYSEC-2026-2250 BIT-pillow-2026-40192 CVE-2026-40192 GHSA-whj4-6x5x-4v2jPillow is a Python imaging library. Versions 10.3.0 through 12.1.1 did not limit the amount of GZIP-compressed data read when decoding a FITS image, making them vulnerable to decompression bomb attacks. A specially crafted FITS file could cause unbounded memory consumption, leading to denial of service (OOM crash or severe performance degradation). If users are unable to immediately upgrade, they should only open specific image formats, excluding FITS, as a workaround.
- MEDIUMGHSA-4rr5-89j8-mwwm BIT-pillow-2026-112396 CVE-2026-112396 PYSEC-2026-4328Pillow: Heap use-after-free when encoding TIFF to an in-memory buffer
- MEDIUMPYSEC-2026-4335 BIT-pillow-2026-112901 CVE-2026-112901 GHSA-xgh8-jp6q-p5x8Pillow is a Python imaging library. Prior to 13.0.0, Pillow's XBM header parser is vulnerable to regular-expression denial of service. In XbmImageFile._open, when an application calls Image.open() on a small crafted XBM file, XbmImagePlugin applies a backtracking expression to the attacker-controlled header before image dimensions are accepted, stalling a worker for minutes and denying service. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-4334 BIT-pillow-2026-112896 CVE-2026-112896 GHSA-pchr-8j38-3x4pPillow is a Python imaging library. Prior to 13.0.0, Pillow's TIFF encoder can read beyond a ColorMap buffer when retained TIFF metadata has a plane size inconsistent with BitsPerSample. A small TIFF can be opened normally and then retain a crafted ColorMap that is reused when the image is saved. An application that re-encodes the attacker's TIFF with libtiff can trigger the out-of-bounds read. This can disclose heap memory in the output or crash the process. This issue is fixed in version 13.0.0.
- MEDIUMPYSEC-2026-2874 BIT-pillow-2026-42310 CVE-2026-42310 GHSA-r73j-pqj5-w3x7Pillow has a PDF Parsing Trailer Infinite Loop (DoS)
- MEDIUMGHSA-rfgq-q3w2-pmv2 BIT-pillow-2026-112898 CVE-2026-112898Pillow: Image.quantize() with empty palette leaks uninitialized stack memory
- MEDIUMGHSA-462x-pgg6-55fp BIT-pillow-2026-112395 CVE-2026-112395Pillow tiled-TIFF decoder reads past tile buffer in copy4 (Unpack.c:1290)
- MEDIUMPYSEC-2026-2254 BIT-pillow-2026-54060 CVE-2026-54060 GHSA-5x94-69rx-g8h2Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1", (xsize, ysize)) without calling Image._decompression_bomb_check(), allowing a font to trigger excessive allocation during conversion or saving. This issue is fixed in version 12.3.0.
soupsievePyPI 2.10 HIGH 3 advisories 3.0.24.0.0
- HIGHGHSA-6655-6qjp-jx7x CVE-2026-126191Soup Sieve: Exponential ReDoS in selector compilation via \\9-run in CSS_ESCAPES/IDENTIFIER
- HIGHGHSA-mmhr-3c5m-f64f CVE-2026-126190Soup Sieve: Polynomial-time denial of service in the descendant combinator
- MEDIUMGHSA-7g44-g9rc-x53w CVE-2026-126193Soup Sieve: Uncontrolled recursion in CSS parser lets nested pseudo-class selectors exhaust the Python call stack
Past security advisories
Vulnerabilities published for this server itself, from the GitHub Advisory Database.
- CRITICAL GHSA-8vh3-g2qg-2h2cCVE-2026-55640nextcloud-mcp-server: Unauthenticated `POST /webhooks/nextcloud` allows arbitrary vector data deletion when `WEBHOOK_SECRET` is unset ( default )
How it runs
| Where it runs | On your machine, started by your MCP client from this repository or its package |
|---|---|
| Transport | not stated in the code the scanner read; most local servers talk over stdio |
| Sign-in | not checked needs the live server |
| Servers in the code | 20 (test, test-deck-tools, test-link-coverage, test-mail-draft-scope, test-mail-view-attachment, test-mail-tools, test-all-tools, test-notes-tools, test-oauth-tools, test-scope-discovery, empty, test-tool-error-outcome) |
The project's own security
| Security policy | yes SECURITY.md |
|---|---|
| Private reporting | mentioned the policy names a private channel |
| Past advisories | 1 · 1 with a fixed version released |
| Last push | 2026-11-15 |
| Signed releases | not checked yet |
Where it is published
| Listed in | 4 catalogs (awesome_habitoai, github_search, glama, mcp_toplist) |
|---|---|
| License | AGPL-3.0 |
| Created | 2025-05-04 |
| Topics | mcp-server model-context-protocol nextcloud nextcloud-deck nextcloud-notes rag |
Attack map
How the server is built and where its risky tools lead: servers, their tools, what the tools' code can do, and the traced route from a declared risky tool's argument to the operation it reaches. Click a node for details.