| name | irule-event |
| description | Look up iRules event or command reference from authoritative LSP registry metadata. Shows which commands are valid in an event, or which events support a command. Use when looking up iRules events, checking F5 iRule command availability, querying iRule event-command compatibility, or finding which events support a specific iRules command. |
| allowed-tools | Bash, Read |
iRule Event/Command Reference
Look up event or command information from the iRules registry.
Steps
-
Read the domain knowledge from ai/prompts/irules_system.md
-
Determine what the user is asking about:
- If they mention an event name (e.g. HTTP_REQUEST, CLIENT_ACCEPTED), look up event info
- If they mention a command (e.g. HTTP::header, IP::client_addr), look up command info
- If unclear, ask for clarification
-
Run the appropriate lookup:
For events:
uv run --no-dev python ai/claude/tcl_ai.py event-info EVENT_NAME
For commands:
uv run --no-dev python ai/claude/tcl_ai.py command-info COMMAND_NAME
-
If the tool fails (e.g. unknown event/command name), report the error and suggest similar event/command names if possible
-
Present the registry metadata (authoritative facts), then provide practical guidance:
For events:
- When it fires
- Common commands to use
- Available request/response data
- Performance and safety notes
- Minimal useful example
For commands:
- Syntax and options
- Valid/invalid events
- Typical usage patterns
- Common mistakes
Important
The registry metadata is authoritative -- always present it as facts.
Supplement with practical guidance, but clearly separate facts from advice.
$ARGUMENTS