{
  "name": "ai.haymon/dbmcp",
  "slug": "offline-mcp-d0e9722c3ef6c183a807e5c0",
  "type": "mcp",
  "category": "developer-tools",
  "example": false,
  "evidence_state": "offline_listing",
  "stamp": "Offline listing — machine-checked",
  "summary": "Acquired @haymon-ai/dbmcp@0.19.0; tarball sha256 f971ebd5583b30726023b5b2cdbbcfa7d4cae1ea54552f718251a8b568756c6c.",
  "outcome": "The server started offline in an isolated container (runtime/inspect.json).",
  "rule_results": [
    "It answered tools/list with 8 tools named [\"explainQuery\", \"listDatabases\", \"listFunctions\", \"listProcedures\", \"listTables\", \"listTriggers\", \"listViews\", \"readQuery\"]."
  ],
  "task": "Does this exact package start offline and answer an MCP tools list?",
  "setup": "Acquisition lock records install_scripts_ignored=true; runtime command in argv.json.",
  "limitations": "Runtime isolation evidence: runtime/inspect.json. Scope: initialize and tools/list (mcp/report.json). Credential tests are outside this scope. Later versions require a new run.",
  "source_url": "https://www.npmjs.com/package/@haymon-ai/dbmcp",
  "documentation_url": "https://www.npmjs.com/package/@haymon-ai/dbmcp",
  "tree_sha256": "f7b72c8fbb8fd3fb881b6f986515db8566f5290d19f856b14c7240c6d015b7f3",
  "image_digest": "sha256:1cc90de961b1880daafc9248b41c872a572ebce03a3f61fb898d73537cd3f276",
  "file_sha256": {
    ".docker/.token_seed": "4d00a62f16c7d7e5bef94e6e025d29899fbf56ccddd38725e8d54b6afc52d397",
    ".docker/.token_seed.lock": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    ".docker/buildx/.buildNodeID": "9f8bf5d99dafdf92f4ff109ba3ef68d4b2569a09b1ceff4f2977a228bdabc4c5",
    ".docker/buildx/.lock": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    ".docker/buildx/activity/default": "748bb63dd5b133af1a0d63a9a0003527a4fca2dc1919dcfe6938c6bf41884059",
    ".docker/buildx/refs/default/default/vx49noeqsnx9c8d766ocqdjeq": "bf587b512e38e0a8095377de1f473f9ff1b29042fa2ab0acbff4f02494cd69e3",
    ".dockerignore": "34d45a3bba1a2a33aa593aa941ec6f0278116d86e7b8a7af4db535730c7e9a39",
    "Containerfile": "24c23bc9b9e9e88eb7e568a91b2f3eb97b49c1ed3a8ea902c12924c48931333e",
    "attempt-monitor": "f1679083579fc9a08aa4a157ecbe03e369f5d95df5375ab0f045d79a8871c769",
    "image.id": "201178aa8536faf2c744b83375221bfb99529441890a9e23a9a188c5531377bf",
    "installed/node_modules/.package-lock.json": "bde84f048c5b35227707a0ad36705f89cc0c962e02759dd42af13501ca4aa71d",
    "installed/node_modules/@haymon-ai/dbmcp/README.md": "d7763170d682a582fa9edaae76eb7733ed9c8abb626262980db3913e46e7ff03",
    "installed/node_modules/@haymon-ai/dbmcp/bin/dbmcp.js": "0343e8be6bc49ba78446641f1f83d7e5693e3ad22751a559efdeeb9086478178",
    "installed/node_modules/@haymon-ai/dbmcp/package.json": "a74b46249237110438b0cd130987fa38db7a2ef209d3bd81b9386f094042cc77",
    "installed/node_modules/@haymon-ai/dbmcp-linux-x64/bin/dbmcp": "3bc146bb7580bcc0acbc692351c9aef5cf2ec21388e82e244ef7bde5784fd474",
    "installed/node_modules/@haymon-ai/dbmcp-linux-x64/package.json": "f3bc52c679e10f63a274d20fb98dd693b8189c2d04e3f49881317eab8535b9e2",
    "installed/package-lock.json": "0c17982e1f849235f923dbed78231ae747e03b039f43b1842a0fc718237ac4e7",
    "installed/package.json": "4a504df03cc2850501abef4df534cdec107ece37f3ee2403d078db7143977cc8",
    "npmrc-global": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "npmrc-user": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
    "packs/haymon-ai-dbmcp-0.19.0.tgz": "f971ebd5583b30726023b5b2cdbbcfa7d4cae1ea54552f718251a8b568756c6c"
  },
  "lockfiles": [
    "installed/package-lock.json"
  ],
  "tools_list_hashes": [
    "85049ce21f47b5950d0f4de75d92904065024aac5070248355a2f7581c90564f"
  ],
  "utc_date": "2026-11-16T13:01:32.196873Z",
  "source_date": "2026-10-16",
  "discovered_date": "2026-10-16",
  "retested_date": "2026-11-16",
  "reviewed_date": "2026-11-16",
  "published_date": "2026-11-16",
  "modified_date": "2026-11-16",
  "reviewer": "machine pipeline",
  "harness_version": "toolwitness harness at commit 59be5eef48ee818fc15ae5350117fd7c9fb19b7d",
  "claude_code_version": "Outside this listing scope.",
  "model_id": "Outside this listing scope.",
  "scanner_version": "none",
  "rulepack_version": "none",
  "agents": [],
  "disclaimer": "This record shows that this exact package version started offline in an isolated container and answered an MCP tools list (runtime/inspect.json, mcp/report.json). Scope: initialize and tools/list. It is not a security or quality verdict. Later versions are outside this record.",
  "commands": [
    "docker run -i --name toolwitness-1a9cd9f8cd07456e9d928a0b446dd093 --pull=never --network none --read-only --cap-drop=all --security-opt=no-new-privileges --user=65532:65532 --memory=512m --memory-swap=512m --pids-limit=64 --cpus=1 --ulimit=nofile=256:256 --ulimit=fsize=16777216:16777216 --tmpfs=/tmp:rw,nosuid,nodev,noexec,size=64m,mode=1777 --env=HOME=/tmp --workdir=/tmp --entrypoint /attempt-monitor sha256:1cc90de961b1880daafc9248b41c872a572ebce03a3f61fb898d73537cd3f276 /installed/node_modules/@haymon-ai/dbmcp node /installed/node_modules/@haymon-ai/dbmcp/bin/dbmcp.js"
  ],
  "prompt_list": [
    "Outside this listing scope."
  ],
  "history": [
    "2026-11-16T13:01:32.196873Z: offline initialize and tools/list"
  ],
  "application": {
    "name": "@haymon-ai/dbmcp",
    "softwareVersion": "0.19.0",
    "applicationCategory": "DeveloperApplication"
  },
  "artifacts": {
    "transcript": "stdin:\n{\"id\":1,\"jsonrpc\":\"2.0\",\"method\":\"initialize\",\"params\":{\"capabilities\":{},\"clientInfo\":{\"name\":\"toolwitness\",\"version\":\"s772-v0\"},\"protocolVersion\":\"2025-11-25\"}}\n{\"jsonrpc\":\"2.0\",\"method\":\"notifications/initialized\"}\n{\"id\":2,\"jsonrpc\":\"2.0\",\"method\":\"tools/list\",\"params\":{}}\n\nstdout:\n{\"jsonrpc\":\"2.0\",\"id\":1,\"result\":{\"protocolVersion\":\"2025-11-25\",\"capabilities\":{\"tools\":{}},\"serverInfo\":{\"name\":\"dbmcp\",\"title\":\"Database MCP Server\",\"version\":\"0.19.0\",\"description\":\"Database MCP Server for MySQL and MariaDB\",\"websiteUrl\":\"https://dbmcp.haymon.ai\"},\"instructions\":\"## Workflow\\n\\n1. Call `listDatabases` to discover available databases.\\n2. Call `listTables` to see tables. Pass `search` to filter by name (case-insensitive substring). Pass `detailed: true` to get columns, constraints, indexes, and triggers in the same call.\\n3. Call `listViews` to see views.\\n4. Call `listTriggers` to see triggers.\\n5. Call `listFunctions` to see stored functions.\\n6. Call `listProcedures` to see stored procedures.\\n7. Use `readQuery` for read-only SQL (SELECT, SHOW, DESCRIBE, EXPLAIN).\\n8. Use `explainQuery` to analyze query execution plans and diagnose slow queries.\\n\\nPer-database tools default to the active database; pass `database` to target another.\\n\\n## Constraints\\n\\n- The server runs in read-only mode. Data and schema changes are not possible.\\n- Multi-statement queries are not supported. Send one statement per request.\\n\"}}\n{\"jsonrpc\":\"2.0\",\"id\":2,\"result\":{\"tools\":[{\"name\":\"explainQuery\",\"title\":\"Explain Query\",\"description\":\"Return the execution plan for a SQL query to diagnose performance. Use this tool instead of running EXPLAIN directly through readQuery — it provides structured output.\\n\\n<usecase>\\nUse when:\\n- A query runs slowly and you need to understand why\\n- Investigating performance bottlenecks\\n- Planning index creation to optimize queries\\n- Analyzing join methods, table scan strategies, and sort operations\\n</usecase>\\n\\n<when_not_to_use>\\n- Running actual queries → use readQuery, or writeQuery for data changes (not available in read-only mode)\\n- Checking table structure → use listTables(detailed=true)\\n</when_not_to_use>\\n\\n<examples>\\n✓ \\\"Why is my SELECT on orders slow?\\\" → explainQuery(query=\\\"SELECT ...\\\")\\n✓ \\\"Should I add an index?\\\" → explainQuery with analyze=true\\n✗ \\\"Run this SELECT\\\" → use readQuery\\n</examples>\\n\\n<safety>\\nSet `analyze` to true for actual execution statistics (EXPLAIN ANALYZE).\\nIMPORTANT: EXPLAIN ANALYZE actually executes the query, so only read-only statements are allowed with analyze.\\nWhen analyze is false, returns EXPLAIN FORMAT=JSON output without executing. Write statements are rejected: the plan is fetched in a read-only transaction.\\nOnly a single SQL statement is accepted.\\n</safety>\\n\\n<what_it_returns>\\nA JSON array of execution plan rows showing access methods, join types, row estimates, and costs.\\n\\nLong string values are cut and end in `…[truncated, N chars total]`, and rows past the response size cap are dropped and counted in `rowsOmitted`; when either happens the response carries `truncated: true` and a `hint`.\\n</what_it_returns>\",\"inputSchema\":{\"properties\":{\"analyze\":{\"default\":false,\"description\":\"If true, use EXPLAIN ANALYZE for actual execution statistics. In read-only mode, only allowed for read-only statements. Defaults to false.\",\"type\":\"boolean\"},\"database\":{\"default\":null,\"description\":\"Database to explain against. Defaults to the active database.\",\"type\":[\"string\",\"null\"]},\"query\":{\"description\":\"The SQL query to explain.\",\"type\":\"string\"}},\"required\":[\"query\"],\"type\":\"object\"},\"outputSchema\":{\"properties\":{\"hint\":{\"description\":\"How to fetch less data; present only when `truncated` is `true`.\",\"type\":[\"string\",\"null\"]},\"rows\":{\"description\":\"Result rows, each a JSON object keyed by a column name.\",\"items\":{\"additionalProperties\":true,\"type\":\"object\"},\"type\":\"array\"},\"rowsOmitted\":{\"description\":\"Rows the response cap dropped that no cursor can fetch again.\",\"format\":\"uint64\",\"minimum\":0,\"type\":[\"integer\",\"null\"]},\"truncated\":{\"description\":\"Present and `true` when a character cap cut a value or dropped rows.\",\"type\":\"boolean\"}},\"required\":[\"rows\"],\"type\":\"object\"},\"annotations\":{\"readOnlyHint\":true,\"destructiveHint\":false,\"idempotentHint\":true,\"openWorldHint\":true}},{\"name\":\"listDatabases\",\"title\":\"List Databases\",\"description\":\"List all accessible databases on the connected server. Use this tool to discover what databases are available before using other tools.\\n\\n<usecase>\\nALWAYS call this tool FIRST when:\\n- You need to explore what databases exist on the server\\n- You need a database name for listTables or query tools\\n- The user asks what data is available\\n</usecase>\\n\\n<examples>\\n✓ \\\"What databases are on this server?\\\"\\n✓ \\\"Show me what's available\\\" → call listDatabases first\\n</examples>\\n\\n<what_it_returns>\\nA sorted JSON array of database name strings.\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page.\\n</pagination>\",\"inputSchema\":{\"properties\":{\"cursor\":{\"default\":null,\"description\":\"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\",\"type\":[\"string\",\"null\"]}},\"type\":\"object\"},\"outputSchema\":{\"properties\":{\"databases\":{\"description\":\"Sorted list of database names for this page.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},\"nextCursor\":{\"description\":\"Opaque cursor pointing to the next page. Absent when this is the final page.\",\"type\":\"string\"}},\"required\":[\"databases\"],\"type\":\"object\"},\"annotations\":{\"readOnlyHint\":true,\"destructiveHint\":false,\"idempotentHint\":true,\"openWorldHint\":false}},{\"name\":\"listFunctions\",\"title\":\"List Functions\",\"description\":\"List user-defined SQL functions in a database, optionally filtered and/or with full metadata. Loadable UDFs (`mysql.func`) and stored procedures are excluded.\\n\\n<usecase>\\nUse when:\\n- Auditing stored functions across a database (brief mode, default).\\n- Searching for a function by partial name (pass `search`).\\n- Inspecting a function's language, signature, return type, determinism, SQL-data-access classification, security mode, definer, comment, session context, and full reconstructed `CREATE FUNCTION` text before reasoning about correctness or invocation safety (pass `detailed: true`). Detailed mode supersedes ad-hoc `readQuery` against `information_schema.ROUTINES` / `information_schema.PARAMETERS`.\\n</usecase>\\n\\n<parameters>\\n- `database` — Database to target. Defaults to the active database.\\n- `cursor` — Opaque pagination cursor; echo the prior response's `nextCursor`.\\n- `search` — Case-insensitive filter on function names via `LIKE`. `%` matches any sequence; `_` matches a single character.\\n- `detailed` — When `true`, returns full metadata objects keyed by function name instead of bare name strings. Default `false`.\\n</parameters>\\n\\n<examples>\\n✓ \\\"What functions are in the mydb database?\\\" → listFunctions(database=\\\"mydb\\\")\\n✓ \\\"Find the order-total calculation\\\" → listFunctions(search=\\\"order\\\")\\n✓ \\\"What does calc_order_total do?\\\" → listFunctions(search=\\\"calc_order_total\\\", detailed=true)\\n✗ \\\"List stored procedures\\\" → use listProcedures instead\\n✗ \\\"List loadable UDFs from mysql.func\\\" → not supported; only routines in information_schema.ROUTINES are returned\\n</examples>\\n\\n<what_it_returns>\\nBrief mode (default): a sorted JSON array of function-name strings, e.g. `[\\\"calc_order_subtotal\\\", \\\"calc_order_total\\\", \\\"double_it\\\"]`.\\nDetailed mode: a JSON object keyed by bare function name (MySQL/MariaDB do not allow function overloading, so no signature suffix is needed); each value carries `schema`, `language` (typically `\\\"SQL\\\"`; MariaDB external-language functions report the external language name), `arguments` (comma-separated `name type` pairs from `information_schema.PARAMETERS`, empty string for zero-parameter functions), `returnType` (full `DTD_IDENTIFIER` including length/precision/unsigned/enum/set members), `deterministic` (boolean), `sqlDataAccess` (one of `CONTAINS_SQL`, `NO_SQL`, `READS_SQL_DATA`, `MODIFIES_SQL_DATA`), `security` (`INVOKER` or `DEFINER`), `definer` (`user@host`), `description` (the `COMMENT` text or `null` when no comment was set — the empty string MySQL stores is coerced to JSON `null`), `definition` (the canonical reconstructed `CREATE FUNCTION` text including `DEFINER=` in `` `user`@`host` `` form), `sqlMode`, `characterSetClient`, `collationConnection`, and `databaseCollation`. Versus the Postgres detailed payload: `volatility`, `parallelSafety`, and `strict` are intentionally absent (no MySQL/MariaDB analogues), `owner` is renamed to `definer` (more accurate for the MySQL `DEFINER` concept), keys are bare names rather than `name(arguments)` (no overloads possible), and the four session-context fields (`sqlMode`, `characterSetClient`, `collationConnection`, `databaseCollation`) are MySQL/MariaDB-only additions.\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. The `search` filter must stay the same across pages for cursor continuity.\\n</pagination>\",\"inputSchema\":{\"properties\":{\"cursor\":{\"default\":null,\"description\":\"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\",\"type\":[\"string\",\"null\"]},\"database\":{\"default\":null,\"description\":\"Database to list functions from. Defaults to the active database.\",\"type\":[\"string\",\"null\"]},\"detailed\":{\"default\":false,\"description\":\"When `true`, each returned entry is a full metadata object (schema, language,\\narguments, returnType, deterministic, sqlDataAccess, security, definer,\\ndescription, definition, sqlMode, characterSetClient, collationConnection,\\ndatabaseCollation); when `false` or omitted, each entry is the bare\\nfunction-name string.\",\"type\":\"boolean\"},\"search\":{\"default\":null,\"description\":\"Optional case-insensitive filter on function names. The input is used within a `LIKE`\\nclause: `%` matches any sequence of characters and `_` matches any single character.\",\"type\":[\"string\",\"null\"]}},\"type\":\"object\"},\"outputSchema\":{\"properties\":{\"entries\":{\"anyOf\":[{\"description\":\"Brief mode: sorted array of bare entity-name strings.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},{\"additionalProperties\":true,\"description\":\"Detailed mode: name-keyed map; insertion order matches the SQL `ORDER BY` sort.\",\"type\":\"object\"}],\"description\":\"Page of matching entries. Shape depends on the request's `detailed` flag.\"},\"nextCursor\":{\"description\":\"Opaque cursor pointing to the next page. Absent when this is the final page.\",\"type\":\"string\"}},\"required\":[\"entries\"],\"type\":\"object\"},\"annotations\":{\"readOnlyHint\":true,\"destructiveHint\":false,\"idempotentHint\":true,\"openWorldHint\":false}},{\"name\":\"listProcedures\",\"title\":\"List Procedures\",\"description\":\"List user-defined stored procedures in a database, optionally filtered and/or with full metadata. Stored functions and loadable UDFs (`mysql.func`) are excluded.\\n\\n<usecase>\\nUse when:\\n- Auditing stored procedures across a database (brief mode, default).\\n- Searching for a procedure by partial name (pass `search`).\\n- Inspecting a procedure's language, parameter list (with `IN`/`OUT`/`INOUT` modes), determinism, SQL-data-access classification, security mode, definer, comment, session context, and full reconstructed `CREATE PROCEDURE` text before reasoning about correctness or invocation safety (pass `detailed: true`). Detailed mode supersedes ad-hoc `readQuery` against `information_schema.ROUTINES` / `information_schema.PARAMETERS`.\\n</usecase>\\n\\n<parameters>\\n- `database` — Database to target. Defaults to the active database.\\n- `cursor` — Opaque pagination cursor; echo the prior response's `nextCursor`.\\n- `search` — Case-insensitive filter on procedure names via `LIKE`. `%` matches any sequence; `_` matches a single character.\\n- `detailed` — When `true`, returns full metadata objects keyed by procedure name instead of bare name strings. Default `false`.\\n</parameters>\\n\\n<examples>\\n✓ \\\"What procedures are in the mydb database?\\\" → listProcedures(database=\\\"mydb\\\")\\n✓ \\\"Find the order archival routine\\\" → listProcedures(search=\\\"archive\\\")\\n✓ \\\"What does archive_order do?\\\" → listProcedures(search=\\\"archive_order\\\", detailed=true)\\n✗ \\\"List functions\\\" → use listFunctions instead\\n✗ \\\"List loadable UDFs from mysql.func\\\" → not supported; only routines in information_schema.ROUTINES are returned\\n</examples>\\n\\n<what_it_returns>\\nBrief mode (default): a sorted JSON array of procedure-name strings, e.g. `[\\\"archive_order\\\", \\\"archive_order_history\\\", \\\"purge_order_archive\\\", \\\"touch_post\\\"]`.\\nDetailed mode: a JSON object keyed by bare procedure name (MySQL/MariaDB do not allow procedure overloading, so no signature suffix is needed); each value carries `schema`, `language` (typically `\\\"SQL\\\"`; MariaDB external-language procedures report the external language name), `arguments` (comma-separated `MODE name type` triples from `information_schema.PARAMETERS` — `MODE` is one of `IN`, `OUT`, `INOUT`; empty string for zero-parameter procedures), `deterministic` (boolean), `sqlDataAccess` (one of `CONTAINS_SQL`, `NO_SQL`, `READS_SQL_DATA`, `MODIFIES_SQL_DATA`), `security` (`INVOKER` or `DEFINER`), `definer` (`user@host`), `description` (the `COMMENT` text or `null` when no comment was set — the empty string MySQL stores is coerced to JSON `null`), `definition` (the canonical reconstructed `CREATE PROCEDURE` text including `DEFINER=` in `` `user`@`host` `` form; no `RETURNS` clause — procedures have no return type), `sqlMode`, `characterSetClient`, `collationConnection`, and `databaseCollation`. Versus the Postgres `listProcedures` detailed payload: `volatility`, `parallelSafety`, `strict`, and `returnType` are intentionally absent (no MySQL/MariaDB analogues for the first three; procedures have no return type for the fourth — the Postgres-side payload also omits all four), `owner` is renamed to `definer` (more accurate for the MySQL `DEFINER` concept), keys are bare names rather than `name(arguments)` (no overloads possible), the four session-context fields (`sqlMode`, `characterSetClient`, `collationConnection`, `databaseCollation`) are MySQL/MariaDB-only additions, and `deterministic` plus `sqlDataAccess` are MySQL/MariaDB-only additions versus the Postgres `listProcedures` detailed payload (which omits both because Postgres procedures have no equivalent attributes).\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. The `search` filter must stay the same across pages for cursor continuity.\\n</pagination>\",\"inputSchema\":{\"properties\":{\"cursor\":{\"default\":null,\"description\":\"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\",\"type\":[\"string\",\"null\"]},\"database\":{\"default\":null,\"description\":\"Database to list procedures from. Defaults to the active database.\",\"type\":[\"string\",\"null\"]},\"detailed\":{\"default\":false,\"description\":\"When `true`, each returned entry is a full metadata object (schema, language,\\narguments with IN/OUT/INOUT mode tokens, deterministic, sqlDataAccess, security,\\ndefiner, description, definition, sqlMode, characterSetClient,\\ncollationConnection, databaseCollation); when `false` or omitted, each entry\\nis the bare procedure-name string.\",\"type\":\"boolean\"},\"search\":{\"default\":null,\"description\":\"Optional case-insensitive filter on procedure names. The input is used within a `LIKE`\\nclause: `%` matches any sequence of characters and `_` matches any single character.\",\"type\":[\"string\",\"null\"]}},\"type\":\"object\"},\"outputSchema\":{\"properties\":{\"entries\":{\"anyOf\":[{\"description\":\"Brief mode: sorted array of bare entity-name strings.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},{\"additionalProperties\":true,\"description\":\"Detailed mode: name-keyed map; insertion order matches the SQL `ORDER BY` sort.\",\"type\":\"object\"}],\"description\":\"Page of matching entries. Shape depends on the request's `detailed` flag.\"},\"nextCursor\":{\"description\":\"Opaque cursor pointing to the next page. Absent when this is the final page.\",\"type\":\"string\"}},\"required\":[\"entries\"],\"type\":\"object\"},\"annotations\":{\"readOnlyHint\":true,\"destructiveHint\":false,\"idempotentHint\":true,\"openWorldHint\":false}},{\"name\":\"listTables\",\"title\":\"List Tables\",\"description\":\"List tables in a database, optionally filtered and/or with full metadata.\\n\\n<usecase>\\nUse when:\\n- Exploring a database to find relevant tables (brief mode, default).\\n- Searching for a table by partial name (pass `search`).\\n- Inspecting a table's columns, constraints, indexes, and triggers before writing a query (pass `detailed: true`).\\n</usecase>\\n\\n<parameters>\\n- `database` — Database to target. Defaults to the active database.\\n- `cursor` — Opaque pagination cursor; echo the prior response's `nextCursor`.\\n- `search` — Case-insensitive filter on table names via `LIKE`. `%` matches any sequence; `_` matches a single character.\\n- `detailed` — When `true`, returns full metadata objects keyed by table name instead of bare name strings. Default `false`.\\n</parameters>\\n\\n<examples>\\n✓ \\\"What tables are in mydb?\\\" → listTables(database=\\\"mydb\\\")\\n✓ \\\"Find the orders table\\\" → listTables(search=\\\"order\\\")\\n✓ \\\"What columns does orders have?\\\" → listTables(search=\\\"orders\\\", detailed=true)\\n</examples>\\n\\n<what_it_returns>\\nBrief mode (default): a sorted JSON array of table-name strings, e.g. `[\\\"customers\\\", \\\"orders\\\"]`.\\nDetailed mode: a JSON object keyed by table name; each value carries `schema`, `kind`, `owner`, `comment`, `columns`, `constraints`, `indexes`, and `triggers` (the name is the key and is not repeated inside the value). Keys iterate in the same alphabetical order brief mode uses. Example: `{\\\"orders\\\": {\\\"schema\\\": \\\"mydb\\\", \\\"kind\\\": \\\"TABLE\\\", …}}`.\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. The `search` filter must stay the same across pages for cursor continuity.\\n</pagination>\",\"inputSchema\":{\"properties\":{\"cursor\":{\"default\":null,\"description\":\"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\",\"type\":[\"string\",\"null\"]},\"database\":{\"default\":null,\"description\":\"Database to list tables from. Defaults to the active database.\",\"type\":[\"string\",\"null\"]},\"detailed\":{\"default\":false,\"description\":\"When `true`, each returned entry is a full metadata object (columns,\\nconstraints, indexes, triggers, owner, comment, kind); when `false` or\\nomitted, each entry is the bare table-name string.\",\"type\":\"boolean\"},\"search\":{\"default\":null,\"description\":\"Optional case-insensitive filter on table names. The input is used within a `LIKE`\\nclause: `%` matches any sequence of characters and `_` matches any single character.\",\"type\":[\"string\",\"null\"]}},\"type\":\"object\"},\"outputSchema\":{\"properties\":{\"entries\":{\"anyOf\":[{\"description\":\"Brief mode: sorted array of bare entity-name strings.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},{\"additionalProperties\":true,\"description\":\"Detailed mode: name-keyed map; insertion order matches the SQL `ORDER BY` sort.\",\"type\":\"object\"}],\"description\":\"Page of matching entries. Shape depends on the request's `detailed` flag.\"},\"nextCursor\":{\"description\":\"Opaque cursor pointing to the next page. Absent when this is the final page.\",\"type\":\"string\"}},\"required\":[\"entries\"],\"type\":\"object\"},\"annotations\":{\"readOnlyHint\":true,\"destructiveHint\":false,\"idempotentHint\":true,\"openWorldHint\":false}},{\"name\":\"listTriggers\",\"title\":\"List Triggers\",\"description\":\"List user-defined triggers in a database, optionally filtered and/or with full metadata.\\n\\n<usecase>\\nUse when:\\n- Auditing trigger coverage across a database (brief mode, default).\\n- Searching for a trigger by partial name (pass `search`).\\n- Inspecting a trigger's timing, event, activation level, full `CREATE TRIGGER` text, and the session context active at trigger-creation time before reasoning about side-effects (pass `detailed: true`). Detailed mode supersedes ad-hoc `readQuery` against `information_schema.TRIGGERS`.\\n</usecase>\\n\\n<parameters>\\n- `database` — Database to target. Defaults to the active database.\\n- `cursor` — Opaque pagination cursor; echo the prior response's `nextCursor`.\\n- `search` — Case-insensitive filter on trigger names via `LIKE`. `%` matches any sequence; `_` matches a single character.\\n- `detailed` — When `true`, returns full metadata objects keyed by trigger name instead of bare name strings. Default `false`.\\n</parameters>\\n\\n<examples>\\n✓ \\\"What triggers are in the mydb database?\\\" → listTriggers(database=\\\"mydb\\\")\\n✓ \\\"Find the audit triggers\\\" → listTriggers(search=\\\"audit\\\")\\n✓ \\\"What does orders_audit_after_insert do?\\\" → listTriggers(search=\\\"orders_audit_after_insert\\\", detailed=true)\\n✗ \\\"Show me a trigger's body\\\" → use detailed mode; the `definition` field carries the full `CREATE TRIGGER` text\\n</examples>\\n\\n<what_it_returns>\\nBrief mode (default): a sorted JSON array of trigger-name strings, e.g. `[\\\"customers_audit_after_insert\\\", \\\"orders_audit_after_insert\\\"]`.\\nDetailed mode: a JSON object keyed by trigger name; each value carries `schema`, `table`, `timing` (BEFORE/AFTER), `events` (single-element array — `INSERT`, `UPDATE`, or `DELETE`), `activationLevel` (always `ROW` on MySQL/MariaDB), `definition` (the canonical `CREATE TRIGGER` text including `DEFINER=` in `` `user`@`host` `` form), `sqlMode`, `characterSetClient`, `collationConnection`, and `databaseCollation`. The Postgres-only `status` and `functionName` fields are intentionally absent (no per-trigger enabled/disabled flag and no separate handler-function reference on MySQL/MariaDB); the four session-context fields are MySQL/MariaDB-only additions versus the Postgres detailed payload.\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. The `search` filter must stay the same across pages for cursor continuity.\\n</pagination>\",\"inputSchema\":{\"properties\":{\"cursor\":{\"default\":null,\"description\":\"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\",\"type\":[\"string\",\"null\"]},\"database\":{\"default\":null,\"description\":\"Database to list triggers from. Defaults to the active database.\",\"type\":[\"string\",\"null\"]},\"detailed\":{\"default\":false,\"description\":\"When `true`, each returned entry is a full metadata object (schema, table, timing,\\nevents, activationLevel, definition, plus backend-specific fields); when `false` or\\nomitted, each entry is the bare trigger-name string.\",\"type\":\"boolean\"},\"search\":{\"default\":null,\"description\":\"Optional case-insensitive filter on trigger names. The input is used within a `LIKE`\\nclause: `%` matches any sequence of characters and `_` matches any single character.\",\"type\":[\"string\",\"null\"]}},\"type\":\"object\"},\"outputSchema\":{\"properties\":{\"entries\":{\"anyOf\":[{\"description\":\"Brief mode: sorted array of bare entity-name strings.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},{\"additionalProperties\":true,\"description\":\"Detailed mode: name-keyed map; insertion order matches the SQL `ORDER BY` sort.\",\"type\":\"object\"}],\"description\":\"Page of matching entries. Shape depends on the request's `detailed` flag.\"},\"nextCursor\":{\"description\":\"Opaque cursor pointing to the next page. Absent when this is the final page.\",\"type\":\"string\"}},\"required\":[\"entries\"],\"type\":\"object\"},\"annotations\":{\"readOnlyHint\":true,\"destructiveHint\":false,\"idempotentHint\":true,\"openWorldHint\":false}},{\"name\":\"listViews\",\"title\":\"List Views\",\"description\":\"List user-defined views in a database, optionally filtered and/or with full metadata. Base tables and system-schema views are excluded.\\n\\n<usecase>\\nUse when:\\n- Auditing views across a database (brief mode, default).\\n- Searching for a view by partial name (pass `search`).\\n- Inspecting a view's definer, security mode, check-option level, updatable flag, session character set/collation, and full SELECT body before querying it (pass `detailed: true`). Detailed mode supersedes ad-hoc `readQuery` against `information_schema.VIEWS`.\\n</usecase>\\n\\n<parameters>\\n- `database` — Database to target. Defaults to the active database.\\n- `cursor` — Opaque pagination cursor; echo the prior response's `nextCursor`.\\n- `search` — Case-insensitive filter on view names via `LIKE`. `%` matches any sequence; `_` matches a single character.\\n- `detailed` — When `true`, returns full metadata objects keyed by view name instead of bare name strings. Default `false`.\\n</parameters>\\n\\n<examples>\\n✓ \\\"What views are in the mydb database?\\\" → listViews(database=\\\"mydb\\\")\\n✓ \\\"Find the active-users view\\\" → listViews(search=\\\"active\\\")\\n✓ \\\"What does active_users select?\\\" → listViews(search=\\\"active_users\\\", detailed=true)\\n✗ \\\"Show me the columns of a view\\\" → use listTables with `detailed: true` instead\\n✗ \\\"List materialized views\\\" → MySQL/MariaDB have no materialized-view concept\\n</examples>\\n\\n<what_it_returns>\\nBrief mode (default): a sorted JSON array of view-name strings, e.g. `[\\\"active_orders\\\", \\\"active_users\\\", \\\"published_posts\\\"]`.\\nDetailed mode: a JSON object keyed by bare view name; each value carries `schema`, `definer` (`user@host`), `security` (`INVOKER` or `DEFINER`), `checkOption` (`NONE`, `CASCADED`, or `LOCAL`), `updatable` (boolean), `characterSetClient`, `collationConnection`, and `definition` (the SELECT body verbatim from `information_schema.VIEWS.VIEW_DEFINITION`, with no `CREATE VIEW` wrapper). The view name is the map key only — it is not repeated inside the value.\\n\\nVersus the Postgres `listViews` detailed payload: `description` is intentionally absent (neither MySQL nor MariaDB exposes a user-comment column for views — `CREATE VIEW` syntax has no `COMMENT` clause), `algorithm` is intentionally absent (MariaDB-only column on `information_schema.VIEWS`), `owner` is renamed to `definer` (more accurate for the MySQL `DEFINER` concept), and the five MySQL/MariaDB-only structured fields (`security`, `checkOption`, `updatable`, `characterSetClient`, `collationConnection`) are added. The `definition` field shape is byte-identical to Postgres — raw SELECT body verbatim, no DDL wrapper. When the connected role lacks the `SHOW VIEW` privilege on a particular view, the engine redacts `VIEW_DEFINITION` to the empty string; the row remains in the response with `definition` reflecting that empty value.\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. The `search` filter must stay the same across pages for cursor continuity. Brief and detailed modes share the same `TABLE_NAME` row order, so a client can switch `detailed` between pages without losing position.\\n</pagination>\",\"inputSchema\":{\"properties\":{\"cursor\":{\"default\":null,\"description\":\"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\",\"type\":[\"string\",\"null\"]},\"database\":{\"default\":null,\"description\":\"Database to list views from. Defaults to the active database.\",\"type\":[\"string\",\"null\"]},\"detailed\":{\"default\":false,\"description\":\"When `true`, each returned entry is a full metadata object (schema, definer,\\nsecurity, checkOption, updatable, characterSetClient, collationConnection,\\ndefinition); when `false` or omitted, each entry is the bare view-name string.\",\"type\":\"boolean\"},\"search\":{\"default\":null,\"description\":\"Optional case-insensitive filter on view names. The input is used within a `LIKE`\\nclause: `%` matches any sequence of characters and `_` matches any single character.\",\"type\":[\"string\",\"null\"]}},\"type\":\"object\"},\"outputSchema\":{\"properties\":{\"entries\":{\"anyOf\":[{\"description\":\"Brief mode: sorted array of bare entity-name strings.\",\"items\":{\"type\":\"string\"},\"type\":\"array\"},{\"additionalProperties\":true,\"description\":\"Detailed mode: name-keyed map; insertion order matches the SQL `ORDER BY` sort.\",\"type\":\"object\"}],\"description\":\"Page of matching entries. Shape depends on the request's `detailed` flag.\"},\"nextCursor\":{\"description\":\"Opaque cursor pointing to the next page. Absent when this is the final page.\",\"type\":\"string\"}},\"required\":[\"entries\"],\"type\":\"object\"},\"annotations\":{\"readOnlyHint\":true,\"destructiveHint\":false,\"idempotentHint\":true,\"openWorldHint\":false}},{\"name\":\"readQuery\",\"title\":\"Read Query\",\"description\":\"Execute a read-only SQL query. Allowed statements: SELECT, SHOW, DESCRIBE, EXPLAIN.\\n\\n<usecase>\\nUse when:\\n- Querying data from tables (SELECT with WHERE, JOIN, GROUP BY, etc.)\\n- Aggregations: COUNT, SUM, AVG, GROUP BY, HAVING\\n- Listing server variables or status (SHOW)\\n- Viewing table structure (DESCRIBE)\\n</usecase>\\n\\n<when_not_to_use>\\n- Data changes (INSERT, UPDATE, DELETE) → use writeQuery (not available in read-only mode)\\n- Query performance analysis → use explainQuery\\n- Discovering tables or columns → use listTables (pass detailed=true for column-level metadata)\\n- Switching database context (USE is rejected) → pass the `database` argument\\n</when_not_to_use>\\n\\n<examples>\\n✓ \\\"SELECT * FROM users WHERE status = 'active'\\\"\\n✓ \\\"SELECT COUNT(*) FROM orders GROUP BY region\\\"\\n✓ \\\"SHOW TABLES\\\" or \\\"DESCRIBE users\\\"\\n✗ \\\"INSERT INTO users ...\\\" → use writeQuery (not available in read-only mode)\\n✗ \\\"EXPLAIN SELECT ...\\\" → use explainQuery for structured analysis\\n</examples>\\n\\n<what_it_returns>\\nA JSON array of row objects, each keyed by column name.\\n\\nLong string values are cut and end in `…[truncated, N chars total]`; read the rest with `SUBSTRING`/`SUBSTR`. Rows past the response size cap are dropped: a `SELECT` page ends early and `nextCursor` resumes at the first row left out, while other statements report the count in `rowsOmitted`. When either happens the response carries `truncated: true` and a `hint`.\\n</what_it_returns>\\n\\n<pagination>\\n`SELECT` results are paginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. Order by a unique key so pages neither skip nor repeat rows. Pages stay within the statement's own `LIMIT` and `OFFSET`. Write a row limit as a literal `LIMIT n`: other forms (`FETCH FIRST`, expressions) make every page read the whole result. `SHOW`, `DESCRIBE`, and `EXPLAIN` return a single page and ignore `cursor`.\\n</pagination>\\n\\n<timeout>\\nEach call stops at the configured query timeout. On a timeout, check the plan with explainQuery before retrying: filter on indexed columns, or limit inner result sets before joining or aggregating. For a query known to be slow, pass `timeout` (seconds, at least 1) to allow more time. This only helps if the server allows a higher maximum, which is often the same as the default; a value above it is rejected with an error naming the maximum.\\n</timeout>\",\"inputSchema\":{\"properties\":{\"cursor\":{\"default\":null,\"description\":\"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\",\"type\":[\"string\",\"null\"]},\"database\":{\"default\":null,\"description\":\"Database to run the query against. Defaults to the active database.\",\"type\":[\"string\",\"null\"]},\"query\":{\"description\":\"The SQL query to execute.\",\"type\":\"string\"},\"timeout\":{\"default\":null,\"description\":\"Seconds this call may run, from 1 up to the server maximum. Defaults to the configured query timeout.\",\"format\":\"uint64\",\"minimum\":1,\"type\":[\"integer\",\"null\"]}},\"required\":[\"query\"],\"type\":\"object\"},\"outputSchema\":{\"properties\":{\"hint\":{\"description\":\"How to fetch less data; present only when `truncated` is `true`.\",\"type\":[\"string\",\"null\"]},\"nextCursor\":{\"description\":\"Opaque cursor pointing to the next page. Absent when this is the final\\npage, when the result fits in one page, or when the statement is a\\nnon-`SELECT` kind that does not paginate (e.g. `SHOW`, `EXPLAIN`).\",\"type\":\"string\"},\"rows\":{\"description\":\"Result rows, each a JSON object keyed by a column name.\",\"items\":{\"additionalProperties\":true,\"type\":\"object\"},\"type\":\"array\"},\"rowsOmitted\":{\"description\":\"Rows the response cap dropped that no cursor can fetch again.\",\"format\":\"uint64\",\"minimum\":0,\"type\":[\"integer\",\"null\"]},\"truncated\":{\"description\":\"Present and `true` when a character cap cut a value or dropped rows.\",\"type\":\"boolean\"}},\"required\":[\"rows\"],\"type\":\"object\"},\"annotations\":{\"readOnlyHint\":true,\"destructiveHint\":false,\"idempotentHint\":true,\"openWorldHint\":true}}]}}\n",
    "sinkhole_log": "Scope: runtime isolation evidence in runtime/inspect.json.",
    "canary_log": "Outside this listing scope.",
    "scanner_output": "Outside this listing scope.",
    "normalized_text": "{\"attempts\": [], \"calls\": [], \"denied_syscalls\": [{\"errno\": 1, \"kind\": \"attempt\", \"operation\": \"unclassified\", \"target\": \"syscall:425\"}, {\"errno\": 1, \"kind\": \"attempt\", \"operation\": \"unclassified\", \"target\": \"syscall:425\"}, {\"errno\": 1, \"kind\": \"attempt\", \"operation\": \"unclassified\", \"target\": \"syscall:425\"}], \"exit_before_cleanup\": null, \"initialize\": {\"capabilities\": {\"tools\": {}}, \"instructions\": \"## Workflow\\n\\n1. Call `listDatabases` to discover available databases.\\n2. Call `listTables` to see tables. Pass `search` to filter by name (case-insensitive substring). Pass `detailed: true` to get columns, constraints, indexes, and triggers in the same call.\\n3. Call `listViews` to see views.\\n4. Call `listTriggers` to see triggers.\\n5. Call `listFunctions` to see stored functions.\\n6. Call `listProcedures` to see stored procedures.\\n7. Use `readQuery` for read-only SQL (SELECT, SHOW, DESCRIBE, EXPLAIN).\\n8. Use `explainQuery` to analyze query execution plans and diagnose slow queries.\\n\\nPer-database tools default to the active database; pass `database` to target another.\\n\\n## Constraints\\n\\n- The server runs in read-only mode. Data and schema changes are not possible.\\n- Multi-statement queries are not supported. Send one statement per request.\\n\", \"protocolVersion\": \"2025-11-25\", \"serverInfo\": {\"description\": \"Database MCP Server for MySQL and MariaDB\", \"name\": \"dbmcp\", \"title\": \"Database MCP Server\", \"version\": \"0.19.0\", \"websiteUrl\": \"https://dbmcp.haymon.ai\"}}, \"list_change_notifications\": 0, \"monotonic_seconds\": 1.4966662410006393, \"outcome\": \"listed tools offline\", \"placeholder_env\": [], \"started_utc\": \"2026-11-16T13:01:32.196873Z\", \"status\": \"completed\", \"tools\": [{\"annotations\": {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": true, \"readOnlyHint\": true}, \"description\": \"Return the execution plan for a SQL query to diagnose performance. Use this tool instead of running EXPLAIN directly through readQuery — it provides structured output.\\n\\n<usecase>\\nUse when:\\n- A query runs slowly and you need to understand why\\n- Investigating performance bottlenecks\\n- Planning index creation to optimize queries\\n- Analyzing join methods, table scan strategies, and sort operations\\n</usecase>\\n\\n<when_not_to_use>\\n- Running actual queries → use readQuery, or writeQuery for data changes (not available in read-only mode)\\n- Checking table structure → use listTables(detailed=true)\\n</when_not_to_use>\\n\\n<examples>\\n✓ \\\"Why is my SELECT on orders slow?\\\" → explainQuery(query=\\\"SELECT ...\\\")\\n✓ \\\"Should I add an index?\\\" → explainQuery with analyze=true\\n✗ \\\"Run this SELECT\\\" → use readQuery\\n</examples>\\n\\n<safety>\\nSet `analyze` to true for actual execution statistics (EXPLAIN ANALYZE).\\nIMPORTANT: EXPLAIN ANALYZE actually executes the query, so only read-only statements are allowed with analyze.\\nWhen analyze is false, returns EXPLAIN FORMAT=JSON output without executing. Write statements are rejected: the plan is fetched in a read-only transaction.\\nOnly a single SQL statement is accepted.\\n</safety>\\n\\n<what_it_returns>\\nA JSON array of execution plan rows showing access methods, join types, row estimates, and costs.\\n\\nLong string values are cut and end in `…[truncated, N chars total]`, and rows past the response size cap are dropped and counted in `rowsOmitted`; when either happens the response carries `truncated: true` and a `hint`.\\n</what_it_returns>\", \"inputSchema\": {\"properties\": {\"analyze\": {\"default\": false, \"description\": \"If true, use EXPLAIN ANALYZE for actual execution statistics. In read-only mode, only allowed for read-only statements. Defaults to false.\", \"type\": \"boolean\"}, \"database\": {\"default\": null, \"description\": \"Database to explain against. Defaults to the active database.\", \"type\": [\"string\", \"null\"]}, \"query\": {\"description\": \"The SQL query to explain.\", \"type\": \"string\"}}, \"required\": [\"query\"], \"type\": \"object\"}, \"name\": \"explainQuery\", \"outputSchema\": {\"properties\": {\"hint\": {\"description\": \"How to fetch less data; present only when `truncated` is `true`.\", \"type\": [\"string\", \"null\"]}, \"rows\": {\"description\": \"Result rows, each a JSON object keyed by a column name.\", \"items\": {\"additionalProperties\": true, \"type\": \"object\"}, \"type\": \"array\"}, \"rowsOmitted\": {\"description\": \"Rows the response cap dropped that no cursor can fetch again.\", \"format\": \"uint64\", \"minimum\": 0, \"type\": [\"integer\", \"null\"]}, \"truncated\": {\"description\": \"Present and `true` when a character cap cut a value or dropped rows.\", \"type\": \"boolean\"}}, \"required\": [\"rows\"], \"type\": \"object\"}, \"title\": \"Explain Query\"}, {\"annotations\": {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}, \"description\": \"List all accessible databases on the connected server. Use this tool to discover what databases are available before using other tools.\\n\\n<usecase>\\nALWAYS call this tool FIRST when:\\n- You need to explore what databases exist on the server\\n- You need a database name for listTables or query tools\\n- The user asks what data is available\\n</usecase>\\n\\n<examples>\\n✓ \\\"What databases are on this server?\\\"\\n✓ \\\"Show me what's available\\\" → call listDatabases first\\n</examples>\\n\\n<what_it_returns>\\nA sorted JSON array of database name strings.\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page.\\n</pagination>\", \"inputSchema\": {\"properties\": {\"cursor\": {\"default\": null, \"description\": \"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\", \"type\": [\"string\", \"null\"]}}, \"type\": \"object\"}, \"name\": \"listDatabases\", \"outputSchema\": {\"properties\": {\"databases\": {\"description\": \"Sorted list of database names for this page.\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}, \"nextCursor\": {\"description\": \"Opaque cursor pointing to the next page. Absent when this is the final page.\", \"type\": \"string\"}}, \"required\": [\"databases\"], \"type\": \"object\"}, \"title\": \"List Databases\"}, {\"annotations\": {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}, \"description\": \"List user-defined SQL functions in a database, optionally filtered and/or with full metadata. Loadable UDFs (`mysql.func`) and stored procedures are excluded.\\n\\n<usecase>\\nUse when:\\n- Auditing stored functions across a database (brief mode, default).\\n- Searching for a function by partial name (pass `search`).\\n- Inspecting a function's language, signature, return type, determinism, SQL-data-access classification, security mode, definer, comment, session context, and full reconstructed `CREATE FUNCTION` text before reasoning about correctness or invocation safety (pass `detailed: true`). Detailed mode supersedes ad-hoc `readQuery` against `information_schema.ROUTINES` / `information_schema.PARAMETERS`.\\n</usecase>\\n\\n<parameters>\\n- `database` — Database to target. Defaults to the active database.\\n- `cursor` — Opaque pagination cursor; echo the prior response's `nextCursor`.\\n- `search` — Case-insensitive filter on function names via `LIKE`. `%` matches any sequence; `_` matches a single character.\\n- `detailed` — When `true`, returns full metadata objects keyed by function name instead of bare name strings. Default `false`.\\n</parameters>\\n\\n<examples>\\n✓ \\\"What functions are in the mydb database?\\\" → listFunctions(database=\\\"mydb\\\")\\n✓ \\\"Find the order-total calculation\\\" → listFunctions(search=\\\"order\\\")\\n✓ \\\"What does calc_order_total do?\\\" → listFunctions(search=\\\"calc_order_total\\\", detailed=true)\\n✗ \\\"List stored procedures\\\" → use listProcedures instead\\n✗ \\\"List loadable UDFs from mysql.func\\\" → not supported; only routines in information_schema.ROUTINES are returned\\n</examples>\\n\\n<what_it_returns>\\nBrief mode (default): a sorted JSON array of function-name strings, e.g. `[\\\"calc_order_subtotal\\\", \\\"calc_order_total\\\", \\\"double_it\\\"]`.\\nDetailed mode: a JSON object keyed by bare function name (MySQL/MariaDB do not allow function overloading, so no signature suffix is needed); each value carries `schema`, `language` (typically `\\\"SQL\\\"`; MariaDB external-language functions report the external language name), `arguments` (comma-separated `name type` pairs from `information_schema.PARAMETERS`, empty string for zero-parameter functions), `returnType` (full `DTD_IDENTIFIER` including length/precision/unsigned/enum/set members), `deterministic` (boolean), `sqlDataAccess` (one of `CONTAINS_SQL`, `NO_SQL`, `READS_SQL_DATA`, `MODIFIES_SQL_DATA`), `security` (`INVOKER` or `DEFINER`), `definer` (`user@host`), `description` (the `COMMENT` text or `null` when no comment was set — the empty string MySQL stores is coerced to JSON `null`), `definition` (the canonical reconstructed `CREATE FUNCTION` text including `DEFINER=` in `` `user`@`host` `` form), `sqlMode`, `characterSetClient`, `collationConnection`, and `databaseCollation`. Versus the Postgres detailed payload: `volatility`, `parallelSafety`, and `strict` are intentionally absent (no MySQL/MariaDB analogues), `owner` is renamed to `definer` (more accurate for the MySQL `DEFINER` concept), keys are bare names rather than `name(arguments)` (no overloads possible), and the four session-context fields (`sqlMode`, `characterSetClient`, `collationConnection`, `databaseCollation`) are MySQL/MariaDB-only additions.\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. The `search` filter must stay the same across pages for cursor continuity.\\n</pagination>\", \"inputSchema\": {\"properties\": {\"cursor\": {\"default\": null, \"description\": \"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\", \"type\": [\"string\", \"null\"]}, \"database\": {\"default\": null, \"description\": \"Database to list functions from. Defaults to the active database.\", \"type\": [\"string\", \"null\"]}, \"detailed\": {\"default\": false, \"description\": \"When `true`, each returned entry is a full metadata object (schema, language,\\narguments, returnType, deterministic, sqlDataAccess, security, definer,\\ndescription, definition, sqlMode, characterSetClient, collationConnection,\\ndatabaseCollation); when `false` or omitted, each entry is the bare\\nfunction-name string.\", \"type\": \"boolean\"}, \"search\": {\"default\": null, \"description\": \"Optional case-insensitive filter on function names. The input is used within a `LIKE`\\nclause: `%` matches any sequence of characters and `_` matches any single character.\", \"type\": [\"string\", \"null\"]}}, \"type\": \"object\"}, \"name\": \"listFunctions\", \"outputSchema\": {\"properties\": {\"entries\": {\"anyOf\": [{\"description\": \"Brief mode: sorted array of bare entity-name strings.\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}, {\"additionalProperties\": true, \"description\": \"Detailed mode: name-keyed map; insertion order matches the SQL `ORDER BY` sort.\", \"type\": \"object\"}], \"description\": \"Page of matching entries. Shape depends on the request's `detailed` flag.\"}, \"nextCursor\": {\"description\": \"Opaque cursor pointing to the next page. Absent when this is the final page.\", \"type\": \"string\"}}, \"required\": [\"entries\"], \"type\": \"object\"}, \"title\": \"List Functions\"}, {\"annotations\": {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}, \"description\": \"List user-defined stored procedures in a database, optionally filtered and/or with full metadata. Stored functions and loadable UDFs (`mysql.func`) are excluded.\\n\\n<usecase>\\nUse when:\\n- Auditing stored procedures across a database (brief mode, default).\\n- Searching for a procedure by partial name (pass `search`).\\n- Inspecting a procedure's language, parameter list (with `IN`/`OUT`/`INOUT` modes), determinism, SQL-data-access classification, security mode, definer, comment, session context, and full reconstructed `CREATE PROCEDURE` text before reasoning about correctness or invocation safety (pass `detailed: true`). Detailed mode supersedes ad-hoc `readQuery` against `information_schema.ROUTINES` / `information_schema.PARAMETERS`.\\n</usecase>\\n\\n<parameters>\\n- `database` — Database to target. Defaults to the active database.\\n- `cursor` — Opaque pagination cursor; echo the prior response's `nextCursor`.\\n- `search` — Case-insensitive filter on procedure names via `LIKE`. `%` matches any sequence; `_` matches a single character.\\n- `detailed` — When `true`, returns full metadata objects keyed by procedure name instead of bare name strings. Default `false`.\\n</parameters>\\n\\n<examples>\\n✓ \\\"What procedures are in the mydb database?\\\" → listProcedures(database=\\\"mydb\\\")\\n✓ \\\"Find the order archival routine\\\" → listProcedures(search=\\\"archive\\\")\\n✓ \\\"What does archive_order do?\\\" → listProcedures(search=\\\"archive_order\\\", detailed=true)\\n✗ \\\"List functions\\\" → use listFunctions instead\\n✗ \\\"List loadable UDFs from mysql.func\\\" → not supported; only routines in information_schema.ROUTINES are returned\\n</examples>\\n\\n<what_it_returns>\\nBrief mode (default): a sorted JSON array of procedure-name strings, e.g. `[\\\"archive_order\\\", \\\"archive_order_history\\\", \\\"purge_order_archive\\\", \\\"touch_post\\\"]`.\\nDetailed mode: a JSON object keyed by bare procedure name (MySQL/MariaDB do not allow procedure overloading, so no signature suffix is needed); each value carries `schema`, `language` (typically `\\\"SQL\\\"`; MariaDB external-language procedures report the external language name), `arguments` (comma-separated `MODE name type` triples from `information_schema.PARAMETERS` — `MODE` is one of `IN`, `OUT`, `INOUT`; empty string for zero-parameter procedures), `deterministic` (boolean), `sqlDataAccess` (one of `CONTAINS_SQL`, `NO_SQL`, `READS_SQL_DATA`, `MODIFIES_SQL_DATA`), `security` (`INVOKER` or `DEFINER`), `definer` (`user@host`), `description` (the `COMMENT` text or `null` when no comment was set — the empty string MySQL stores is coerced to JSON `null`), `definition` (the canonical reconstructed `CREATE PROCEDURE` text including `DEFINER=` in `` `user`@`host` `` form; no `RETURNS` clause — procedures have no return type), `sqlMode`, `characterSetClient`, `collationConnection`, and `databaseCollation`. Versus the Postgres `listProcedures` detailed payload: `volatility`, `parallelSafety`, `strict`, and `returnType` are intentionally absent (no MySQL/MariaDB analogues for the first three; procedures have no return type for the fourth — the Postgres-side payload also omits all four), `owner` is renamed to `definer` (more accurate for the MySQL `DEFINER` concept), keys are bare names rather than `name(arguments)` (no overloads possible), the four session-context fields (`sqlMode`, `characterSetClient`, `collationConnection`, `databaseCollation`) are MySQL/MariaDB-only additions, and `deterministic` plus `sqlDataAccess` are MySQL/MariaDB-only additions versus the Postgres `listProcedures` detailed payload (which omits both because Postgres procedures have no equivalent attributes).\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. The `search` filter must stay the same across pages for cursor continuity.\\n</pagination>\", \"inputSchema\": {\"properties\": {\"cursor\": {\"default\": null, \"description\": \"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\", \"type\": [\"string\", \"null\"]}, \"database\": {\"default\": null, \"description\": \"Database to list procedures from. Defaults to the active database.\", \"type\": [\"string\", \"null\"]}, \"detailed\": {\"default\": false, \"description\": \"When `true`, each returned entry is a full metadata object (schema, language,\\narguments with IN/OUT/INOUT mode tokens, deterministic, sqlDataAccess, security,\\ndefiner, description, definition, sqlMode, characterSetClient,\\ncollationConnection, databaseCollation); when `false` or omitted, each entry\\nis the bare procedure-name string.\", \"type\": \"boolean\"}, \"search\": {\"default\": null, \"description\": \"Optional case-insensitive filter on procedure names. The input is used within a `LIKE`\\nclause: `%` matches any sequence of characters and `_` matches any single character.\", \"type\": [\"string\", \"null\"]}}, \"type\": \"object\"}, \"name\": \"listProcedures\", \"outputSchema\": {\"properties\": {\"entries\": {\"anyOf\": [{\"description\": \"Brief mode: sorted array of bare entity-name strings.\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}, {\"additionalProperties\": true, \"description\": \"Detailed mode: name-keyed map; insertion order matches the SQL `ORDER BY` sort.\", \"type\": \"object\"}], \"description\": \"Page of matching entries. Shape depends on the request's `detailed` flag.\"}, \"nextCursor\": {\"description\": \"Opaque cursor pointing to the next page. Absent when this is the final page.\", \"type\": \"string\"}}, \"required\": [\"entries\"], \"type\": \"object\"}, \"title\": \"List Procedures\"}, {\"annotations\": {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}, \"description\": \"List tables in a database, optionally filtered and/or with full metadata.\\n\\n<usecase>\\nUse when:\\n- Exploring a database to find relevant tables (brief mode, default).\\n- Searching for a table by partial name (pass `search`).\\n- Inspecting a table's columns, constraints, indexes, and triggers before writing a query (pass `detailed: true`).\\n</usecase>\\n\\n<parameters>\\n- `database` — Database to target. Defaults to the active database.\\n- `cursor` — Opaque pagination cursor; echo the prior response's `nextCursor`.\\n- `search` — Case-insensitive filter on table names via `LIKE`. `%` matches any sequence; `_` matches a single character.\\n- `detailed` — When `true`, returns full metadata objects keyed by table name instead of bare name strings. Default `false`.\\n</parameters>\\n\\n<examples>\\n✓ \\\"What tables are in mydb?\\\" → listTables(database=\\\"mydb\\\")\\n✓ \\\"Find the orders table\\\" → listTables(search=\\\"order\\\")\\n✓ \\\"What columns does orders have?\\\" → listTables(search=\\\"orders\\\", detailed=true)\\n</examples>\\n\\n<what_it_returns>\\nBrief mode (default): a sorted JSON array of table-name strings, e.g. `[\\\"customers\\\", \\\"orders\\\"]`.\\nDetailed mode: a JSON object keyed by table name; each value carries `schema`, `kind`, `owner`, `comment`, `columns`, `constraints`, `indexes`, and `triggers` (the name is the key and is not repeated inside the value). Keys iterate in the same alphabetical order brief mode uses. Example: `{\\\"orders\\\": {\\\"schema\\\": \\\"mydb\\\", \\\"kind\\\": \\\"TABLE\\\", …}}`.\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. The `search` filter must stay the same across pages for cursor continuity.\\n</pagination>\", \"inputSchema\": {\"properties\": {\"cursor\": {\"default\": null, \"description\": \"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\", \"type\": [\"string\", \"null\"]}, \"database\": {\"default\": null, \"description\": \"Database to list tables from. Defaults to the active database.\", \"type\": [\"string\", \"null\"]}, \"detailed\": {\"default\": false, \"description\": \"When `true`, each returned entry is a full metadata object (columns,\\nconstraints, indexes, triggers, owner, comment, kind); when `false` or\\nomitted, each entry is the bare table-name string.\", \"type\": \"boolean\"}, \"search\": {\"default\": null, \"description\": \"Optional case-insensitive filter on table names. The input is used within a `LIKE`\\nclause: `%` matches any sequence of characters and `_` matches any single character.\", \"type\": [\"string\", \"null\"]}}, \"type\": \"object\"}, \"name\": \"listTables\", \"outputSchema\": {\"properties\": {\"entries\": {\"anyOf\": [{\"description\": \"Brief mode: sorted array of bare entity-name strings.\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}, {\"additionalProperties\": true, \"description\": \"Detailed mode: name-keyed map; insertion order matches the SQL `ORDER BY` sort.\", \"type\": \"object\"}], \"description\": \"Page of matching entries. Shape depends on the request's `detailed` flag.\"}, \"nextCursor\": {\"description\": \"Opaque cursor pointing to the next page. Absent when this is the final page.\", \"type\": \"string\"}}, \"required\": [\"entries\"], \"type\": \"object\"}, \"title\": \"List Tables\"}, {\"annotations\": {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}, \"description\": \"List user-defined triggers in a database, optionally filtered and/or with full metadata.\\n\\n<usecase>\\nUse when:\\n- Auditing trigger coverage across a database (brief mode, default).\\n- Searching for a trigger by partial name (pass `search`).\\n- Inspecting a trigger's timing, event, activation level, full `CREATE TRIGGER` text, and the session context active at trigger-creation time before reasoning about side-effects (pass `detailed: true`). Detailed mode supersedes ad-hoc `readQuery` against `information_schema.TRIGGERS`.\\n</usecase>\\n\\n<parameters>\\n- `database` — Database to target. Defaults to the active database.\\n- `cursor` — Opaque pagination cursor; echo the prior response's `nextCursor`.\\n- `search` — Case-insensitive filter on trigger names via `LIKE`. `%` matches any sequence; `_` matches a single character.\\n- `detailed` — When `true`, returns full metadata objects keyed by trigger name instead of bare name strings. Default `false`.\\n</parameters>\\n\\n<examples>\\n✓ \\\"What triggers are in the mydb database?\\\" → listTriggers(database=\\\"mydb\\\")\\n✓ \\\"Find the audit triggers\\\" → listTriggers(search=\\\"audit\\\")\\n✓ \\\"What does orders_audit_after_insert do?\\\" → listTriggers(search=\\\"orders_audit_after_insert\\\", detailed=true)\\n✗ \\\"Show me a trigger's body\\\" → use detailed mode; the `definition` field carries the full `CREATE TRIGGER` text\\n</examples>\\n\\n<what_it_returns>\\nBrief mode (default): a sorted JSON array of trigger-name strings, e.g. `[\\\"customers_audit_after_insert\\\", \\\"orders_audit_after_insert\\\"]`.\\nDetailed mode: a JSON object keyed by trigger name; each value carries `schema`, `table`, `timing` (BEFORE/AFTER), `events` (single-element array — `INSERT`, `UPDATE`, or `DELETE`), `activationLevel` (always `ROW` on MySQL/MariaDB), `definition` (the canonical `CREATE TRIGGER` text including `DEFINER=` in `` `user`@`host` `` form), `sqlMode`, `characterSetClient`, `collationConnection`, and `databaseCollation`. The Postgres-only `status` and `functionName` fields are intentionally absent (no per-trigger enabled/disabled flag and no separate handler-function reference on MySQL/MariaDB); the four session-context fields are MySQL/MariaDB-only additions versus the Postgres detailed payload.\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. The `search` filter must stay the same across pages for cursor continuity.\\n</pagination>\", \"inputSchema\": {\"properties\": {\"cursor\": {\"default\": null, \"description\": \"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\", \"type\": [\"string\", \"null\"]}, \"database\": {\"default\": null, \"description\": \"Database to list triggers from. Defaults to the active database.\", \"type\": [\"string\", \"null\"]}, \"detailed\": {\"default\": false, \"description\": \"When `true`, each returned entry is a full metadata object (schema, table, timing,\\nevents, activationLevel, definition, plus backend-specific fields); when `false` or\\nomitted, each entry is the bare trigger-name string.\", \"type\": \"boolean\"}, \"search\": {\"default\": null, \"description\": \"Optional case-insensitive filter on trigger names. The input is used within a `LIKE`\\nclause: `%` matches any sequence of characters and `_` matches any single character.\", \"type\": [\"string\", \"null\"]}}, \"type\": \"object\"}, \"name\": \"listTriggers\", \"outputSchema\": {\"properties\": {\"entries\": {\"anyOf\": [{\"description\": \"Brief mode: sorted array of bare entity-name strings.\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}, {\"additionalProperties\": true, \"description\": \"Detailed mode: name-keyed map; insertion order matches the SQL `ORDER BY` sort.\", \"type\": \"object\"}], \"description\": \"Page of matching entries. Shape depends on the request's `detailed` flag.\"}, \"nextCursor\": {\"description\": \"Opaque cursor pointing to the next page. Absent when this is the final page.\", \"type\": \"string\"}}, \"required\": [\"entries\"], \"type\": \"object\"}, \"title\": \"List Triggers\"}, {\"annotations\": {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": false, \"readOnlyHint\": true}, \"description\": \"List user-defined views in a database, optionally filtered and/or with full metadata. Base tables and system-schema views are excluded.\\n\\n<usecase>\\nUse when:\\n- Auditing views across a database (brief mode, default).\\n- Searching for a view by partial name (pass `search`).\\n- Inspecting a view's definer, security mode, check-option level, updatable flag, session character set/collation, and full SELECT body before querying it (pass `detailed: true`). Detailed mode supersedes ad-hoc `readQuery` against `information_schema.VIEWS`.\\n</usecase>\\n\\n<parameters>\\n- `database` — Database to target. Defaults to the active database.\\n- `cursor` — Opaque pagination cursor; echo the prior response's `nextCursor`.\\n- `search` — Case-insensitive filter on view names via `LIKE`. `%` matches any sequence; `_` matches a single character.\\n- `detailed` — When `true`, returns full metadata objects keyed by view name instead of bare name strings. Default `false`.\\n</parameters>\\n\\n<examples>\\n✓ \\\"What views are in the mydb database?\\\" → listViews(database=\\\"mydb\\\")\\n✓ \\\"Find the active-users view\\\" → listViews(search=\\\"active\\\")\\n✓ \\\"What does active_users select?\\\" → listViews(search=\\\"active_users\\\", detailed=true)\\n✗ \\\"Show me the columns of a view\\\" → use listTables with `detailed: true` instead\\n✗ \\\"List materialized views\\\" → MySQL/MariaDB have no materialized-view concept\\n</examples>\\n\\n<what_it_returns>\\nBrief mode (default): a sorted JSON array of view-name strings, e.g. `[\\\"active_orders\\\", \\\"active_users\\\", \\\"published_posts\\\"]`.\\nDetailed mode: a JSON object keyed by bare view name; each value carries `schema`, `definer` (`user@host`), `security` (`INVOKER` or `DEFINER`), `checkOption` (`NONE`, `CASCADED`, or `LOCAL`), `updatable` (boolean), `characterSetClient`, `collationConnection`, and `definition` (the SELECT body verbatim from `information_schema.VIEWS.VIEW_DEFINITION`, with no `CREATE VIEW` wrapper). The view name is the map key only — it is not repeated inside the value.\\n\\nVersus the Postgres `listViews` detailed payload: `description` is intentionally absent (neither MySQL nor MariaDB exposes a user-comment column for views — `CREATE VIEW` syntax has no `COMMENT` clause), `algorithm` is intentionally absent (MariaDB-only column on `information_schema.VIEWS`), `owner` is renamed to `definer` (more accurate for the MySQL `DEFINER` concept), and the five MySQL/MariaDB-only structured fields (`security`, `checkOption`, `updatable`, `characterSetClient`, `collationConnection`) are added. The `definition` field shape is byte-identical to Postgres — raw SELECT body verbatim, no DDL wrapper. When the connected role lacks the `SHOW VIEW` privilege on a particular view, the engine redacts `VIEW_DEFINITION` to the empty string; the row remains in the response with `definition` reflecting that empty value.\\n</what_it_returns>\\n\\n<pagination>\\nPaginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. The `search` filter must stay the same across pages for cursor continuity. Brief and detailed modes share the same `TABLE_NAME` row order, so a client can switch `detailed` between pages without losing position.\\n</pagination>\", \"inputSchema\": {\"properties\": {\"cursor\": {\"default\": null, \"description\": \"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\", \"type\": [\"string\", \"null\"]}, \"database\": {\"default\": null, \"description\": \"Database to list views from. Defaults to the active database.\", \"type\": [\"string\", \"null\"]}, \"detailed\": {\"default\": false, \"description\": \"When `true`, each returned entry is a full metadata object (schema, definer,\\nsecurity, checkOption, updatable, characterSetClient, collationConnection,\\ndefinition); when `false` or omitted, each entry is the bare view-name string.\", \"type\": \"boolean\"}, \"search\": {\"default\": null, \"description\": \"Optional case-insensitive filter on view names. The input is used within a `LIKE`\\nclause: `%` matches any sequence of characters and `_` matches any single character.\", \"type\": [\"string\", \"null\"]}}, \"type\": \"object\"}, \"name\": \"listViews\", \"outputSchema\": {\"properties\": {\"entries\": {\"anyOf\": [{\"description\": \"Brief mode: sorted array of bare entity-name strings.\", \"items\": {\"type\": \"string\"}, \"type\": \"array\"}, {\"additionalProperties\": true, \"description\": \"Detailed mode: name-keyed map; insertion order matches the SQL `ORDER BY` sort.\", \"type\": \"object\"}], \"description\": \"Page of matching entries. Shape depends on the request's `detailed` flag.\"}, \"nextCursor\": {\"description\": \"Opaque cursor pointing to the next page. Absent when this is the final page.\", \"type\": \"string\"}}, \"required\": [\"entries\"], \"type\": \"object\"}, \"title\": \"List Views\"}, {\"annotations\": {\"destructiveHint\": false, \"idempotentHint\": true, \"openWorldHint\": true, \"readOnlyHint\": true}, \"description\": \"Execute a read-only SQL query. Allowed statements: SELECT, SHOW, DESCRIBE, EXPLAIN.\\n\\n<usecase>\\nUse when:\\n- Querying data from tables (SELECT with WHERE, JOIN, GROUP BY, etc.)\\n- Aggregations: COUNT, SUM, AVG, GROUP BY, HAVING\\n- Listing server variables or status (SHOW)\\n- Viewing table structure (DESCRIBE)\\n</usecase>\\n\\n<when_not_to_use>\\n- Data changes (INSERT, UPDATE, DELETE) → use writeQuery (not available in read-only mode)\\n- Query performance analysis → use explainQuery\\n- Discovering tables or columns → use listTables (pass detailed=true for column-level metadata)\\n- Switching database context (USE is rejected) → pass the `database` argument\\n</when_not_to_use>\\n\\n<examples>\\n✓ \\\"SELECT * FROM users WHERE status = 'active'\\\"\\n✓ \\\"SELECT COUNT(*) FROM orders GROUP BY region\\\"\\n✓ \\\"SHOW TABLES\\\" or \\\"DESCRIBE users\\\"\\n✗ \\\"INSERT INTO users ...\\\" → use writeQuery (not available in read-only mode)\\n✗ \\\"EXPLAIN SELECT ...\\\" → use explainQuery for structured analysis\\n</examples>\\n\\n<what_it_returns>\\nA JSON array of row objects, each keyed by column name.\\n\\nLong string values are cut and end in `…[truncated, N chars total]`; read the rest with `SUBSTRING`/`SUBSTR`. Rows past the response size cap are dropped: a `SELECT` page ends early and `nextCursor` resumes at the first row left out, while other statements report the count in `rowsOmitted`. When either happens the response carries `truncated: true` and a `hint`.\\n</what_it_returns>\\n\\n<pagination>\\n`SELECT` results are paginated. Pass the prior response's `nextCursor` as `cursor` to fetch the next page. Order by a unique key so pages neither skip nor repeat rows. Pages stay within the statement's own `LIMIT` and `OFFSET`. Write a row limit as a literal `LIMIT n`: other forms (`FETCH FIRST`, expressions) make every page read the whole result. `SHOW`, `DESCRIBE`, and `EXPLAIN` return a single page and ignore `cursor`.\\n</pagination>\\n\\n<timeout>\\nEach call stops at the configured query timeout. On a timeout, check the plan with explainQuery before retrying: filter on indexed columns, or limit inner result sets before joining or aggregating. For a query known to be slow, pass `timeout` (seconds, at least 1) to allow more time. This only helps if the server allows a higher maximum, which is often the same as the default; a value above it is rejected with an error naming the maximum.\\n</timeout>\", \"inputSchema\": {\"properties\": {\"cursor\": {\"default\": null, \"description\": \"Opaque cursor from a prior response's `nextCursor`; omit for the first page.\", \"type\": [\"string\", \"null\"]}, \"database\": {\"default\": null, \"description\": \"Database to run the query against. Defaults to the active database.\", \"type\": [\"string\", \"null\"]}, \"query\": {\"description\": \"The SQL query to execute.\", \"type\": \"string\"}, \"timeout\": {\"default\": null, \"description\": \"Seconds this call may run, from 1 up to the server maximum. Defaults to the configured query timeout.\", \"format\": \"uint64\", \"minimum\": 1, \"type\": [\"integer\", \"null\"]}}, \"required\": [\"query\"], \"type\": \"object\"}, \"name\": \"readQuery\", \"outputSchema\": {\"properties\": {\"hint\": {\"description\": \"How to fetch less data; present only when `truncated` is `true`.\", \"type\": [\"string\", \"null\"]}, \"nextCursor\": {\"description\": \"Opaque cursor pointing to the next page. Absent when this is the final\\npage, when the result fits in one page, or when the statement is a\\nnon-`SELECT` kind that does not paginate (e.g. `SHOW`, `EXPLAIN`).\", \"type\": \"string\"}, \"rows\": {\"description\": \"Result rows, each a JSON object keyed by a column name.\", \"items\": {\"additionalProperties\": true, \"type\": \"object\"}, \"type\": \"array\"}, \"rowsOmitted\": {\"description\": \"Rows the response cap dropped that no cursor can fetch again.\", \"format\": \"uint64\", \"minimum\": 0, \"type\": [\"integer\", \"null\"]}, \"truncated\": {\"description\": \"Present and `true` when a character cap cut a value or dropped rows.\", \"type\": \"boolean\"}}, \"required\": [\"rows\"], \"type\": \"object\"}, \"title\": \"Read Query\"}], \"tools_list_hashes\": [\"85049ce21f47b5950d0f4de75d92904065024aac5070248355a2f7581c90564f\"], \"wall_limit_seconds\": 45}"
  },
  "review_input": {
    "identity_artifact": "identity.json",
    "evidence_sha256": {
      "LOCK.json": "8f6d0fd1a4d2bef964e75e2575a81563f48f048780e4a22805da926cb660c347",
      "argv.json": "c68f162b6d6892257584e5f739048218a77e2fc1751425baad18b164c3a788d9",
      "attempts.json": "5484d1f17fff7ff2dfe1f1ceed212894d0b566e5bef692e554eb71ff137280fc",
      "attempts.raw": "68e25a69cd2dadf8014753a7924f662b16014e9b4d02cd024bf7eaf7017f96db",
      "complete.json": "6380c1468733068952fbdc4d66e774a7d62817401f28e341dc47559fcce04446",
      "component-record.json": "e4e4d24c2df192adad5d5ad7d069c604113b6bbd8a37098c2eb73d81cec95e91",
      "fixture.json": "ca3d163bab055381827226140568f3bef7eaac187cebd76878e0b63e9e442356",
      "harness/acquire.py": "ae9e342aaa177f2f2c6d0bf292ff11a320473aebc5e7d2f6c5b5b6bd22b0274c",
      "harness/attempt_accounting.py": "7b7d468ea9055c071e8855444a71869b81e631977bb8fc5671cec381c69bb328",
      "harness/attempt_monitor.c": "f1409eb0d6a28a8e25034d0e1969bea1a75eecc8f50c0172d332364650bada1f",
      "harness/auto_witness.py": "ea97baa93f4f66a8df6d85ce987bc5348b788029b4864572e5b208bec44f7c4c",
      "harness/mcp_driver.py": "b5996ec8e534b797c976dc83e44af0b52f64895fec5e72a4f9b32cb2f63cbbf7",
      "harness/record.py": "d34b444b8f6ccf5f79fae86dd02c2fc223f11e026cffa8090007ac5f9be85c82",
      "harness/runtime_proof.py": "5c7cf3ea134bd9b7c146b357653f1311d29db54894786a99b4d5b445a53456d3",
      "identity.json": "e67fcb0393a7435b515fbd5ab5cf2eb34256033f1e52164d6fbb9d5df02058c0",
      "manifest.json": "f867889cd9c168f7a10f2f1ed714e36b5a43061b6f2827d30c942f2fd7cfc51a",
      "mcp/report.json": "9850f449802d5238fea175b719a703ec857d7c3a62ec45c4cdd663d83f356f1e",
      "mcp/stderr.bin": "d8d62aeb570a1e7029e78219eb4942d821b8a1aecc2c84f374d52dfa4b0bc72f",
      "mcp/stdin.bin": "9ced9858b21f60691df654e649f586e91cfcaf60ed887c79c3df92f599166df6",
      "mcp/stdout.bin": "63be18b10dd951629c54eabf8325038197c26a03172e18d92cadc5fcf3bdbedf",
      "mcp/subject-stderr.bin": "cfe84b3eae48c26127d0af2f8fc6d19d3bbe6241ecca1598f6bad17dcf094fb4",
      "runtime/inspect.json": "78486a50ac293e23528e2e28e57e79cf3b0f264b91b2611af60e95c59aff1590"
    },
    "claims": [
      {
        "id": "acquired",
        "field": "summary",
        "text": "Acquired @haymon-ai/dbmcp@0.19.0; tarball sha256 f971ebd5583b30726023b5b2cdbbcfa7d4cae1ea54552f718251a8b568756c6c.",
        "sources": [
          "LOCK.json"
        ]
      },
      {
        "id": "started",
        "field": "outcome",
        "text": "The server started offline in an isolated container (runtime/inspect.json).",
        "sources": [
          "runtime/inspect.json",
          "LOCK.json",
          "argv.json",
          "mcp/report.json",
          "mcp/stdout.bin"
        ]
      },
      {
        "id": "listed",
        "field": "rule_results.0",
        "text": "It answered tools/list with 8 tools named [\"explainQuery\", \"listDatabases\", \"listFunctions\", \"listProcedures\", \"listTables\", \"listTriggers\", \"listViews\", \"readQuery\"].",
        "sources": [
          "mcp/report.json",
          "mcp/stdout.bin"
        ]
      }
    ]
  },
  "review": {
    "kind": "machine-checked",
    "date": "2026-11-16",
    "reviewed_sha256": "ad20dc33d84f4c5ccd8fe471b4efc516e1a1758ce67e7490fa99b6dcfa027f07",
    "gates": "8d66a144496089e01deecad923c1be8b3fcf3f3bb5166b02cb9e006bb1351b08",
    "codex": "36c8aef79c030c4b5e007928b7da73bfb812afa710a34a492efa9c956fe388c7",
    "grok": "c364c55d3dafe2800ad7fbc0770c9e44df70969445392f4c52d1680b3d6eea1e",
    "summary": "Deterministic gates passed; every claim rebuilt from evidence with a reviewed template; Grok reported no standing refutation."
  }
}
