Get Global Rule
rules_get_global_ruleRetrieve the complete content of a global rule file by its name (e.g., 'php', 'laravel'). Use this tool to access predefined rules for consistent project standards.
Instructions
Reads a specific global rule file by name from ~/.claude/rules/{name}.md.
Args:
rule_name (string): Rule name without .md (e.g. "php", "laravel", "conventions", "testing") Valid: artisan-commands, banners, commands, conventions, echo-broadcasting, horizon, laravel, license, livewire, package-standards, pest, php, readme, socialite, tailwind, testing, vibe-flow
Returns: Full rule file content.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"rule_name": "<rule_name>"
},
"name": "rules_get_global_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rule_name | Yes | Rule name without .md extension |