gate

v1.3.0
ai.spideriq/gate Checked 4 days ago Published 5 months ago

SpiderIQ 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.

ParameterTypeDescription
email *stringAdmin email address (the person who will approve access)
api_urlstringAPI URL (default: https://spideriq.ai)
projectstringProject name (shown in approval email)
scopesarrayRequested 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.

ParameterTypeDescription
poll_token *stringPoll token from request_access
request_id *stringRequest ID from request_access
api_urlstringAPI URL (default: https://spideriq.ai)

get_auth_status

Check if you are authenticated and get current user info.

ParameterTypeDescription
workspacestringWorkspace name (default: default)

logout

Remove stored authentication credentials.

ParameterTypeDescription
workspacestringWorkspace name (default: default)

list_workspaces

List all configured workspaces and their authentication status.

health_check

Check if the SpiderIQ API is healthy and responsive.

ParameterTypeDescription
api_urlstringAPI URL (default: https://spideriq.ai)
workspacestringWorkspace name (default: default)

get_queue_stats

Get statistics about job queues (pending jobs, consumers, etc.).

ParameterTypeDescription
formatstringResponse format (default: json)
workspacestringWorkspace name (default: default)

get_api_info

Get information about the SpiderIQ API and your connection.

ParameterTypeDescription
workspacestringWorkspace 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…

ParameterTypeDescription
messages *arrayChat messages
model *stringModel or task alias (e.g., "spideriq/fast", "spideriq/coding")
max_tokensnumberMax tokens to generate.
response_formatobjectStructured output: {"type":"json_object"} or {"type":"json_schema","json_schema":{...}}.
seednumberRandom seed for reproducibility.
spidergate_optionsobjectSpiderGate extras: { max_cost_usd, cache_enabled, cache_ttl_seconds, fallback_models, preferred_providers, excluded_providers, timeout_ms, retry_count }.
stopStop sequence(s) — a string or array of strings.
temperaturenumberSampling temperature 0.0–2.0 (default 1.0).
tool_choice"none" | "auto" | "required" | {type:"function",function:{name}}.
toolsarrayOpenAI tool/function definitions for tool calling.
top_pnumberNucleus sampling 0.0–1.0.
workspacestringWorkspace name

gate_models

List all available LLM models on SpiderGate with usage stats.

ParameterTypeDescription
workspacestringWorkspace name

gate_aliases

List SpiderGate task aliases (spideriq/fast, spideriq/coding, etc.) with their model chains.

ParameterTypeDescription
workspacestringWorkspace name

gate_health

Check SpiderGate LLM gateway health.

ParameterTypeDescription
workspacestringWorkspace name

gate_stats

Get your brand's SpiderGate overview — active agents, total requests, spend.

ParameterTypeDescription
brand_id *stringBrand ID
workspacestringWorkspace name

gate_usage

Get your brand's usage analytics — requests, tokens, cost by model/provider/day.

ParameterTypeDescription
brand_id *stringBrand ID
daysnumberTime window in days (default: 7, max: 90)
workspacestringWorkspace name

gate_agents

List your brand's agent tokens with budgets, rate limits, and model access.

ParameterTypeDescription
brand_id *stringBrand ID
workspacestringWorkspace name

gate_providers

List available LLM providers with logos and descriptions.

ParameterTypeDescription
brand_id *stringBrand ID
workspacestringWorkspace name

gate_traces

List LLM request traces for your brand — filter by agent, model, status, date.

ParameterTypeDescription
brand_id *stringBrand ID
agent_idstringFilter by agent ID
limitnumberMax results (default: 20)
modelstringFilter by model name
offsetnumberOffset for pagination
statusstringFilter by status
workspacestringWorkspace name

gate_trace_detail

Get full trace detail with spans, input/output messages, and timing.

ParameterTypeDescription
brand_id *stringBrand ID
trace_id *stringTrace ID
workspacestringWorkspace name

gate_trace_stats

Get aggregated trace statistics — total traces, success/error counts, p95 latency, cost.

ParameterTypeDescription
brand_id *stringBrand ID
workspacestringWorkspace name