Register agent
stack_register_agentRegister a new agent with STACK and return its record. Registering an agent needs no approval: it names a principal that has no access to any connected service yet, and giving it access (a grant, the hosts a credential may go to, a signing key) is asked of the person separately, whatever settings the agent starts with. Agents never receive raw credentials; credential_access only controls proxy posture. accountability_mode controls monitoring, skill access defaults to none, and key_mode selects the signing-key model.
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": {
"name": "<name>"
},
"name": "stack_register_agent"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Agent name (lowercase, letters/digits/hyphens/underscores) | |
| profile | No | Registration preset. 'proxied-llm-bot' = a bot that just runs: calls an LLM through the STACK gateway and holds no provider key on its box. Expands to credential_access: proxy_only + accountability_mode: logged + key_mode: stack_managed so the first call works immediately. Explicit fields below override the preset. Omit for the base posture (logged + proxy_only). | |
| icon_url | No | Icon URL for the agent (data URL or external URL, max 100KB) | |
| key_mode | No | Signing-key model (default: stack_managed). 'stack_managed' = STACK generates + KMS-wraps the keypair and provisions it automatically on the agent's first sign — NO enrollment step is needed or possible. 'customer_managed' = you hold the private key and enroll the public key (the only mode that uses the enrollment flow). 'co_signed' = stack_managed primary plus a co-signature. | |
| on_warning | No | Action on warning flags (default: notify) | |
| description | No | Optional description | |
| on_critical | No | Action on critical flags (default: notify) | |
| eval_traffic | No | Mark this agent as test or benchmark traffic (default: false). Detection stays on and events stay visible, but warnings arrive already resolved and send no notification; criticals stay live. true mutes the alerts of the owner for the agent. | |
| allowed_skills | No | List of skill IDs the agent can invoke when skill_access_mode is "custom". Ignored in other modes but kept as memory across mode changes. | |
| llm_redact_pii | No | Scan user-role messages and redact PII before forwarding to the LLM provider (default: true). false sends user content to the provider unredacted — an explicit operator choice. | |
| credential_access | No | Credential proxy posture (default: proxy_only, or per profile). Agents never receive raw credentials. 'proxy_only' requires STACK proxy use; legacy direct/proxy_preferred values do not grant raw-secret retrieval. | |
| skill_access_mode | No | Skill access policy. 'none' (default) blocks all skill invocation. 'custom' uses the allowed_skills list. 'all' permits any active skill. | |
| accountability_mode | No | Accountability mode (default: logged, or per profile). 'logged' records every call and needs no per-call approval; 'enforced' holds every call for a person's approval and is the owner's choice. | |
| governance_approval_id | No | Deprecated and ignored: registering an agent no longer asks for an approval. Kept so existing callers keep working. | |
| llm_inject_system_prompt | No | Accepted and ignored: it has no effect. STACK adds no system prompt to gateway calls. |