We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Waldzell-Agentics/mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
import { z } from 'zod';
import { MapboxApiBasedTool } from '../MapboxApiBasedTool.js';
const {{pascalCase name}}InputSchema = z.object({
... write your input schema here ...
});
export class {{pascalCase name}}Tool extends MapboxApiBasedTool<
typeof {{pascalCase name}}InputSchema
> {
name = '{{toolName}}';
description = 'Tool description.';
constructor() {
super({ inputSchema: {{pascalCase name}}InputSchema });
}
protected async execute(
input: z.infer<typeof {{pascalCase name}}InputSchema>,
accessToken: string
): Promise<any> {
... write your logic here ...
// e.g.:
// const url = `${MapboxApiBasedTool.MAPBOX_API_ENDPOINT}...?access_token=${accessToken}`;
// const response = await fetch(url);
// const data = await response.json();
// return data;
}
}