Skip to main content
Glama

table-info

Read-only

Reads table metadata, object definitions, current database activity, and query plans using stored credentials, enabling database inspection without exposing passwords.

Instructions

dbabrain common.cli table-info: One database object or the server's activity read: a table, a definition, what runs now, a plan. server_id (or target) names the server; its connection or host login is completed from this node's inventory and encrypted secret store, so a request carries no password. Request fields (pass them as request):

  • target: The machine or instance: a server_id, or <db_type> <ip>[:port].

  • credential_name: Which login in users.json; default: the instance's own.

  • sql_access: How to reach the SQL engine - the inventory's (the 8i bridge).

  • database_name: The database to read in; SQL Server: else master.

  • object: table-info / object-source: the object, name, schema.name or [schema].[name].

  • view: db-activity: requests (default) | blocking | waits | top_queries.

  • sql_text: query-plan: the one statement to compile - never run.

  • max_rows: db-activity: rows at most, 1 to 1000 (default 50).

  • timeout_seconds: How long to wait.

  • connection: The database login, complete: db_type, host, port, username, password. The app that calls fills it from its own data/ (dbabrain.lib.data_sources.request_fill); common.cli reads no configuration (rules R09).

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": "table-info"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description adds genuinely useful context: no password is carried because logins resolve from the node's inventory and encrypted secret store, sql_text is "never run," and connection fill is the caller's responsibility per rules R09. These are real behavioral facts the agent needs before invoking, though a few field-to-tool mappings add noise.

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

Conciseness3/5

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

The field list is structured and front-loaded with the credential/connection model, but it is dense prose with awkward punctuation and includes documentation for fields irrelevant to table-info. Information that should be shared context is duplicated across tools rather than trimmed.

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 single-request-parameter tool with an output schema, the description covers credentials, connection completion, and most field semantics adequately. However, the ambiguity about which request fields actually apply to table-info versus its siblings leaves a real gap in calling it correctly.

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 description coverage is 0% (the single `request` property is an undescribed open object), so the description carries the burden — and it does document target, credential_name, sql_access, database_name, object formats, max_rows with range 1-1000 and default 50, and timeout_seconds. The meaning is largely added here, though scope notes for some fields (view, sql_text) reference other tools and slightly confuse which apply to this call.

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

Purpose3/5

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

The opening sentence states the verb/resource combination ("One database object or the server's activity read: a table, a definition, what runs now, a plan"), but it lumps table-info together with sibling concerns like activity and plans, so the agent cannot cleanly separate it from db-activity, object-source, or query-plan. The `object` field hint ("table-info / object-source") does tie the tool to object metadata, which is the only genuinely distinguishing signal.

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 explicit when-to-use or when-not-to-use guidance. Instead of routing the agent among siblings, the description enumerates request fields that belong to other tools (view: db-activity, sql_text: query-plan), which blurs rather than clarifies selection.

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

Deploy Server

Other Tools