Overview of Oracle SQLcl MCP Tools

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →

Overview of Oracle SQLcl MCP Tools

A quick look at the tools your Agent has access to when working with an Oracle AI Database via SQLcl MCP.

This is current as of SQLcl version 26.3.x.

thatjeffsmith

December 01, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

11 slides
  1. OR ACLE SQLCL · MCP SERVER 01 / 11 10

    tools that let your AI agent work with Oracle Database, safely SQLcl runs as a local MCP server. Your agent plans and writes the SQL; SQLcl connects, runs it, and returns token-friendly results. CONNECT U N D E R S TA N D connections_list schema_information which databases the agent can see metadata for NL2SQL connect annotation_generate open a session by name describe your data disconnect context_retrieve close the session vector search for RAG EXECUTE EXTEND sql_run skills_sync SQL and PL/SQL install Oracle AI skills sqlcl_run SQLcl commands request_status Free. Works with any database edition and version from 19c on. Included with SQL Developer for VS Code. check background jobs thatjeffsmith.com Swipe for each tool →
  2. 02 / 11 CONNECT connections_list Your agent sees only the

    databases you choose Lists saved connections by name. It never returns passwords, and it doesn't open a session. F I LT E R S name contains… username definition_type OCI | NON_OCI show_details // MCP config: point SQLcl at its own home "args": ["-mcp", "-R", "1", "-home", "/Users/jeff/mcp-home"] ! By default, the agent can use every connection you've saved in SQLcl or SQL Developer for VS Code. Start the server with -home pointing at a folder with only the connections you copied in. In my setup, 10 connections went down to 2. thatjeffsmith.com SQLcl MCP Tools
  3. 03 / 11 CONNECT connect The agent gets a name,

    never a password Opens a session on a saved connection by its name (casesensitive). Credentials stay encrypted in your wallet, so SQLcl does the login, not the LLM. W H AT T H E D ATA B A S E S E E S -- every MCP session is labeled PROGRAM SQLcl-MCP MODULE claude-opus-5-5 -- the LLM ACTION sql_run -- the tool ✓ DBAs can see which LLM ran which tool in V$SESSION. The agent should check with you before switching databases. Pair this with a least-privilege database user. thatjeffsmith.com SQLcl MCP Tools
  4. 04 / 11 UNDERSTAND schema_information One call instead of a

    dozen dictionary queries Returns schema metadata and annotations in a compact format built for the LLM, so NL2SQL starts from facts. You choose how much comes back. 1 · C H O O S E T H E D E TA I L L E V E L BRIEF OVERVIEW TABLE_​ DETAILS DETAILED Names and object types only Table-only summary Columns, keys, indexes and FKs for the tables you name Everything 2 · CHOOSE WHICH OBJECTS filter 'STRAVA%' objects_list A,B,C schema execution_type ASYNC $ Every token costs money, and extra context doesn't make answers better. Fetch one table, not the whole schema. thatjeffsmith.com SQLcl MCP Tools
  5. 05 / 11 EXECUTE sql_run Runs the SQL your agent

    writes, and keeps a record Runs queries, DML, DDL and PL/SQL blocks, and returns the results as CSV. sql_run( sql = "SELECT region, COUNT(*) ...", execution_type = "ASYNCHRONOUS" // long query? ) → { tool_request_id: "7" } // check back later ✓ Every statement is logged to DBTOOLS$MCP_LOG along with the model that sent it. You can audit exactly what your AI ran. thatjeffsmith.com SQLcl MCP Tools
  6. 06 / 11 EXECUTE sqlcl_run All of SQLcl, available to

    your agent Runs SQLcl commands, which aren't plain SQL. This is where the tool goes beyond running queries. liquibase info ddl load datapump awr apex export annotation install SQL> annotation install -- set up AI enrichment SQL> spool stuff.csv SP2-0738: Restricted command "spool" not available ! Start the server with -R <level> to block commands like HOST and SPOOL that reach your local OS. The agent should ask you before destructive commands such as Liquibase drop-all. thatjeffsmith.com SQLcl MCP Tools
  7. 07 / 11 EXECUTE request_status Five-minute reports, without the 60-second

    timeout sql_run, sqlcl_run and schema_information can run in the background. They return a tool_request_id right away, and the agent checks on it later. RUNNING FINISHED FAILED Still working. Check again shortly. The full result comes back. Error details come back. ⏱ No pile-ups. The agent has to check status before it retries or rewrites expensive SQL, so a slow query doesn't turn into five copies of the same slow query. thatjeffsmith.com SQLcl MCP Tools
  8. 08 / 11 UNDERSTAND annotation_generate Your schema can't explain itself.

    Annotations can. The agent profiles your data and drafts DESCRIPTION annotations for tables and columns, each with a confidence label. You review them first. PREVIEW PERSIST See every proposed annotation, rated HIGH / MODERATE / LOW. Nothing is saved yet. Save the ones you approve to the database's METADATA_ANNOTATIONS. ✎ In my demo: 75 annotations (1 table, 74 columns). The agent found that dates are stored in UTC, Rowing distances are mixed meters and km, and 8 columns are useless as filters. Preview, then persist. thatjeffsmith.com SQLcl MCP Tools
  9. UNDERSTAND 09 / 11 context_retrieve RAG on the vectors you

    already have Runs AI Vector Search on the vector tables in the connected database and returns the closest matches as context for the agent. you: "Which of my workouts felt brutal and exhausting?" agent → context_retrieve( concise_user_prompt = "brutal exhausting workouts") ↻ The agent sends short keyword queries, not your whole question. The search runs inside the database, and only the best matches go back to the LLM. thatjeffsmith.com SQLcl MCP Tools
  10. 10 / 11 EXTEND skills_sync Oracle know-how, installed into your

    agent Downloads Oracle-maintained AI skills from the official Oracle repository and installs them in the skill folders of the AI assistants it finds on your machine. OPTIONS skill_names all, or pick some version latest force overwrite you: "Update my Oracle skills" agent → skills_sync(version = "latest") → SQL, PL/SQL, SQLcl, ORDS, performance… ★ Tools let your agent act. Skills teach it Oracle best practices, so the SQL it writes is better before it ever runs. thatjeffsmith.com SQLcl MCP Tools
  11. 11 / 11 CONNECT disconnect Clean up when the work

    is done Ends the database session and closes the connection. The agent uses it when you ask it to disconnect or approve a switch to another database. you: "Done with Raptor. Switch to Free26ai." agent → disconnect() agent → connect(connection_name = "Free26ai") ✓ It doesn't disconnect without a reason. An empty result or a display glitch isn't one. A healthy session stays open, so there's no reconnect churn. thatjeffsmith.com Try it: SQLcl 26.3 →

More Decks by thatjeffsmith

Other Decks in Technology