Skip to main content
Glama
gregkop
by gregkop

sample-tool

Demonstrates how to interact with Sketchfab's 3D model platform through AI interfaces for searching, viewing details, and downloading 3D models.

Instructions

A sample tool for demonstration purposes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
inputYesInput parameter for the sample tool

Implementation Reference

  • The handler function for 'sample-tool' that takes an input string, prefixes it with 'Processed: ', and returns it as text content.
    async ({ input }) => { // Process the input const output = `Processed: ${input}`; // Return the result return { content: [ { type: "text", text: output, }, ], }; }
  • Zod input schema for 'sample-tool' defining a single string parameter.
    { input: z.string().describe("Input parameter for the sample tool"), },
  • index.ts:256-276 (registration)
    Registration of 'sample-tool' via server.tool call, specifying name, description, schema, and handler function.
    server.tool( "sample-tool", "A sample tool for demonstration purposes", { input: z.string().describe("Input parameter for the sample tool"), }, async ({ input }) => { // Process the input const output = `Processed: ${input}`; // Return the result return { content: [ { type: "text", text: output, }, ], }; } );

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/gregkop/sketchfab-mcp-server'

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