Skip to main content
Glama

object-source

Read-only

Read a database object or live server activity—table details, definitions, running queries, waits, blocking, or plans—by server ID, with credentials pulled from the encrypted store.

Instructions

dbabrain common.cli object-source: 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": "object-source"
  }
}

Input Schema

NameRequiredDescriptionDefault
requestNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/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 beyond them: credentials are resolved server-side from inventory and encrypted secret store ('a request carries no password'), and sql_text is 'the one statement to compile - never run', which reassures the agent that query-plan mode does not execute SQL. It still omits rate limits, error behavior, and what re-running with the same target does, keeping it below 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.

Conciseness2/5

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

The purpose statement is front-loaded and the field list is bulleted, which helps, but the prose is cluttered with internal implementation leaks ('dbabrain.lib.data_sources.request_fill', 'rules R09', 'common.cli reads no configuration') that do not help an agent invoke the tool. Several fragments ('the inventory's (the 8i bridge)') are close to unparseable and add noise rather than signal.

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?

An output schema exists, so return values need not be explained, and the description does cover credential resolution and the key request fields. For a multi-mode tool, however, it never clearly states which mode is the default when `object`/`view` are absent, nor how failover between modes works, so an agent could still pick the wrong mode for a simple table lookup.

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 0% (a single opaque `request` object), so the description has to compensate, and it does: it enumerates target, credential_name, sql_access, database_name, object, view, sql_text, max_rows (1-1000, default 50), timeout_seconds, and connection, with usage notes for each. Some entries are cryptic ('the 8i bridge', 'SQL Server: else master'), but the field meanings are meaningfully richer than the schema's anyOf object.

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 line tries to state a compound purpose: 'One database object or the server's activity read: a table, a definition, what runs now, a plan.' That covers multiple distinct operations (object listing, table info, DB activity, query plan) under one tool, but none is described concretely enough to distinguish it from sibling tools like db-activity, query-plan, or table-info, which appear both as modes here and as separate tools.

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 statement of when to choose this tool over db-activity, query-plan, table-info, or describe-object, even though those are named siblings. The mode list ('object: table-info / object-source', 'view: db-activity') implies that mode selection happens inside this tool, but it never says whether this tool replaces or overlaps the siblings, leaving routing ambiguous.

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