Skip to main content
Glama
oracle-mcp-server

oracle-mcp-server

by Tommi2Day

alert_log

Reads the newest Oracle database diagnostic log entries, optionally filtered to ORA-/TNS- errors or matching text, to help diagnose recent database issues.

Instructions

Read the database alert log through V$DIAG_ALERT_EXT (11.2+): newest entries of the last minutes, optionally only ORA-/TNS- errors or lines containing a text. "Errors in file …" entries show the trace file name to read with trace_content. Needs SELECT on V$DIAG_ALERT_EXT.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "alert_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of entries, newest first (default 50)
minutesNoTime window in minutes (default 60)
containsNoCase-insensitive substring filter on the message text
errors_onlyNoOnly entries with ORA-, TNS- or CRS- error codes (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it names the underlying view, the Oracle version floor, the truncated scope (only recent minutes, newest first), and the SELECT-on-V$DIAG_ALERT_EXT requirement. It doesn't describe the columns returned or what happens when the window contains no entries.

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

Conciseness4/5

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

Two tight sentences, front-loaded with the action and backing view, followed by the trace_content handoff and the privilege note. Phrasing is slightly compressed ("newest entries of the last minutes"), but nothing is wasted.

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?

There is no output schema, so the description must imply the return shape; it sketches it (newest-first entries, identifiable "Errors in file …" lines containing a trace name) and covers prerequisites. Return columns and empty-result behavior remain unspecified, which is a modest gap for a read-only log tool.

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 defaults and bounds are already documented; the description only restates the filter concepts without adding format hints. It also narrows errors_only to "ORA-/TNS-" while the schema includes CRS-, a small mismatch that adds no meaning beyond the schema.

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

Purpose5/5

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

States a specific verb and resource ("Read the database alert log through V$DIAG_ALERT_EXT") plus scope and version constraint (11.2+) and the filtering behavior. An agent can distinguish it from trace_content, which reads the trace file named inside an alert entry.

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

Usage Guidelines4/5

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

Gives clear context (newest entries over a recent window, optional error or substring filtering) and explicitly routes the agent onward: "Errors in file …" entries point to the trace file to read with trace_content. It states the required privilege, but offers no explicit when-not-to-use guidance beyond that handoff.

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