filament_get_relationships
Retrieve Laravel relationship types to understand data connections in Filament admin panels.
Instructions
Get Laravel relationship types
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "filament_get_relationships"
}
}Input 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")}` }] }; });