gate
v1.3.0SpiderIQ Gate: SpiderGate LLM gateway (completions, models, usage, traces)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
request_access
Request access to SpiderIQ API. This sends an approval email to the admin. After calling this, use check_access_status to poll for approval. Once approved, the token is automatically saved for subsequent API calls.
| Parameter | Type | Description |
|---|---|---|
email * | string | Admin email address (the person who will approve access) |
api_url | string | API URL (default: https://spideriq.ai) |
project | string | Project name (shown in approval email) |
scopes | array | Requested permission scopes (default: jobs:submit, jobs:read) |
check_access_status
Check the status of a PAT access request. Returns 'pending', 'active', 'denied', 'expired', or 'revoked' (matches the backend PATRequestStatus enum). Once status==='active', the token is saved to ~/.spideriq/credentials.json automatically. Multi-brand approvals save one entry per workspace under client_id, with the first aliased as 'default' so existing tools (upload_local_file, etc.) keep working without --workspace.
| Parameter | Type | Description |
|---|---|---|
poll_token * | string | Poll token from request_access |
request_id * | string | Request ID from request_access |
api_url | string | API URL (default: https://spideriq.ai) |
get_auth_status
Check if you are authenticated and get current user info.
| Parameter | Type | Description |
|---|---|---|
workspace | string | Workspace name (default: default) |
logout
Remove stored authentication credentials.
| Parameter | Type | Description |
|---|---|---|
workspace | string | Workspace name (default: default) |
list_workspaces
List all configured workspaces and their authentication status.
health_check
Check if the SpiderIQ API is healthy and responsive.
| Parameter | Type | Description |
|---|---|---|
api_url | string | API URL (default: https://spideriq.ai) |
workspace | string | Workspace name (default: default) |
get_queue_stats
Get statistics about job queues (pending jobs, consumers, etc.).
| Parameter | Type | Description |
|---|---|---|
format | string | Response format (default: json) |
workspace | string | Workspace name (default: default) |
get_api_info
Get information about the SpiderIQ API and your connection.
| Parameter | Type | Description |
|---|---|---|
workspace | string | Workspace name (default: default) |
gate_chat
Send a chat completion via SpiderGate LLM gateway (OpenAI-compatible). Use task aliases like "spideriq/fast", "spideriq/coding", "spideriq/research" or specific model IDs. Supports JSON mode (response_format), tool/function calling (tools/tool_choice), and SpiderGate extras via spidergate_options — { max_cost_usd } caps the per-request spend, { cache_enabled } caches identical prompts, { fallback_models } extends the alias chain. The response carries spidergate_metadata.cost_usd (the real per-call dollar cost) and provider_model (what actually served). NEVER send client PII on a free-tier al…
| Parameter | Type | Description |
|---|---|---|
messages * | array | Chat messages |
model * | string | Model or task alias (e.g., "spideriq/fast", "spideriq/coding") |
max_tokens | number | Max tokens to generate. |
response_format | object | Structured output: {"type":"json_object"} or {"type":"json_schema","json_schema":{...}}. |
seed | number | Random seed for reproducibility. |
spidergate_options | object | SpiderGate extras: { max_cost_usd, cache_enabled, cache_ttl_seconds, fallback_models, preferred_providers, excluded_providers, timeout_ms, retry_count }. |
stop | Stop sequence(s) — a string or array of strings. | |
temperature | number | Sampling temperature 0.0–2.0 (default 1.0). |
tool_choice | "none" | "auto" | "required" | {type:"function",function:{name}}. | |
tools | array | OpenAI tool/function definitions for tool calling. |
top_p | number | Nucleus sampling 0.0–1.0. |
workspace | string | Workspace name |
gate_models
List all available LLM models on SpiderGate with usage stats.
| Parameter | Type | Description |
|---|---|---|
workspace | string | Workspace name |
gate_aliases
List SpiderGate task aliases (spideriq/fast, spideriq/coding, etc.) with their model chains.
| Parameter | Type | Description |
|---|---|---|
workspace | string | Workspace name |
gate_health
Check SpiderGate LLM gateway health.
| Parameter | Type | Description |
|---|---|---|
workspace | string | Workspace name |
gate_stats
Get your brand's SpiderGate overview — active agents, total requests, spend.
| Parameter | Type | Description |
|---|---|---|
brand_id * | string | Brand ID |
workspace | string | Workspace name |
gate_usage
Get your brand's usage analytics — requests, tokens, cost by model/provider/day.
| Parameter | Type | Description |
|---|---|---|
brand_id * | string | Brand ID |
days | number | Time window in days (default: 7, max: 90) |
workspace | string | Workspace name |
gate_agents
List your brand's agent tokens with budgets, rate limits, and model access.
| Parameter | Type | Description |
|---|---|---|
brand_id * | string | Brand ID |
workspace | string | Workspace name |
gate_providers
List available LLM providers with logos and descriptions.
| Parameter | Type | Description |
|---|---|---|
brand_id * | string | Brand ID |
workspace | string | Workspace name |
gate_traces
List LLM request traces for your brand — filter by agent, model, status, date.
| Parameter | Type | Description |
|---|---|---|
brand_id * | string | Brand ID |
agent_id | string | Filter by agent ID |
limit | number | Max results (default: 20) |
model | string | Filter by model name |
offset | number | Offset for pagination |
status | string | Filter by status |
workspace | string | Workspace name |
gate_trace_detail
Get full trace detail with spans, input/output messages, and timing.
| Parameter | Type | Description |
|---|---|---|
brand_id * | string | Brand ID |
trace_id * | string | Trace ID |
workspace | string | Workspace name |
gate_trace_stats
Get aggregated trace statistics — total traces, success/error counts, p95 latency, cost.
| Parameter | Type | Description |
|---|---|---|
brand_id * | string | Brand ID |
workspace | string | Workspace name |