Skip to main content
Glama
shibbirweb

mcp-db-read-only

by shibbirweb

Show Current Connection

current_connection
Read-onlyIdempotent

Check which database server, engine, and database the current read-only session is connected to, ensuring you know the active target before running queries.

Instructions

Show which database server, engine and database the read-only tools are currently pointed at

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already mark the tool as read-only, idempotent, and non-destructive, so the safety profile is covered. The description adds the useful context that the returned state governs the read-only tools, but it does not disclose output shape, failure behavior, or any other operational traits.

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 that front-loads the action and clearly states the scope of the returned information. There is no filler or redundancy.

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

Completeness5/5

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

For a parameterless, read-only introspection tool with rich annotations and no output schema, the description fully tells an agent what to expect: server, engine, and database of the current connection. Nothing else is required to invoke 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?

The tool has zero parameters, so the schema leaves nothing undocumented and the description needs no parameter-level detail. Baseline 4 is appropriate for a parameterless tool.

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

Purpose5/5

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

The description uses a specific verb ('Show') with a clear resource: the database server, engine, and database that the read-only tools are currently pointed at. This distinguishes it from sibling tools like list_connections (which lists connections), use_connection, and list_databases, so an agent knows exactly what state it will read.

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 phrase 'currently pointed at' implies this is for inspecting active session context, but it never states when to prefer it over list_connections, list_databases, or use_connection. There is no explicit when-to-use or exclusionary guidance, so the usage context is only inferred.

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