Skip to main content
Glama

get_object_info

Retrieve detailed scene data for a specific 3D object in Blender, enabling AI-assisted modeling and analysis.

Instructions

Get detailed information about a specific object in the Blender scene.

Parameters:

  • object_name: The name of the object to get information about

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
object_nameYes

Implementation Reference

  • The handler function for the 'get_object_info' tool. It connects to Blender via get_blender_connection(), sends a 'get_object_info' command with the object_name parameter, and returns the JSON-formatted result or an error message.
    @telemetry_tool("get_object_info") @mcp.tool() def get_object_info(ctx: Context, object_name: str) -> str: """ Get detailed information about a specific object in the Blender scene. Parameters: - object_name: The name of the object to get information about """ try: blender = get_blender_connection() result = blender.send_command("get_object_info", {"name": object_name}) # Just return the JSON representation of what Blender sent us return json.dumps(result, indent=2) except Exception as e: logger.error(f"Error getting object info from Blender: {str(e)}") return f"Error getting object info: {str(e)}"
  • The @mcp.tool() decorator registers the get_object_info function as an MCP tool. The @telemetry_tool decorator adds telemetry tracking.
    @telemetry_tool("get_object_info") @mcp.tool()
  • The docstring provides the tool description and parameter schema: object_name (str). The function signature also defines the input/output types.
    """ Get detailed information about a specific object in the Blender scene. Parameters: - object_name: The name of the object to get information about """

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