Skip to main content
Glama
oracle-mcp-server

oracle-mcp-server

by Tommi2Day

session_activity

Inspect current Oracle user sessions to see status, SQL ID, wait events, and blocking sessions, plus top non-idle waits since instance startup.

Instructions

Current user sessions (V$SESSION): status, sql_id, wait event, blocking session, plus the top non-idle wait events since instance startup (V$SYSTEM_EVENT).

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum number of sessions (default 50)
usernameNoOnly sessions of this user
include_idleNoInclude INACTIVE sessions (default false)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.2/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 behavioral burden, and it partially meets it: it discloses that the tool reads two distinct sources (V$SESSION plus V$SYSTEM_EVENT) and that the wait-event data spans 'since instance startup' – a non-obvious scope that affects interpretation. It does not state that the tool is read-only, nor does it describe the shape or ordering of the combined result, so meaningful gaps remain.

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?

A single dense sentence with no filler, front-loading the primary resource before the secondary one. The Oracle view names (V$SESSION, V$SYSTEM_EVENT) are informative to a DB-savvy agent rather than padding. Slightly crammed but every clause adds information.

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

Completeness3/5

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

For a 3-parameter, no-annotation, no-output-schema tool, the description does convey which fields and result sets appear, which is the main thing an agent needs. However, it omits return structure, ordering, and whether the two data sets are combined or separate, and it says nothing about the read-only nature of the call.

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 all three parameters (limit, username, include_idle) are already documented in the schema, setting baseline 3. The description adds nothing about scoping – notably it does not clarify whether `limit` constrains session rows only or also the wait-event section. Baseline is therefore appropriate.

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 the concrete resource (V$SESSION) and enumerates the fields returned (status, sql_id, wait event, blocking session), so an agent knows exactly what data comes back. It also discloses the secondary result set from V$SYSTEM_EVENT, which distinguishes it from siblings like top_sql or locks. It lacks an explicit verb phrase (e.g. 'List current sessions') and never names a sibling, so it falls short of a 5.

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

Usage Guidelines2/5

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

There is no statement of when to use this tool versus alternatives such as locks, top_sql, or incidents, even though those siblings overlap in diagnostic territory. Usage is only inferable from the data returned. No exclusions or prerequisites are given.

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