Posts

Showing posts with the label Oracle REST Data Services

ORDS MCP REPORTS AND CUSTOM SQL TOOLS

ORDS MCP can give an AI agent access to saved SQL or PL/SQL. You can publish that SQL as a report or as a custom SQL tool . You can review the SQL before you publish it. When a user asks a question, the agent supplies values for the query inputs. ORDS runs the saved query, so the agent does not need to generate a new query for each request. The complete demo configuration and setup script are available in the ORDS MCP reports and custom SQL tools GitHub repository . The main difference between these two MCP options is how the agent finds and calls the saved SQL: Report Custom SQL tool What the agent sees The built-in report tools: report_list , report_sql , and report_execute One MCP tool for each definition Who can define it An ORDS admin, or a schema developer when schema reports are enabled An O...

ORDS REST-Enabled SQL Service: How to Customize Response Format (Complete Guide)

Hello fellas!! 👋 Today's topic: Understanding the REST-Enabled SQL Service in ORDS and How to Customize its Response Format. REST-Enabled SQL Service in ORDS What is it? The REST-Enabled SQL service is an HTTPS web service that provides access to the Oracle Database SQL engine. You can POST SQL statements to the service. The service then runs the SQL statements against Oracle Database and returns the result to the client in a JSON format. Example: Making a Request When making a request to the REST-Enabled SQL Service, you typically get a response by default that looks like this: Sample Request curl --location 'http://localhost:8086/ords/<schema_alias>/_/sql' \ --header 'Content-Type: application/json' \ -u "user:dummySecret" \ --data '{ "statementText": "select sysdate from dual" }' Default Response Format ...

Introduction to Oracle Rest Data Services (ORDS) – A Beginner’s Guide

Image
Hey folks! Today, I want to introduce you to a tool that’s been part of my daily grind: Oracle REST Data Services, or ORDS. So, What’s ORDS? Basically, ORDS is a tool that lets you expose your Oracle database data as RESTful APIs. Instead of wrestling with complex backend code, ORDS makes it super easy to build and deploy APIs. With ORDS, your data becomes accessible from anywhere with just a few HTTP calls. Think of it as giving your database a direct, web-friendly voice. Users and ORDS interaction workflow Why ORDS? 🌟 Imagine this: You’ve got an Oracle database packed with valuable data, and you want to make it accessible to an app, a web service, or another system. Usually, you’d need a whole backend to handle data retrieval, authentication, response formatting… you name it. But with ORDS? You just set it up, map it to your database tables or procedures, and voilà—you’ve got an API that you can call from anywhere. Here’s why ORDS is a game-...