Skip to main content
Glama
joyous-coder

universal-db-mcp

by joyous-coder

get_sample_data

Retrieve sample rows from any database table to inspect data formats like dates, IDs, and currency precision. Sensitive fields are automatically masked to protect privacy.

Instructions

获取表的示例数据(已自动脱敏)。用于了解数据格式,如日期格式(2024-01-01 vs 20240101)、ID格式(UUID vs 自增)、金额精度等。敏感数据(手机号、邮箱、身份证等)会自动脱敏保护隐私。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo返回行数(可选,默认 3,最大 10)
columnsNo要查看的列(可选,默认全部列)
tableNameYes表名。支持 schema.table_name 格式指定 Schema(如 analytics.users)。

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv5.0.2

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations provided, the description carries the behavioral disclosure burden. It explicitly surfaces the non-obvious behavior that sensitive data is automatically masked, which is critical for an agent to know. It also implies a read-only sample-preview behavior, though it does not explicitly state side-effect safety or ordering/error behavior.

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?

The description is compact and front-loaded with the core action and masking caveat. The only minor weakness is a slight redundancy between '已自动脱敏' and the later sentence about sensitive fields being automatically masked.

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 three-parameter tool, the description covers the main purpose, example use cases, and the critical privacy behavior. It does not describe return shape or error cases, but this is not a serious gap given the simplicity of the operation and the schema's parameter coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3 and the schema already documents tableName, limit, and columns. The description does not add parameter-specific guidance beyond the general purpose of returning sample rows.

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?

The description clearly states the specific action ('获取表的示例数据') and the intended purpose: understanding data formats such as date format, ID format, and amount precision. It distinguishes the tool as a row-preview operation, but it does not explicitly contrast it with sibling tools like get_table_info or generate_sample_data.

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 gives clear usage context: use it when you need to understand data format through actual sample rows. It provides concrete examples of what to look for. However, it does not state exclusions or name alternative tools, such as using get_table_info for schema-only details or execute_query for arbitrary queries.

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

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/joyous-coder/universal-db-mcp'

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