Skip to main content
Glama

Qdrant Retrieve MCP Server

McpTool.ts1.27 kB
import type { TextContent } from "@modelcontextprotocol/sdk/types.js"; import type { JsonContent } from "./JsonContent"; import type { McpToolError } from "./McpToolError"; /** * Configuration for an MCP tool. Defines the interface and behavior of a tool that can be used * in the MCP (Machine Conversation Protocol) system. */ export type McpTool = { /** Unique name identifying the tool */ name: string; /** Description of what the tool does */ description: string; /** Schema for validating tool input (undefined === empty input) */ inputSchema?: unknown; /** Name of the input schema type */ inputSchemaName: string; /** Types of output this tool can produce */ outputTypes: Array<"text" | "json" | "image">; /** Schema for validating tool output (only for json responses, undefined === validation is disabled) */ outputSchema?: unknown; /** Name of the output schema type */ outputSchemaName: string; /** Function that implements the tool's logic. This function will be called when the tool is invoked. */ handler: ( param: any ) => Promise<Array<TextContent | JsonContent<unknown>> | McpToolError>; /** Specifies which operational modes this tool is available in */ enabledInModes: Array<"rest" | "mcpAct" | "mcpPlan">; };

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/gergelyszerovay/mcp-server-qdrant-retrive'

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