Skip to content
Back

Appwrite MCP queries

  • 0
  • Tools
  • REST API
hen
12 May, 2025, 16:42

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(
D5
12 May, 2025, 16:51

You need to include the method and attribute parameters. Check: https://appwrite.io/docs/apis/rest#queries-string-format

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more