Skip to main content
Glama
types.ts868 B
/** * ツールのパラメータ定義 */ export interface ToolParameter { name: string; type: 'string' | 'number' | 'boolean' | 'object' | 'array'; description: string; required?: boolean; default?: any; enum?: any[]; pattern?: string; minimum?: number; maximum?: number; minLength?: number; maxLength?: number; } /** * ツールのメタデータ */ export interface ToolMetadata { name: string; description: string; parameters: ToolParameter[]; } /** * ツール実行リクエスト */ export interface ToolCallRequest { name: string; parameters: Record<string, any>; } /** * ツール実行レスポンス */ export interface ToolCallResponse { success: boolean; result?: any; error?: string; } /** * ツール実装の型 */ export type ToolImplementation = (parameters: Record<string, any>) => Promise<any>;

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/krtw00/search-mcp'

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