Skip to main content
Glama
hjsh200219

Saju Fortune-Telling MCP Server

by hjsh200219

manage_settings

Configure interpretation settings for Saju fortune-telling analysis by adjusting preset modes or customizing individual calculation parameters.

Instructions

해석 설정 관리 (get/set)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYes
presetNo
customNo

Implementation Reference

  • Core handler function that executes the manage_settings tool logic, supporting 'get' and 'set' actions for interpretation settings.
    export function handleManageSettings(args: ManageSettingsArgs): string {
      const { action, preset } = args;
      const settings = InterpretationSettings.getInstance();
    
      switch (action) {
        case 'get':
          return JSON.stringify(settings.getSettings());
    
        case 'set':
          if (preset) {
            settings.loadPreset(preset);
          }
          // custom은 현재 설정 구조와 맞지 않아 프리셋만 지원
          return JSON.stringify(settings.getSettings());
    
        default:
          throw new Error(`알 수 없는 action: ${action}`);
      }
    }
  • MCP tool schema definition for manage_settings, including inputSchema with action, preset, and custom properties.
    manage_settings: () => ({
      name: 'manage_settings',
      description: '해석 설정 관리 (get/set)',
      inputSchema: {
        type: 'object',
        properties: {
          action: { type: 'string', enum: ['get', 'set'] },
          preset: { type: 'string', enum: ['ziping', 'dts', 'qtbj', 'modern', 'shensha', 'balanced'] },
          custom: {
            type: 'object',
            properties: {
              ziping: { type: 'number', minimum: 0, maximum: 1 },
              dts: { type: 'number', minimum: 0, maximum: 1 },
              qtbj: { type: 'number', minimum: 0, maximum: 1 },
              modern: { type: 'number', minimum: 0, maximum: 1 },
              shensha: { type: 'number', minimum: 0, maximum: 1 },
            },
          },
        },
        required: ['action'],
      },
    }),
  • TypeScript interface defining the input arguments for the handleManageSettings function.
    export interface ManageSettingsArgs {
      action: SettingsAction;
    
      // set용
      preset?: string;
      custom?: {
        ziping?: number;
        dts?: number;
        qtbj?: number;
        modern?: number;
        shensha?: number;
      };
    }
  • Central tool dispatcher that routes 'manage_settings' calls to the specific handleManageSettings function.
    export async function handleToolCall(name: string, args: unknown): Promise<string> {
      switch (name) {
        case 'analyze_saju':
          return await handleAnalyzeSaju(args as Parameters<typeof handleAnalyzeSaju>[0]);
    
        case 'manage_settings':
          return handleManageSettings(args as Parameters<typeof handleManageSettings>[0]);
    
        case 'check_compatibility':
          return handleCheckCompatibility(args as Parameters<typeof handleCheckCompatibility>[0]);
    
        case 'convert_calendar':
          return handleConvertCalendar(args as Parameters<typeof handleConvertCalendar>[0]);
    
        case 'get_daily_fortune':
          return handleGetDailyFortune(args as Parameters<typeof handleGetDailyFortune>[0]);
    
        case 'get_dae_un':
          return handleGetDaeUn(args as Parameters<typeof handleGetDaeUn>[0]);
    
        case 'get_fortune_by_period':
          return handleGetFortuneByPeriod(args as Parameters<typeof handleGetFortuneByPeriod>[0]);
    
        default:
          throw new Error(`알 수 없는 도구: ${name}`);
      }
    }
  • Re-export of the handleManageSettings function for centralized imports.
    export { handleManageSettings } from './manage_settings.js';
Behavior2/5

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

No annotations are provided, so the description carries the full burden. 'Manage (get/set)' implies both read and write operations, but it doesn't disclose behavioral traits like permission requirements, side effects, rate limits, or what happens when settings are changed. For a tool with mutation capability (set action) and no annotations, this is a significant gap in transparency.

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 extremely concise - just two words in Korean plus (get/set) in parentheses. It's front-loaded with the core purpose. While efficient, it might be too brief given the tool's complexity (3 parameters with nested objects).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has 3 parameters with 0% schema description coverage, no annotations, no output schema, and manages settings that likely affect sibling analysis tools, the description is incomplete. It doesn't explain what interpretation settings are, how they affect other tools, or provide enough context for proper usage. The conciseness comes at the cost of completeness.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate. The description mentions 'get/set' which aligns with the 'action' parameter enum, but it doesn't explain the meaning of 'preset' options (ziping, dts, etc.) or the 'custom' object structure. With 3 parameters (action, preset, custom) and nested objects, the description adds minimal value beyond what the schema's enum values already imply.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description '해석 설정 관리 (get/set)' translates to 'Interpretation settings management (get/set)' which states the tool manages interpretation settings with get/set operations. It's somewhat vague about what 'interpretation settings' specifically refer to (likely related to sibling tools like analyze_saju or get_fortune_by_period), but it does specify the verb (manage) and resource (interpretation settings). No sibling differentiation is provided.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites, context, or exclusions. Given sibling tools like analyze_saju and get_fortune_by_period, there's no indication of how this settings management relates to those analysis tools.

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/hjsh200219/fortuneteller'

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