NotesORDSMCPAI agents

ORDS MCP SQL reports (26.3): let agents run SQL you already approved

ORDS 26.3 adds SQL reports to its MCP server: reviewed queries an agent can list, inspect and run, with inputs passed as bind variables.

ORDS 26.3 adds SQL reports to its MCP server. A report is a query you wrote and reviewed. An agent can find it, read it and run it, but not change it. For the questions that must be right, the agent runs your SQL instead of writing its own.

How it works

  • Three new MCP tools: report_list, report_sql and report_execute.
  • A report is a JSON definition: the SQL, its declared bind variables, the columns, and a description that tells the model when to use it.
  • The caller's input is passed as bind variables, never pasted into the SQL. :current_user comes from the authenticated request.
  • Listing, viewing the SQL and running a report have separate access rules. In role-based setups, MCP access now needs the ORDS_MCP_SERVER role (26.2 used a scope).
  • Agents can't create or edit reports through MCP. That is by design.

Start with five questions

List the five questions your team must answer exactly right, such as month-end totals, audit queries or the KPIs leadership sees. Turn each one into a report and switch reports on per connection pool with feature.mcp.reports=true. Keep sql_run (free-form SQL) for exploring.

My take: an agent writing SQL is fine for exploring. For numbers someone will act on, it should run SQL a person approved. Source: ORDS MCP 26.3: a look at SQL reports.

Get the Oracle + AI digest

One email when a new tested guide, template or APEX release note lands — English or Arabic. No spam; unsubscribe anytime.