MCP Tools Reference

v1 · 26 tools

AxHub MCP 서버가 노출하는 전체 tool 목록입니다. 각 tool은 입력 스키마 · 출력 · 필요 scope · 위험도를 포함합니다.

TableStable · v1승인 필요

alter_table

테이블 스키마를 바꿔요. 컬럼 추가·삭제, 외래키 추가·삭제가 가능해요. 프로덕션 DB 를 건드리니 신중하게.

필요 scope
write
평균 응답
비동기 (tasks 로 긴 작업 처리)
멱등성
아니요 — 재시도 시 dedupe_key 로 중복 방지
사이드 이펙트
있어요. 실제 배포·스키마·권한이 바뀌어요.

Input schema

app_id*
number
앱 ID
table_name*
string
테이블 이름
action*
enum
add_column · remove_column · add_reference · remove_reference
column_name
string
컬럼 이름
type
string
PostgreSQL 타입 (예: text, integer)

Output

Response · 200 OK
{}

Example

자연어 (Claude)
posts 테이블에 published_at timestamp 컬럼 추가해줘
MCP raw
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "alter_table",
    "arguments": {}
  }
}
ax CLI
curl -s -X POST "$AX_MCP_URL" \
  -H "Authorization: Bearer $AX_TOKEN" \
  -H "Mcp-Session-Id: $AX_SESSION" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"alter_table","arguments":{}}}'

Error codes

UNAUTHORIZED401토큰이 없거나 만료됐어요. 다시 로그인하고 시도해 주세요.
FORBIDDEN_SCOPE403이 작업에 필요한 scope 가 토큰에 없어요 (read/write/admin).
APP_KEY_FORBIDDEN403app-key 토큰으론 쓸 수 없는 tool 이에요. OAuth 토큰이 필요해요.

Related tools