We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ProfSynapse/nexus'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
ITool.ts•981 B
import { JSONSchema } from '../../types/schema/JSONSchemaTypes';
/**
* Interface for tools in the MCP plugin
* Each tool provides a specific functionality within an agent's domain
*/
export interface ITool<T = unknown, R = unknown> {
/**
* Slug of the tool (used for identification)
*/
slug: string;
/**
* Name of the tool
*/
name: string;
/**
* Description of the tool
*/
description: string;
/**
* Version of the tool
*/
version: string;
/**
* Execute the tool with parameters
* @param params Parameters for the tool
* @returns Promise that resolves with the tool's result
*/
execute(params: T): Promise<R>;
/**
* Get the JSON schema for the tool's parameters
* @returns JSON schema object
*/
getParameterSchema(): JSONSchema;
/**
* Get the JSON schema for the tool's result
* @returns JSON schema object
*/
getResultSchema(): JSONSchema;
}