Skip to main content
Glama

search_schema

Find tables and columns by name substring across all non-system schemas to locate the field you need when you don't know which table contains it.

Instructions

Find tables and columns whose name contains a substring, across every non-system schema. Use it when you know the field you need but not which table holds it. Note that "_" and "%" are wildcards.

Input Schema

NameRequiredDescriptionDefault
schemaNoRestrict the search to one schema.
patternYesSubstring to look for in table and column names.
connection_idYesConnection id. See list_connections.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the non-system-schema exclusion and the wildcard behavior of '_' and '%', but omits case sensitivity, matching limits, and result-size behavior for what could be a broad sweep.

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?

Three short sentences, front-loaded with what it does, then when to use it, then the one non-obvious caveat. No filler.

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?

Three fully documented parameters plus an output schema mean return values need no explanation; scope and wildcard semantics are covered. Only case sensitivity and result limits remain unstated.

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 adds genuine value by warning that '_' and '%' in the pattern act as wildcards, which the schema does not state. The optional schema restriction is left to the schema.

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 (find) and resource (tables and columns) with explicit scope: 'across every non-system schema.' This separates it from list_tables/describe_table by implication, though no sibling is named directly.

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?

'Use it when you know the field you need but not which table holds it' gives a clear selection context. It lacks explicit when-not guidance or a named alternative (e.g., list_tables) to complete the routing story.

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