mcp-builder-example-1-database-query-tool

Sub-skill of mcp-builder: Example 1: Database Query Tool (+1).

5 stars

Best use case

mcp-builder-example-1-database-query-tool is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Sub-skill of mcp-builder: Example 1: Database Query Tool (+1).

Teams using mcp-builder-example-1-database-query-tool should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/example-1-database-query-tool/SKILL.md --create-dirs "https://raw.githubusercontent.com/vamseeachanta/workspace-hub/main/.agents/skills/_archive/development/mcp-builder/example-1-database-query-tool/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/example-1-database-query-tool/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How mcp-builder-example-1-database-query-tool Compares

Feature / Agentmcp-builder-example-1-database-query-toolStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Sub-skill of mcp-builder: Example 1: Database Query Tool (+1).

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Example 1: Database Query Tool (+1)

## Example 1: Database Query Tool


```typescript
server.setRequestHandler(CallToolRequestSchema, async (request) => {
  if (request.params.name === "query_database") {
    const { sql, params } = request.params.arguments;
    const result = await db.query(sql, params);
    return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
  }
});
```


## Example 2: API Integration


```typescript
server.setRequestHandler(CallToolRequestSchema, async (request) => {
  if (request.params.name === "fetch_weather") {
    const { city } = request.params.arguments;
    const response = await fetch(`https://api.weather.com/v1/${city}`);
    const data = await response.json();
    return { content: [{ type: "text", text: `Temperature: ${data.temp}F` }] };
  }
});
```

Related Skills

artifact-inline-no-tools-plan-review

5
from vamseeachanta/workspace-hub

Recover adversarial plan reviews on large or sandbox-hostile repos by embedding grounded facts + full plan text directly in a compact prompt and explicitly forbidding reviewer tool use.

scvi-tools

5
from vamseeachanta/workspace-hub

Deep learning for single-cell analysis using scvi-tools: data integration, batch correction, multi-modal analysis, reference mapping, and more.

ai-tool-assessment

5
from vamseeachanta/workspace-hub

Assess and report on AI tool subscriptions, usage patterns, and cost-effectiveness. Use for reviewing AI subscriptions, analyzing tool usage, optimizing AI spend.

devtools

5
from vamseeachanta/workspace-hub

Optimize development environment, containers, CLI productivity, and git workflows using Docker, shell tooling, and editor customization.

mcp-builder

5
from vamseeachanta/workspace-hub

Guide for building high-quality Model Context Protocol (MCP) servers that allow LLMs to interact with external services. Use when creating new MCP integrations, tools, or servers for Codex or other AI systems.

rag-system-builder

5
from vamseeachanta/workspace-hub

Build Retrieval-Augmented Generation (RAG) Q&A systems with Codex or OpenAI. Use for creating AI assistants that answer questions from document collections, technical libraries, or knowledge bases.

knowledge-base-builder

5
from vamseeachanta/workspace-hub

Build searchable knowledge bases from document collections (PDFs, Word, text files). Use for creating technical libraries, standards repositories, research databases, or any large document collection requiring full-text search.

interactive-dashboard-builder

5
from vamseeachanta/workspace-hub

Create self-contained HTML/JavaScript dashboards with Chart.js, filters, and professional styling

multi-tool-architecture-assessment

5
from vamseeachanta/workspace-hub

Systematic comparison of competing tools/approaches before committing to a multi-account, multi-tool architecture. Uses parallel subagents for research, system-state audit, and data quality analysis. Produces a decision matrix with explicit trade-offs.

mkdocs-example

5
from vamseeachanta/workspace-hub

MkDocs example admonition syntax. Use when inserting code examples or worked demonstrations in MkDocs documentation.

web-artifacts-builder-self-contained-architecture

5
from vamseeachanta/workspace-hub

Sub-skill of web-artifacts-builder: Self-Contained Architecture (+1).

web-artifacts-builder-file-naming

5
from vamseeachanta/workspace-hub

Sub-skill of web-artifacts-builder: File Naming (+2).