Skip to main content
Glama
oracle-mcp-server

oracle-mcp-server

by Tommi2Day

locks

Analyze blocked Oracle sessions to identify root blockers, locked objects, waiting sessions, and idle or SQL details, then suggest ALTER SYSTEM KILL SESSION commands without executing them.

Instructions

Lock analysis: blocked sessions with the blocking and root blocking session and the locked object, the root blockers (status, idle time, SQL, number of waiters) and the locks they hold (V$LOCKED_OBJECT). Suggests, but never executes, ALTER SYSTEM KILL SESSION. Single instance (V$ views).

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of blocked sessions (default 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it explicitly states it only *suggests* ALTER SYSTEM KILL SESSION and never executes it, which tells the agent this is a safe read-only diagnostic despite the kill-session language. It also discloses the single-instance V$ scope limitation. It omits any note on cost/latency of V$ queries or required privileges, which keeps it from a 5.

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?

Very dense but front-loaded: the payload comes first and the critical safety caveat ('Suggests, but never executes') follows. No wasted sentences, though the parenthetical V$ object names and 'Single instance (V$ views)' add jargon load that a reader must parse.

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?

With no output schema, the description must convey the return shape, and it does: a hierarchy of blocked session -> blocker -> root blocker plus the locks held. Together with the scope caveat and the kill-session warning, an agent has enough to call it correctly; only privilege and cost expectations are unstated.

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?

There is a single optional parameter (limit) whose schema description is 100% covered ('Maximum number of blocked sessions (default 20)'). The description adds nothing beyond that, which is exactly the baseline-3 case when the schema does the explaining.

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 states a specific resource and enumerates exactly what it returns: blocked sessions, their blocker and root blocker, the locked object, root blocker status/idle time/SQL/waiter count, and V$LOCKED_OBJECT rows. That is far more specific than the bare name 'locks'. It stops short of naming a sibling (e.g., session_activity) it should be preferred over, so it lands at 4 rather than 5.

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?

'Lock analysis' plus the blocked-session/root-blocker framing implies the diagnostic scenario (a session is hanging on a lock), but there is no explicit when-to-use/when-not statement and no routing to or away from alternatives. Usage is inferable, not stated.

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