Skip to main content
Glama
db-conn-mcp

db-conn-mcp

search_value

Read-onlyIdempotent

Find where a value appears across database tables using fuzzy, case-insensitive substring matching. Returns the schema, table, column, match counts and sample values for each hit.

Instructions

Find WHERE a value appears across tables (fuzzy, case-insensitive substring).

Returns meta, results and truncated: one result per column containing the value, with schema, table, column, matches (a count) and samples. For speed on large databases, first narrow with list_tables/find_columns and pass a tables shortlist; otherwise it scans all non-system tables (bounded, may return partial results flagged truncated, which meta.truncated repeats).

Matches arrive on the text channel only, inside the untrusted-data banner: this tool emits no structuredContent.

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": {
      "database": "<database>",
      "value": "<value>"
    },
    "name": "search_value"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYesText to look for inside column values, case-insensitively.
tablesNoOnly search these tables: bare names as list_tables shows them, without a schema prefix. Omit to scan every non-system table.
databaseYesName of a configured database, exactly as list_databases returns it (case-sensitive). Not a DSN, host or server-side database name. An unknown name is an error that lists the configured names.
limit_per_columnNoSample values to return per matching column (default 5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.8.1
    • addedInput schema / properties / database / description
      Added value: +"Name of a configured database, exactly as list_databases returns it (case-sensitive). Not a DSN, host or server-side database name. An unknown name is an error that lists the configured names."
    • addedInput schema / properties / limit_per_column / description
      Added value: +"Sample values to return per matching column (default 5)."
    • addedInput schema / properties / tables / description
      Added value: +"Only search these tables: bare names as list_tables shows them, without a schema prefix. Omit to scan every non-system table."
    • addedInput schema / properties / value / description
      Added value: +"Text to look for inside column values, case-insensitively."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/non-destructive, and the description adds real behavior beyond them: full scans are bounded, results can be partial and flagged `truncated` (repeated in `meta.truncated`), and there is no structuredContent — matches arrive only on the text channel inside an untrusted-data banner. That trust-boundary disclosure is exactly the kind of context annotations cannot convey.

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

Conciseness4/5

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

Front-loaded with the core purpose, then return shape, then performance guidance, then the trust caveat. Slightly dense and the truncation flag is stated twice (once inline, once via `meta.truncated`), but that redundancy is minor and defensible.

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?

With no output schema, the description takes on return-value disclosure and does it: enumerates `meta`, `results`, `truncated`, and the per-column fields `schema`, `table`, `column`, `matches`, `samples`. Combined with the scan-bound and channel caveats, an agent has everything needed to call and interpret this 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 coverage is 100%, so the baseline is 3; the description earns extra by explaining why `tables` matters (full-scan cost and the bare-name shortlist) and what omitting it does. It adds little on `limit_per_column` beyond the schema, but the operational framing of `tables` is genuine value.

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 first sentence names a specific verb and resource ('Find WHERE a value appears across tables') plus the match semantics (fuzzy, case-insensitive substring), which is enough to separate it from schema-introspection siblings like find_columns and list_tables.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives concrete when/how guidance: narrow with list_tables/find_columns and pass a `tables` shortlist for speed on large databases, and warns that omitting it scans every non-system table. It stops short of an explicit 'do not use this when...' exclusion, which keeps it at 4.

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