Skip to main content
Glama
base-tool-registry.ts495 B
import { DynamicStructuredTool } from '@langchain/core/tools'; import { AnyZodObject } from 'zod'; import { AgentConfig } from '@snakagent/core'; export abstract class BaseToolRegistry { protected tools: DynamicStructuredTool<AnyZodObject>[] = []; constructor() {} protected abstract registerTools(): DynamicStructuredTool<AnyZodObject>[]; public getTools(): DynamicStructuredTool<AnyZodObject>[] { return this.tools; } public clearTools(): void { this.tools = []; } }

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/KasarLabs/snak'

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