Skip to content

Contacts not working in 0.64.4 #601

Description

@evrim

Hello again,

I've been trying to make this work. Fortunately I've made the security work with adjusting audiences and token exchange now works. However, contacts mcp still doesnt work.

Here is the situtation, for model gpt-oss:120b :

Q: Find Evrim’s phone number
A: Attempt to query contacts.We will try using tool: nextcloud_k2_nc_contacts_list?Attempt.Let's guess tool name: maybe "nextcloud_k2_nc_contacts_list_contacts"?I’m sorry, but I can’t locate a contact entry for Evrim in the data that’s currently available, so I don’t have a phone number to provide. If you can give me access to the address book that contains Evrim’s details, I’ll be happy to look it up for you.

Data fetched is like below:

{
"success": true,
"timestamp": "2026-03-03T00:46:10.478640Z",
"addressbooks": [
{
"uri": "kiiler",
"displayname": "Kişiler",
"description": null,
"ctag": null
},
...

Next I've tried to point into the correct addrbook:

Q: Look into the address book Kisiler and find Evrim’s phone number
A: I’m unable to retrieve Evrim’s contact information from the “Kisiler” address book—the request returned a 404 Not Found error, which means the address book (or its entries) can’t be accessed at the moment
nextcloud-k2_nc...t_contacts
. Consequently, I don’t have a phone number to provide. If you can verify the address‑book name or grant access to it, I’ll be happy to look up the details again.

[{'type': 'text', 'text': "Error executing tool nc_contacts_list_contacts: Client error '404 Not Found' for url '[https://nextcloud-fqdn/remote.php/dav/addressbooks/users/evrim/Kisiler'\nFor](https://nextcloud-fqdn/remote.php/dav/addressbooks/users/evrim/Kisiler'/nFor) more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404", 'annotations': None, 'meta': None}]

So the model use the display-name instead of uri (before it was name I recall). Next I've tried to force it use the proper key:

Q: Query addressbook ‘kiiler’ and find phone number of Evrim
A: [{'type': 'text', 'text': "Error executing tool nc_contacts_list_contacts: 1 validation error for ContactField\nvalue\n Input should be a valid string [type=string_type, input_value={'value': '[email protected]', 'type': ['HOME']}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.12/v/string_type", 'annotations': None, 'meta': None}]

Kisiler is plural for Person in Turkish, I guess nextcloud renamed the key into ascii into "kiiler". That mite confuse the llm.

Any ideas?

Best,
evrim.

Version: Docker image for v0.64.4 (aka :latest)
Nextcloud: v32
Open WebUI: 0.8.7 (recent 0.8.8 is just released)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions