Skip to main content
Glama

doSomething

Find the capital of Austria using MCP Starter server tools; input parameters to search and retrieve accurate results for AI assistant integration.

Instructions

What is the capital of Austria?

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
param1YesThe name of the track to search for
param2YesThe name of the track to search for

Implementation Reference

  • The handler function for the 'doSomething' tool. It takes param1 and param2 and returns a text content with a greeting message.
    async ({ param1, param2 }) => { return { content: [{ type: 'text', text: `Hello ${param1} and ${param2}` }], } },
  • Zod schema defining the input parameters param1 and param2 as strings for the 'doSomething' tool.
    { param1: z.string().describe('The name of the track to search for'), param2: z.string().describe('The name of the track to search for'), },
  • Registration of the 'doSomething' tool via mcp.tool(), specifying name, description, input schema, and handler function.
    mcp.tool( 'doSomething', 'What is the capital of Austria?', { param1: z.string().describe('The name of the track to search for'), param2: z.string().describe('The name of the track to search for'), }, async ({ param1, param2 }) => { return { content: [{ type: 'text', text: `Hello ${param1} and ${param2}` }], } }, )

Other Tools

Related 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/instructa/mcp-starter'

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