claude_prompt
Build a Claude CLI command with mode-based model defaults, gateway routing, and tiered failover; returns JSON for agent shell execution.
Instructions
Build a Claude CLI command with intelligent work-to-model mode defaults, gateway routing, and 3-tier failover cascade. INSTRUCTION: Call claude_models first to discover supported models before calling this tool. Supports Red Hat EnMaaS AI Gateway (free GLM 5.3) and GCP Vertex AI (canonical sonnet, opus, claude-sonnet-5, claude-opus-4-8) with shared-quota bypass and tertiary fallback. Returns JSON { command, cwd, description, block_until_ms } for agent shell execution.
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": {
"prompt": "<prompt>"
},
"name": "claude_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | Working directory for Claude CLI | |
| mode | No | Dispatch mode: architect, planner, reviewer, explorer, executor. | |
| model | No | Exact model name (e.g. sonnet, opus, rits/zai-org/glm-5-3, claude-sonnet-5, claude-opus-4-8). Overrides mode default. | |
| effort | No | Reasoning effort level. | |
| prompt | Yes | The prompt to send to Claude | |
| project | No | Alias for primaryProject. | |
| provider | No | Inference provider: "auto" (default), "enmaas" (requires ENMAAS_KEY), or "vertex". | auto |
| sessionId | No | Resume a previous session by ID | |
| credentials | No | Alias for primaryCredentials. | |
| systemPrompt | No | System prompt override (--system-prompt). | |
| tertiaryModel | No | Fallback model name for tertiary failover (defaults to sonnet). | |
| primaryProject | No | Primary GCP project ID for Vertex AI execution. | |
| secondaryModel | No | Fallback model name for cross-provider failover (defaults to sonnet). | |
| tertiaryProject | No | Tertiary GCP project ID for isolated quota failover. | |
| secondaryProject | No | Secondary GCP project ID for automatic quota/budget failover. | |
| primaryCredentials | No | Path to primary GCP service account credentials JSON. | |
| tertiaryCredentials | No | Path to tertiary GCP service account credentials JSON. | |
| secondaryCredentials | No | Path to secondary GCP service account credentials JSON. |