Skip to main content
Glama
oracle-mcp-server

oracle-mcp-server

by Tommi2Day

query

Run read-only SQL SELECT or WITH statements against Oracle Database and return up to 200 rows, with bind variables using :1, :2, or :name syntax.

Instructions

Execute a read-only SQL SELECT (or WITH …) query and return the results. At most 200 rows are returned. Bind variables use Oracle syntax (:1, :2 or :name).

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": "query"
  }
}

Input Schema

NameRequiredDescriptionDefault
sqlYesSQL SELECT query (no trailing semicolon needed)
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.8/5.0
Behavior4/5

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

With no annotations at all, the description carries the full behavioral burden and does disclose two important traits: the operation is read-only and results are truncated to at most 200 rows. It omits error behavior, timeouts, and any permission or privilege requirements, and does not say whether the 200-row cap is a hard limit or paginatable.

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, each carrying distinct information: capability, result-size limit, and bind-variable syntax. Front-loaded with the core action and no filler.

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, the definition covers what it does, the row cap, and parameter binding. It could say more about the returned result shape (columns/rows) or how errors surface, but nothing essential for a correct call is missing.

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 coverage is 100%, so both parameters are already documented in the schema. The description restates the bind syntax (:1, :2 or :name) and adds the Oracle flavor plus the note that no trailing semicolon is needed, which is marginal added value over the schema.

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?

The description names a specific verb and resource: execute a read-only SQL SELECT or WITH query and return results. The word 'read-only' implicitly separates it from a sibling like 'execute' that presumably allows writes, but it never names or contrasts that sibling explicitly.

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?

Usage is only implied: read-only SELECT statements belong here. There is no explicit guidance on when to prefer 'explain_plan', 'execute', or other siblings, and no stated exclusions (e.g., what to do for DML/DDL).

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