Skip to main content
Glama
hyunjongmoon

mcp-mssql-server

by hyunjongmoon

get_sp_definition

Retrieve stored procedure definitions with automatic PII masking and optional backup to preserve raw source before modification.

Instructions

Stored Procedure(또는 함수/뷰)의 원본 정의(definition)와 파라미터 목록을 반환. 응답 텍스트는 PII(주민번호·휴대폰·이메일)가 자동 마스킹된다. backup=true 시 마스킹 전 raw 원본을 current 폴더에 .sql 파일로 백업한다(SP 수정 전 원본 보존용). 응답의 backedUp/backupPath 로 결과 확인.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dbYesDB 키
spYes스키마.SP명 (예: dbo.usp_GetUser)
backupNotrue면 raw 원본을 current 폴더(SP_BACKUP_DIR)에 .sql 백업. SP 수정 전 원본 보존용. 기본 false.
Behavior4/5

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

Discloses PII masking and optional backup behavior with response fields, providing good transparency beyond the input schema.

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?

Single paragraph covering multiple points efficiently; could benefit from clearer separation but not overly verbose.

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?

Describes response fields and PII masking, compensating for lack of output schema; complete for a 3-param tool.

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%; description adds usage context for backup parameter and an example for sp parameter, adding value beyond schema.

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?

Description clearly states the tool returns original definition and parameter list of a stored procedure/function/view, distinguishing it from sibling tool get_table_metadata for tables.

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?

Implies usage for retrieving definitions and for backup before modification, but does not explicitly state when not to use or compare to alternatives.

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/hyunjongmoon/mcp-mssql-server'

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