Skip to main content
Glama
oracle-mcp-server

oracle-mcp-server

by Tommi2Day

table_stats

Retrieves Oracle table optimizer statistics—rows, blocks, staleness, lock state, indexes, and column stats—to assess data distribution and diagnose query performance.

Instructions

Optimizer statistics of a table: rows, blocks, staleness, lock state, indexes (columns, clustering factor, status) and column statistics (distinct values, nulls, histograms).

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": {
      "table": "<table>"
    },
    "name": "table_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
tableYesTable name. Unquoted names are upper-cased.
schemaNoSchema (owner), default: current schema

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full behavioral burden. It discloses the categories of statistics returned, which is useful, but it does not state permissions, whether the operation is read-only with no side effects, or what happens for missing or inaccessible tables.

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?

A single sentence front-loads the resource and compactly lists the returned statistic categories. There is no filler or redundant wording.

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 statistics tool with no output schema, the description lists the main returned categories and sets expectations well. It could say more about missing-table or privilege behavior, but the core information is present.

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%, with both table and schema parameters documented, including unquoted-name upper-casing and the default schema. The description adds no parameter-specific semantics beyond the schema, so the baseline score of 3 is 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?

States the resource clearly as optimizer statistics of a table and enumerates the specific contents: rows, blocks, staleness, lock state, indexes, and column statistics. It is clear what the tool returns, though it does not explicitly distinguish itself from describe_table or locks.

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?

No explicit when-to-use or when-not-to-use guidance is provided, and no alternative tool is named. The intended context of inspecting optimizer statistics is implied, but an agent must infer it.

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