how to user queries with appwrite mcp without getting Appwrite Error: Invalid query: Syntax error?
database_list_documents function with such query:
TypeScript
{
"database_id": "database_id",
"collection_id": "collection_id",
"queries": [
"equal(\"user\",\"user_id\")",
"equal(\"achievement\",\"achievement_id\")",
"limit(1)"
]
}
returns error
TL;DR
Developers need to include the method and attribute parameters in their MCP queries for Appwrite. Utilize the correct syntax as outlined in the documentation provided at https://appwrite.io/docs/apis/rest#queries-string-format to avoid receiving the `Appwrite Error: Invalid query: Syntax error`.
In the `database_list_documents` function, ensure the query follows the correct format. For example:
```
{
"database_id": "database_id",
"collection_id": "collection_id",
"queries": [
"equal(\"user\",\"user_id\")",
"equal(\"achievement\",\"achievement_id\")",
"limit(You need to include the method and attribute parameters. Check: https://appwrite.io/docs/apis/rest#queries-string-format
Recommended threads
- Appwrite functions dart runtime (3.7 sup...
It seems that currently Appwrite functions only support Dart runtime to 3.5, for my code I need dart 3.7. Is there any plan to support Dart3.7 runtime soon. Is ...
- copilot CLI appwrite mcp
I am having difficulty entering the appwrite cli details in github copilot cli. anyone know what to put where?
- client.ping() does not appear to work.
After upgrading to 1.8.0, I ran the `starter_for_flutter` and tested the ping. It failed with a "Server Error". I tried this again on my production instance (1...