Skip to main content
Glama
d4nshields

Bibliomantic MCP Server

server_statistics

Monitor server performance metrics and usage data to analyze system health and optimize resource allocation for the Bibliomantic MCP Server.

Instructions

Enhanced server statistics

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • Handler function for the server_statistics tool. Automatically registered via @mcp.tool() decorator in FastMCP. Returns formatted statistics about the bibliomantic server.
    def server_statistics() -> str:
        """
        Get bibliomantic server statistics and system information.
        
        Provides information about the server's capabilities, the I Ching
        database, and divination system status.
        
        Returns:
            Complete server statistics and system information
        """
        stats = diviner.get_divination_statistics()
        
        return f"""📊 **Bibliomantic Server Statistics**
    
    **System Status:** {stats['system_status'].title()}
    **Total Hexagrams:** {stats['total_hexagrams']}
    **Divination Method:** {stats['divination_method']}
    **Randomness Source:** {stats['randomness_source']}
    **Bibliomantic Approach:** {stats['bibliomantic_approach']}
    
    **Server Capabilities:**
    - I Ching Divination (traditional three-coin method)
    - Bibliomantic Consultation (Philip K. Dick approach)
    - Hexagram Details Lookup (all 64 hexagrams)
    - Resource Access (hexagram database and individual entries)
    - Prompt Templates (career, creative, and general guidance)
    
    **Framework:** FastMCP (Official MCP Python SDK)
    **Protocol Version:** MCP 2024-11-05
    **Transport:** Standard I/O (stdio)
    
    **Historical Context:**
    This server implements the bibliomantic divination approach described in
    Philip K. Dick's "The Man in the High Castle", combining ancient I Ching
    wisdom with modern AI capabilities for guided decision-making."""
  • Handler function for the server_statistics tool in the ethical variant. Automatically registered via @mcp.tool() decorator. Includes ethical framework in statistics.
    def server_statistics() -> str:
        """
        Get bibliomantic server statistics and system information.
        
        Provides information about the server's capabilities, the I Ching
        database, and divination system status.
        
        Returns:
            Complete server statistics and system information with ethical context
        """
        stats = diviner.get_divination_statistics()
        
        return f"""📊 **Bibliomantic Server Statistics**
    
    **System Status:** {stats['system_status'].title()}
    **Total Hexagrams:** {stats['total_hexagrams']}
    **Divination Method:** {stats['divination_method']}
    **Randomness Source:** {stats['randomness_source']}
    **Bibliomantic Approach:** {stats['bibliomantic_approach']}
    
    **Server Capabilities:**
    - I Ching Divination (traditional three-coin method)
    - Bibliomantic Consultation (Philip K. Dick approach)
    - Hexagram Details Lookup (all 64 hexagrams)
    - Resource Access (hexagram database and individual entries)
    - Prompt Templates (career, creative, and general guidance)
    
    **Ethical Framework:**
    - All responses include appropriate disclaimers
    - Educational and philosophical focus maintained
    - No supernatural or predictive claims made
    - Users guided toward professional consultation for important decisions
    
    **Framework:** FastMCP (Official MCP Python SDK)
    **Protocol Version:** MCP 2024-11-05
    **Transport:** Standard I/O (stdio)
    
    **Historical Context:**
    This server implements the bibliomantic divination approach described in
    Philip K. Dick's "The Man in the High Castle", combining ancient I Ching
    wisdom patterns with modern AI capabilities for philosophical exploration
    and creative reflection."""
  • Enhanced handler function for the server_statistics tool. Automatically registered via @mcp.tool(). Provides detailed statistics including enhanced features status.
    def server_statistics() -> str:
        """Enhanced server statistics"""
        stats = diviner.get_divination_statistics()
        
        enhanced_features = ""
        if ENHANCED_MODE:
            enhanced_features = """
    **Enhanced Features:**
    - Traditional Chinese names and Unicode symbols
    - Complete judgment and image texts  
    - Changing line interpretations
    - Trigram analysis and interactions
    - Contextual interpretations (career, relationships, creative, business, personal)
    - Traditional and modern commentary
    - King Wen sequence binary mapping
    - Context-aware query analysis"""
        
        return f"""📊 **Enhanced Bibliomantic Server Statistics**
    
    **System Status:** {stats['system_status'].title()}
    **Enhanced Mode:** {"Active" if ENHANCED_MODE else "Compatibility Mode"}
    **Total Hexagrams:** {stats['total_hexagrams']}
    **Divination Method:** {stats['divination_method']}
    **Randomness Source:** {stats['randomness_source']}
    **Bibliomantic Approach:** {stats['bibliomantic_approach']}{enhanced_features}
    
    **Server Capabilities:**
    - Enhanced I Ching Divination (traditional three-coin method with changing lines)
    - Rich Bibliomantic Consultation (Philip K. Dick approach with full traditional elements)
    - Complete Hexagram Details (all 64 with Chinese names and Unicode symbols)
    - Enhanced Resource Access (hexagram database with traditional content)
    - Contextual Prompt Templates (career, creative, and general guidance)
    
    **Ethical Framework:**
    - All responses include appropriate disclaimers
    - Educational and philosophical focus maintained
    - No supernatural or predictive claims made
    - Users guided toward professional consultation for important decisions
    
    **Framework:** FastMCP (Official MCP Python SDK)
    **Protocol Version:** MCP 2024-11-05
    **Transport:** Standard I/O (stdio)
    
    **Historical Context:**
    This enhanced server implements the bibliomantic divination approach described in
    Philip K. Dick's "The Man in the High Castle", combining authentic traditional I Ching
    wisdom with modern AI capabilities for deep philosophical exploration and creative reflection.
    
    **Quality Enhancement:**
    Traditional interpretations now include judgment, image, changing lines, trigram analysis,
    contextual guidance, and multiple commentary perspectives for authentic I Ching experience."""
Behavior1/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure but fails completely. 'Enhanced server statistics' gives no indication of whether this is a read operation, a calculation, a report generation, or something else. It doesn't mention permissions required, rate limits, side effects, or what 'enhanced' means in practical terms. The description provides zero behavioral context beyond the vague name.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

While technically concise (only two words), this is a case of under-specification rather than effective conciseness. The description doesn't provide enough information to be useful. Every word should earn its place, but here the words don't convey meaningful information - 'Enhanced' is vague and 'server statistics' merely repeats the tool name. This isn't front-loaded with critical information; it's just insufficient.

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 that this tool has no parameters, has an output schema (which helps), and has 100% schema coverage, the description should be more complete. However, 'Enhanced server statistics' fails to explain what the tool actually does, when to use it, or what makes it 'enhanced'. For a tool with zero parameters, the description could easily provide more context about what statistics are returned, their format, or their purpose. The existence of an output schema helps, but the description itself is inadequate.

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?

The tool has zero parameters (schema description coverage is 100%), so there are no parameters to document. The description doesn't need to compensate for any parameter documentation gaps. While it could theoretically mention that no parameters are required, this is adequately covered by the structured schema information. The baseline for zero-parameter tools is 4.

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

Purpose2/5

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

The description 'Enhanced server statistics' is tautological - it essentially restates the tool name 'server_statistics' with the adjective 'Enhanced'. It doesn't specify what action the tool performs (e.g., 'retrieve', 'generate', 'analyze') or what specific statistics it provides. While it distinguishes from the three sibling tools (which are all related to divination/consultation), it doesn't clearly articulate what makes these statistics 'enhanced' compared to basic statistics.

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

Usage Guidelines1/5

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

The description provides absolutely no guidance on when to use this tool versus alternatives. It doesn't mention any context, prerequisites, or scenarios where this tool would be appropriate. Given that the sibling tools are all divination-related (bibliomantic_consultation, get_hexagram_details, i_ching_divination), there's no indication of whether this tool is part of that same domain or serves a different purpose entirely.

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/d4nshields/bibliomantic-mcp-server'

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