Skip to main content
Glama
oracle-mcp-server

oracle-mcp-server

by Tommi2Day

execute

Run SQL statements (DML/DDL) or PL/SQL blocks on Oracle Database, commit changes, and return DBMS_OUTPUT.

Instructions

Execute a SQL statement (INSERT, UPDATE, DELETE, MERGE, DDL) or a PL/SQL block. Changes are committed. DBMS_OUTPUT of PL/SQL blocks is returned.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sql": "<sql>"
    },
    "name": "execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesSQL statement or PL/SQL block (BEGIN … END;)
paramsNoBind values: array for :1, :2, … or object for :name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden, and it does disclose two important traits: changes are committed (auto-commit, no explicit transaction control) and DBMS_OUTPUT from PL/SQL is returned. It omits what the result contains for DML (rows affected?), failure/rollback behavior, and permission requirements, which matter for a destructive tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, zero filler, with the core capability front-loaded and the commit/output semantics following. Every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter tool with no output schema and full schema coverage, the description covers capability, commit semantics, and one return channel. Only the DML result shape and error behavior are missing, which is a minor gap at this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both 'sql' and 'params' are already documented in the schema, including the ':1' array vs ':name' object binding convention. The description adds no binding or formatting detail beyond that, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Execute') plus the resource ('SQL statement or PL/SQL block') and enumerates the DML/DDL statement classes it accepts. The agent can tell what the tool does, but nothing distinguishes it from the sibling 'query' tool for read-only SELECTs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The statement-type list (INSERT, UPDATE, DELETE, MERGE, DDL, PL/SQL) implicitly scopes usage away from plain SELECTs, which is a usable signal. However, there is no explicit 'use this instead of query when…' guidance and no mention of prerequisites such as connecting first or required privileges.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.