Skip to main content
Glama
pserein
by pserein

query_database

Query a local skincare database with read-only SQL SELECT statements to find products by name, brand, category, price, rank, ingredients, or skin type flags.

Instructions

Run a read-only SQL SELECT query against the local skincare SQLite database. The database has a 'products' table with columns: name, brand, Label (category), price, rank, ingredients, Combination, Dry, Normal, Oily, Sensitive (skin type flags, 0 or 1). Only SELECT statements are allowed. Example: SELECT name, brand, price FROM products WHERE Label = 'Moisturizer' AND rank >= 4.5 LIMIT 5

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries full burden. It clearly states read-only behavior and provides the database schema. It does not mention error handling or output format, but the core behavioral trait (read-only SQL) is well-defined.

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, uses plain language, includes a relevant example, and avoids redundant information. Every sentence adds value.

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?

Given the tool has an output schema (not detailed here), the description adequately covers input requirements and constraints. It could mention output format briefly, but for a simple SQL query tool, it is complete enough.

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?

The input schema has 0% coverage, but the description compensates by explaining the `sql` parameter expects a SELECT query, listing available columns, and providing an example. This adds significant meaning beyond the schema 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 tool runs a read-only SQL SELECT query against a specific local skincare SQLite database, listing the database schema. This distinguishes it from sibling tools which are higher-level search or check functions.

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 explicitly restricts usage to SELECT statements and states the database is local and read-only. While it does not mention when to use siblings, it provides sufficient context for appropriate use cases.

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/pserein/skincare-mcp'

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