{"id":109531,"plugin_id":"plugin_asdk_app_6afa0d8c1f9c81919896392ae22dc675","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-21T13:43:34.705Z","digest":"b770e51d0cc1489d2578ecaa091acf69f14d82536ee692d2217462010d9655d1","against":null,"payload":{"description":"Set up MySQL by Loopthink or work out why it returns no rows. Use when the user has just added the app, asks what it can do, gets a \"connect it at …\" message, or a tool says it is not switched on.","included_files":[],"name":"get-started","skill_md_contents":"---\nname: get-started\ndescription: Set up MySQL by Loopthink or work out why it returns no rows. Use when the user has just added the app, asks what it can do, gets a \"connect it at …\" message, or a tool says it is not switched on.\n---\n\n# Get started with MySQL by Loopthink\n\nThe app reads the MySQL databases the user connected in Loopthink, and only\nthe ones their member group was granted. The tools are always the same:\n\n- `connection_status`: which databases are connected, and the link to connect one\n- `mysql_list_tables`: the tables and views\n- `mysql_describe_table`: the columns of one table\n- `mysql_query`: one read-only SELECT, returning rows\n- `mysql_execute`: one INSERT, UPDATE or DELETE, only where the workspace\n  allowed changes for the database\n\n## 1. Find out what is connected\n\nCall `connection_status`.\n\n- **`connected: true`.** Call `mysql_list_tables`. With more than one database,\n  pass its name as `database`.\n- **`connected: false`.** Give the user the `connectUrl` and continue with step 2.\n\n## 2. Connect a database\n\nMost people connect it while adding the app: right after sign-in, a form on the\nLoopthink page asks for host, port, database, user and password, and tests the\nlogin. Someone who skipped that uses the link. Never ask for a host or password\nin the chat: credentials are entered on Loopthink's pages only.\n\nThen ask the question again. The tools do not change, so nothing needs\nrefreshing or reconnecting in ChatGPT.\n\n## 3. A tool says it is not switched on\n\nA database that was connected for saved queries only does not offer these\ntools. A workspace admin switches on \"Schema and read-only query tools\" for it\nin the Loopthink web app. Pass the link from the message on to the user.\n\n## Notes for answering\n\n- Look before you write: `mysql_list_tables`, then `mysql_describe_table` for\n  every table the question touches. Do not guess column names.\n- Write one SELECT in the MySQL dialect. Identifiers that are reserved words need backticks.\n- Aggregate in SQL instead of reading rows and adding them up. At most 500 rows\n  come back, and `truncated: true` says there were more.\n- A query is stopped after 20 seconds. Narrow it with WHERE when that happens.\n- `mysql_query` cannot change anything. For a change use `mysql_execute`:\n  show the user the statement and wait for a yes, and check with a SELECT\n  first which rows the WHERE clause matches. If it answers that changes are\n  not switched on, pass the link on: a workspace admin allows them in Loopthink.\n- The schema cannot be changed, and UPDATE or DELETE without WHERE is refused.\n- The database has to be reachable from the internet.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}