filament_get_relationships
Retrieve Laravel relationship types to understand data connections in Filament admin panels.
Instructions
Get Laravel relationship types
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/index.ts:155-157 (handler)Registration and handler implementation for the filament_get_relationships tool.
server.tool("filament_get_relationships", "Get Laravel relationship types", {}, async () => { return { content: [{ type: "text", text: `# Relationship Types\n\n${relationshipTypes.map(r => `## ${r.type}\n${r.description}\n\`\`\`php\n${r.example}\n\`\`\`\nRelationManager: ${r.relationManager ? "Yes" : "No"}`).join("\n\n")}` }] }; });