We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/context-hub/generator'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
ToolProviderInterface.php•601 B
<?php
declare(strict_types=1);
namespace Butschster\ContextGenerator\McpServer\Tool;
use Butschster\ContextGenerator\McpServer\Tool\Config\ToolDefinition;
interface ToolProviderInterface
{
/**
* Checks if a tool with the given ID exists.
*/
public function has(string $id): bool;
/**
* Gets a tool by ID.
*
* @throws \InvalidArgumentException If no tool with the given ID exists
*/
public function get(string $id): ToolDefinition;
/**
* Gets all tools.
*
* @return list<ToolDefinition>
*/
public function all(): array;
}