{"id":109564,"plugin_id":"plugin_asdk_app_6afc2bd77874819191558ffb9beb28a6","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-21T13:43:38.671Z","digest":"7668e4b90e784f61b640e9eb1d566b44c182fd530e686d9ce16f28f7c4694f76","against":null,"payload":{"description":"Set up SQL Server 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 SQL Server 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 SQL Server by Loopthink\n\nThe app reads the SQL Server 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- `mssql_list_tables`: the tables and views\n- `mssql_describe_table`: the columns of one table\n- `mssql_query`: one SELECT, checked and always rolled back, returning rows\n- `mssql_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 `mssql_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: `mssql_list_tables`, then `mssql_describe_table` for\n  every table the question touches. Do not guess column names.\n- Write one SELECT in T-SQL: TOP instead of LIMIT, square brackets around names with spaces, no comments and no semicolon.\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- `mssql_query` cannot change anything. For a change use `mssql_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":{}}