Skip to main content
Glama
eklemen
by eklemen

search_schema

Search database schema for a case-insensitive substring. Matches table names, column names, comments, constraints, and indexes. Optionally restrict to a single schema.

Instructions

Search across the schema for a term (case-insensitive substring). Matches table names, column names, table/column comments, constraint names, and index names. Optionally restrict to a single schema.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
termYesSubstring to search for (case-insensitive).
schemaNoRestrict the search to this schema. If omitted, searches all non-system schemas.
Behavior3/5

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

Annotations are absent, so the description carries the full burden. It discloses case-insensitive substring matching and the scope of search (non-system schemas by default). However, it does not mention result ordering, pagination, or limitations like maximum term length or performance impact.

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?

The description is two concise sentences. The first sentence states the core action and case-insensitivity, the second lists match targets and optional restriction. Every part earns its place, with no redundancy.

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?

For a simple 2-parameter tool with no output schema, the description covers the search functionality well. It could optionally mention that results include the object type or location, but overall it is sufficiently complete for an agent to understand the tool's behavior.

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?

While schema coverage is 100% with descriptions for both parameters, the description adds value by explaining what the term searches across (table names, column names, etc.), which is not in the schema. This enriches the meaning beyond the parameter descriptions alone.

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 clearly states the verb 'search' and the resource 'schema', and specifies what is matched (table names, column names, comments, constraints, indexes). It distinguishes itself from sibling tools like list_tables or describe_table by focusing on a broad search across schema metadata.

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 description implies usage (searching for a term across schema objects) but lacks explicit guidance on when to use it versus alternatives or when not to use it. No exclusions or context-aware recommendations are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/eklemen/db-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server