Skip to main content
Glama

filament_list_components

Lists all available components within a specific Filament category to help developers find and implement UI elements for admin panels.

Instructions

List all components in a category

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
versionNo5.x

Implementation Reference

  • The handler for 'filament_list_components' retrieves component lists from either Filament V4 or V5 references based on the provided version and category.
    server.tool("filament_list_components", "List all components in a category", {
      category: z.enum(["forms", "tables", "infolists", "actions", "schemas", "support"]),
      version: versionSchema,
    }, async ({ category, version }) => {
      const reference = version === "4.x" ? filamentV4Reference : filamentV5Reference;
      const found = reference.categories.find(c => c.slug.toLowerCase() === category.toLowerCase());
      if (!found) return { content: [{ type: "text", text: `Category "${category}" not found.` }] };
      return { content: [{ type: "text", text: `# ${found.name} Components\n\n${found.components.map(c => `- **${c.name}**: ${c.description}`).join("\n")}` }] };
    });

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/serbansorin/filament-mcp-server'

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