Skip to main content
Glama
cocaxcode

@cocaxcode/database-mcp

by cocaxcode

search_schema

Find tables and views matching a pattern. Choose schema, object type, and detail level for names, columns, or full metadata with foreign keys and indexes.

Instructions

Busca tablas/vistas en el schema de la base de datos. Soporta 3 niveles de detalle: names (solo nombres), summary (nombres + columnas), full (todo + FK + indices).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
schemaNoSchema (solo PostgreSQL, default: public)
patternNoPatron de busqueda (ej: "user%", "%order%")
object_typeNoTipo de objeto a buscarall
detail_levelNoNivel de detallesummary
Behavior4/5

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

With no annotations, the description carries the full burden. It discloses behavior by explaining what each detail level returns (names, names+columns, full with FK and indices), which is additional context beyond the schema enum labels. It does not explicitly state read-only behavior, but the search semantics are inherently non-destructive and clearly implied.

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 concise: two sentences that front-load the purpose and then clarify the available detail levels. Every sentence adds value without 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 low-complexity search tool with all optional parameters, the description sufficiently covers the core purpose and output granularity. The absence of an output schema is partially addressed by describing what each detail level includes. It could mention the result format or read-only nature, but the information provided is adequate for the tool's simplicity.

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 meaningful semantics for the 'detail_level' parameter by expanding on what 'names', 'summary', and 'full' actually return, which the schema enum descriptions do not fully convey. This justifies a 4.

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 action 'Busca' (searches) and the resource 'tablas/vistas en el schema de la base de datos' (tables/views in the database schema). It distinguishes the tool from sibling tools focused on connection management or query execution by specifying its schema-discovery role.

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?

The description provides clear context for when to use the tool: when exploring the schema for tables/views. It also explains the three detail levels, guiding the agent on output granularity. However, it does not explicitly mention alternative tools or when not to use it, so it stops short of a 5.

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/cocaxcode/database-mcp'

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