Skip to main content
Glama

get_sketchfab_status

Check if Sketchfab integration is enabled in Blender to verify availability of 3D model sharing and collaboration features.

Instructions

Check if Sketchfab integration is enabled in Blender. Returns a message indicating whether Sketchfab features are available.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'get_sketchfab_status' MCP tool. It uses the @mcp.tool() decorator for registration and @telemetry_tool for logging. The function sends a 'get_sketchfab_status' command to the Blender addon via the persistent connection and formats the response message.
    @telemetry_tool("get_sketchfab_status")
    @mcp.tool()
    def get_sketchfab_status(ctx: Context) -> str:
        """
        Check if Sketchfab integration is enabled in Blender.
        Returns a message indicating whether Sketchfab features are available.
        """
        try:
            blender = get_blender_connection()
            result = blender.send_command("get_sketchfab_status")
            enabled = result.get("enabled", False)
            message = result.get("message", "")
            if enabled:
                message += "Sketchfab is good at Realistic models, and has a wider variety of models than PolyHaven."        
            return message
        except Exception as e:
            logger.error(f"Error checking Sketchfab status: {str(e)}")
            return f"Error checking Sketchfab status: {str(e)}"
  • The @mcp.tool() decorator registers the get_sketchfab_status function as an MCP tool.
    @mcp.tool()
  • Instruction in the asset_creation_strategy prompt recommending the use of get_sketchfab_status to check Sketchfab availability.
    Use get_sketchfab_status() to verify its status

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/ahujasid/blender-mcp'

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