Skip to main content
Glama
doris-mcp

doris-mcp

by fhm0520

doris_inspect_external_catalog

Read-onlyIdempotent

Lists databases in a catalog or tables in a specified database, letting you inspect external catalog metadata before running read-only SQL queries.

Instructions

浏览 catalog:只传 catalog 时列库(SHOW DATABASES FROM c); 带 database 时列表(SHOW TABLES FROM c.db)。

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": {
      "catalog": "<catalog>"
    },
    "name": "doris_inspect_external_catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault
catalogYescatalog 名,如 internal 或 hive
databaseNo可选,库名;不传则列出该 catalog 下的库

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so safety is covered. The description still adds value by disclosing the exact SQL statements executed for each mode, letting the agent understand cost and semantics of the call beyond the annotation flags.

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?

Two short lines, front-loaded with the mode rule and backed by the corresponding SQL. No filler and no restatement of the tool name.

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?

An output schema exists, so return values need no explanation, and both invocation modes are fully covered. The remaining shortfall is the lack of routing guidance against the sibling listing tools, which matters given the overlap in this tool family.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline would be 3, but the description goes further by binding parameter presence to behavior: catalog alone lists databases, catalog plus database lists tables. That conditional meaning is exactly what the schema's field descriptions only partially convey.

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 a specific verb and resource ('browse catalog') and spells out both modes with the exact SQL emitted (SHOW DATABASES FROM c / SHOW TABLES FROM c.db). The only gap is that it never distinguishes itself from the overlapping siblings doris_list_databases and doris_list_tables, which an agent would also consider for this task.

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?

The two-mode structure ('只传 catalog 时列库 / 带 database 时列表') implies a sensible progressive drill-down usage, so an agent can infer when each mode applies. However, it gives no explicit when-to-use versus the sibling list_databases/list_tables tools, and no guidance on when this external-catalog path is preferred.

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