Skip to main content
Glama

getScene

Retrieve specific 3D scenes from Spline design tool using scene IDs to access and work with existing 3D designs and animations.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sceneIdYesScene ID

Implementation Reference

  • MCP tool registration and handler implementation for 'getScene'. Defines input schema (sceneId: string), fetches scene details using apiClient.getScene(sceneId), formats as JSON text content, handles errors.
    'getScene', { sceneId: z.string().min(1).describe('Scene ID'), }, async ({ sceneId }) => { try { const scene = await apiClient.getScene(sceneId); return { content: [ { type: 'text', text: JSON.stringify(scene, null, 2) } ] }; } catch (error) { return { content: [ { type: 'text', text: `Error retrieving scene: ${error.message}` } ], isError: true }; } } );
  • Supporting API client method getScene(sceneId) that performs GET request to Spline API /scenes/{sceneId} endpoint to retrieve scene data.
    async getScene(sceneId) { return this.request('GET', `/scenes/${sceneId}`); }
  • src/index.js:92-92 (registration)
    Top-level registration call: registerSceneTools(server) which includes registering the getScene tool.
    registerSceneTools(server);

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/aydinfer/spline-mcp-server'

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