We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jirispilka/actors-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
tools.ts•368 B
import type { ToolBase } from '../types.js';
/**
* Returns a public version of the tool containing only fields that should be exposed publicly.
* Used for the tools list request.
*/
export function getToolPublicFieldOnly(tool: ToolBase) {
return {
name: tool.name,
description: tool.description,
inputSchema: tool.inputSchema,
};
}