Skip to main content
Glama
oksure

Bible Korean MCP Server

by oksure

search-bible

Search Korean and English Bible verses by keyword. Finds matches in the first 10 chapters of each book across multiple Korean translations like GAE, NIR, KOR, CEV.

Instructions

Search for verses containing specific keywords. Searches the first 10 chapters of each book — not a full-Bible search.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesSearch query (Korean or English)
versionNoBible translation version (default: GAE)GAE

Implementation Reference

  • The call tool handler case for 'search-bible'. Validates input using searchBibleSchema, calls searchVerses() with query and version, formats the results with book/chapter/verse references, and returns a text response.
    case "search-bible": {
      const validated = validateInput(searchBibleSchema, args, 'search-bible');
      const { query, version = "GAE" } = validated;
    
      const results = await searchVerses(query, version);
    
      if (results.length === 0) {
        return {
          content: [
            {
              type: "text",
              text: `No results found for "${query}".`,
            },
          ],
        };
      }
    
      let result = `# Search Results for "${query}"\n`;
      result += `Found ${results.length} verses:\n\n`;
    
      for (const verse of results) {
        result += `**${verse.book} ${verse.chapter}:${verse.verse}**\n`;
        result += `${verse.text}\n\n`;
      }
    
      return {
        content: [{ type: "text", text: result }],
      };
    }
  • Zod schema for search-bible input validation. Defines 'query' (required string) and 'version' (optional enum of GAE/GAE1/NIR/KOR/CEV).
    export const searchBibleSchema = z.object({
      query: z.string().min(1),
      version: z.enum(['GAE', 'GAE1', 'NIR', 'KOR', 'CEV']).optional(),
    });
  • src/index.ts:90-109 (registration)
    Tool registration entry for 'search-bible' in the tools array. Includes name, description ('Search for verses containing specific keywords. Searches the first 10 chapters of each book'), and inputSchema definition.
    {
      name: "search-bible",
      description: "Search for verses containing specific keywords. Searches the first 10 chapters of each book — not a full-Bible search.",
      inputSchema: {
        type: "object",
        properties: {
          query: {
            type: "string",
            description: "Search query (Korean or English)",
          },
          version: {
            type: "string",
            description: "Bible translation version (default: GAE)",
            enum: ["GAE", "GAE1", "NIR", "KOR", "CEV"],
            default: "GAE",
          },
        },
        required: ["query"],
      },
    },
  • The searchVerses() function that performs the actual search. Iterates through all books (up to CONFIG.SEARCH.CHAPTERS_PER_BOOK=10 chapters each), fetches each chapter via fetchChapter(), and does a case-insensitive substring match on verse text. Returns matching verses with book, chapter, and verse references.
    export async function searchVerses(
      query: string,
      version: string = "GAE",
      books?: string[]
    ): Promise<Array<{ book: string; chapter: number; verse: number; text: string }>> {
      const results: Array<{ book: string; chapter: number; verse: number; text: string }> = [];
      const searchLower = query.toLowerCase();
    
      // Determine which books to search
      const booksToSearch = books || Object.keys(BIBLE_BOOKS);
    
      for (const bookName of booksToSearch) {
        const bookInfo = BIBLE_BOOKS[bookName];
        if (!bookInfo) continue;
    
        // Search first few chapters (limit to avoid too many requests)
        for (let chapter = 1; chapter <= CONFIG.SEARCH.CHAPTERS_PER_BOOK; chapter++) {
          try {
            const chapterData = await fetchChapter(bookInfo.code, chapter, version);
    
            for (const verse of chapterData.verses) {
              if (verse.text.toLowerCase().includes(searchLower)) {
                results.push({
                  book: chapterData.book,
                  chapter: chapterData.chapter,
                  verse: verse.number,
                  text: verse.text,
                });
              }
            }
          } catch (error) {
            // Skip chapters that don't exist or fail to fetch
            break;
          }
        }
      }
    
      return results;
    }
  • Search configuration constants. CHAPTERS_PER_BOOK: 10 (first 10 chapters only, not full-Bible search), MAX_BOOKS_TO_SEARCH: 66 (all books).
    SEARCH: {
      MAX_BOOKS_TO_SEARCH: 66, // Search all books
      CHAPTERS_PER_BOOK: 10, // First 10 chapters for demo
    },
Behavior4/5

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

With no annotations, the description provides the key behavioral limitation (not full-Bible search). It adds value beyond schema by disclosing the restricted scope, but does not address other traits like read-only nature or authentication needs.

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 extremely concise with two sentences, each adding distinct value: first states core action, second clarifies critical scope limitation. No wasted words.

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

Completeness3/5

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

The description covers the tool's purpose and limitation but lacks any mention of output format or return value. Since there is no output schema, this gap reduces completeness for an AI agent.

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

Parameters3/5

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

The input schema already fully describes both parameters (query and version) with descriptions and enums. The description adds no additional semantic information about parameters beyond what the schema provides.

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 uses a specific verb ('Search') and resource ('verses containing specific keywords') and clearly distinguishes the tool by stating the limitation (first 10 chapters only), separating it from siblings like get-chapter or get-verses.

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?

It explicitly states the scope (first 10 chapters) and implies this is for quick keyword searches, not a full-Bible search. However, it does not explicitly mention when to use alternatives like get-verses or compare-translations.

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/oksure/bible-ko-mcp'

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