Skip to main content
Glama
Cappybara12

OpenXAI MCP Server

by Cappybara12

get_framework_info

Retrieve details about OpenXAI framework including overview, features, research paper, installation, and quickstart guidance for evaluating AI explanation methods.

Instructions

Get information about OpenXAI framework

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
info_typeNoType of information to retrieve

Implementation Reference

  • The handler function that executes the get_framework_info tool. It takes an infoType parameter and returns the corresponding detailed text information about the OpenXAI framework (overview, features, paper, installation, or quickstart) wrapped in MCP content format.
      async getFrameworkInfo(infoType) {
        const info = {
          overview: `OpenXAI Framework Overview
    
    OpenXAI is a comprehensive and extensible open-source framework for evaluating and benchmarking post hoc explanation methods. It provides:
    
    šŸ” **Evaluation Framework**: Systematic evaluation of explanation methods with 22+ quantitative metrics
    šŸ“Š **Datasets**: Collection of synthetic and real-world datasets with ground truth explanations
    šŸ¤– **Models**: Pre-trained models for various machine learning tasks
    šŸ”¬ **Explainers**: Implementations of state-of-the-art explanation methods (LIME, SHAP, etc.)
    šŸ“ˆ **Leaderboards**: Public XAI leaderboards for transparent benchmarking
    šŸ› ļø **Extensibility**: Easy integration of custom datasets, models, and explanation methods
    
    Key Features:
    - Model-agnostic explanation methods
    - Ground truth faithfulness metrics
    - Predicted faithfulness metrics
    - Stability and robustness evaluation
    - Fairness assessment across subgroups
    - Comprehensive benchmarking pipeline`,
    
          features: `OpenXAI Key Features
    
    šŸŽÆ **Explanation Methods**:
    - LIME (Local Interpretable Model-agnostic Explanations)
    - SHAP (SHapley Additive exPlanations)
    - Integrated Gradients
    - Grad-CAM
    - Guided Backpropagation
    - And more...
    
    šŸ“Š **Evaluation Metrics**:
    - Faithfulness: PGI, PGU
    - Stability: RIS, RRS, ROS
    - Ground Truth: FA, RA, SA, SRA, RC, PRA
    - Fairness: Subgroup analysis
    
    šŸ—‚ļø **Datasets**:
    - Synthetic datasets with ground truth
    - Real-world datasets (German Credit, COMPAS, Adult Income)
    - Tabular, image, and text data support
    
    šŸ¤– **Models**:
    - Neural Networks (ANN)
    - Logistic Regression
    - Random Forest
    - Support Vector Machine
    - XGBoost
    
    šŸ† **Leaderboards**:
    - Public benchmarking platform
    - Transparent evaluation results
    - Community-driven improvements`,
    
          paper: `OpenXAI Research Paper
    
    Title: "OpenXAI: Towards a Transparent Evaluation of Model Explanations"
    
    Authors: Chirag Agarwal, Satyapriya Krishna, Eshika Saxena, Martin Pawelczyk, Nari Johnson, Isha Puri, Marinka Zitnik, Himabindu Lakkaraju
    
    Abstract: While several types of post hoc explanation methods have been proposed in recent literature, there is little to no work on systematically benchmarking these methods in an efficient and transparent manner. OpenXAI introduces a comprehensive framework for evaluating and benchmarking post hoc explanation methods with synthetic data generators, real-world datasets, pre-trained models, and quantitative metrics.
    
    šŸ“„ Paper: https://arxiv.org/abs/2206.11104
    🌐 Website: https://open-xai.github.io/
    šŸ“š GitHub: https://github.com/AI4LIFE-GROUP/OpenXAI
    
    Citation:
    @inproceedings{agarwal2022openxai,
      title={OpenXAI: Towards a Transparent Evaluation of Model Explanations},
      author={Agarwal, Chirag and Krishna, Satyapriya and Saxena, Eshika and others},
      booktitle={NeurIPS 2022 Datasets and Benchmarks Track},
      year={2022}
    }`,
    
          installation: `OpenXAI Installation Guide
    
    šŸ“¦ **Installation**:
    \`\`\`bash
    # Install from PyPI
    pip install openxai
    
    # Or install from source
    git clone https://github.com/AI4LIFE-GROUP/OpenXAI.git
    cd OpenXAI
    pip install -e .
    \`\`\`
    
    šŸ“‹ **Requirements**:
    - Python 3.7+
    - PyTorch or TensorFlow (for neural network models)
    - scikit-learn
    - pandas
    - numpy
    - matplotlib
    
    šŸ”§ **Optional Dependencies**:
    - For image explanations: Pillow, opencv-python
    - For text explanations: transformers, torch-text
    - For advanced visualizations: plotly, seaborn
    
    āœ… **Verification**:
    \`\`\`python
    import openxai
    print(openxai.__version__)
    \`\`\``,
    
          quickstart: `OpenXAI Quickstart Guide
    
    šŸš€ **Quick Start Example**:
    
    \`\`\`python
    from openxai.dataloader import ReturnLoaders
    from openxai import LoadModel, Explainer, Evaluator
    
    # 1. Load dataset
    trainloader, testloader = ReturnLoaders(data_name='german', download=True)
    
    # 2. Load pre-trained model
    model = LoadModel(data_name='german', ml_model='ann', pretrained=True)
    
    # 3. Generate explanations
    explainer = Explainer(method='lime', model=model)
    inputs, labels = next(iter(testloader))
    explanations = explainer.get_explanations(inputs)
    
    # 4. Evaluate explanations
    evaluator = Evaluator(model, metric='PGI')
    score = evaluator.evaluate(inputs=inputs, labels=labels, explanations=explanations)
    
    print(f"PGI Score: {score}")
    \`\`\`
    
    šŸŽÆ **Common Workflows**:
    
    1. **Benchmarking**: Compare multiple explanation methods
    2. **Evaluation**: Assess explanation quality with metrics
    3. **Leaderboards**: Submit results to public benchmarks
    4. **Research**: Develop new explanation methods
    
    šŸ“š **Next Steps**:
    - Explore different datasets and models
    - Try various explanation methods
    - Evaluate with different metrics
    - Contribute to leaderboards`
        };
    
        return {
          content: [
            {
              type: 'text',
              text: info[infoType] || info.overview
            }
          ]
        };
      }
  • The input schema for the get_framework_info tool, defining an optional 'info_type' parameter with allowed enum values.
    inputSchema: {
      type: 'object',
      properties: {
        info_type: {
          type: 'string',
          description: 'Type of information to retrieve',
          enum: ['overview', 'features', 'paper', 'installation', 'quickstart']
        }
      },
      required: []
  • index.js:217-231 (registration)
    Registration of the get_framework_info tool in the ListTools handler response, including name, description, and input schema.
    {
      name: 'get_framework_info',
      description: 'Get information about OpenXAI framework',
      inputSchema: {
        type: 'object',
        properties: {
          info_type: {
            type: 'string',
            description: 'Type of information to retrieve',
            enum: ['overview', 'features', 'paper', 'installation', 'quickstart']
          }
        },
        required: []
      }
    },
Behavior2/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. It only states what the tool does ('Get information') without explaining what information is returned, format details, rate limits, or error handling. This is inadequate for a tool with behavioral implications.

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 a single, efficient sentence with zero waste. It's appropriately sized and front-loaded, clearly stating the tool's purpose without unnecessary elaboration, earning full marks for conciseness.

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 lack of annotations and output schema, the description is incomplete. It doesn't explain the return values or behavioral traits, which are crucial for understanding how to use the tool effectively. This gap makes it insufficient for the tool's complexity.

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 has 100% description coverage, including an enum for 'info_type', so the schema already documents the parameter thoroughly. The description adds no additional meaning beyond the schema, such as examples or context for the enum values, resulting in a baseline score.

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

Purpose4/5

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

The description clearly states the verb 'Get' and the resource 'information about OpenXAI framework', making the purpose understandable. However, it doesn't differentiate from siblings like 'get_deployment_guide' or 'get_leaderboard' that also retrieve framework-related information, which prevents a perfect score.

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 scenarios for choosing this over siblings like 'get_deployment_guide' or 'list_datasets', nor does it specify prerequisites or exclusions, leaving usage context unclear.

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/Cappybara12/mcpopenxAI'

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