Skip to main content
Glama
resource-specific-tools.ts1.09 kB
/** * Configuration for resource-specific tools that don't require objectSlug * These tools have a predefined resource type built into their implementation */ export const RESOURCE_SPECIFIC_CREATE_TOOLS = [ 'create-company', 'create-person', ] as const; export type ResourceSpecificCreateTool = (typeof RESOURCE_SPECIFIC_CREATE_TOOLS)[number]; /** * Resource mapping for specific create tools */ export const RESOURCE_TYPE_MAP: Record<ResourceSpecificCreateTool, string> = { 'create-company': 'companies', 'create-person': 'people', }; /** * Validation rules for resource-specific tools */ export const VALIDATION_RULES: Record< ResourceSpecificCreateTool, (attributes: Record<string, unknown>) => string | null > = { 'create-company': (attributes) => { if (!attributes.name) { return 'Company name is required for create-company tool'; } return null; }, 'create-person': (attributes) => { if (!attributes.name && !attributes.email) { return 'Person name or email is required for create-person tool'; } return null; }, };

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/kesslerio/attio-mcp-server'

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