Skip to main content
Glama

Register agent

stack_register_agent

Register 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

NameRequiredDescriptionDefault
nameYesAgent name (lowercase, letters/digits/hyphens/underscores)
profileNoRegistration 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_urlNoIcon URL for the agent (data URL or external URL, max 100KB)
key_modeNoSigning-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_warningNoAction on warning flags (default: notify)
descriptionNoOptional description
on_criticalNoAction on critical flags (default: notify)
eval_trafficNoMark 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_skillsNoList 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_piiNoScan 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_accessNoCredential 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_modeNoSkill access policy. 'none' (default) blocks all skill invocation. 'custom' uses the allowed_skills list. 'all' permits any active skill.
accountability_modeNoAccountability 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_idNoDeprecated and ignored: registering an agent no longer asks for an approval. Kept so existing callers keep working.
llm_inject_system_promptNoAccepted and ignored: it has no effect. STACK adds no system prompt to gateway calls.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say readOnlyHint=false and destructiveHint=false; the description goes well beyond by explaining that agents never receive raw credentials, that credential_access only controls proxy posture, and that settings alone do not confer access. It omits failure modes and idempotency/duplicate-name behavior, but the key safety posture for a mutation is disclosed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the action and return value, then the caveats. It is dense with nested parentheticals in the second sentence, which slows parsing, but no sentence is pure filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 15-parameter mutation with no output schema, the description covers the essential model: no approval needed, no raw credentials, defaults for skills, and the fact that a record is returned. It does not describe the returned record's shape, but the reference to "its record" plus the safety framing is adequate without overreaching.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the per-property text is already very rich, so the schema does the heavy lifting. The description adds modest meaning for credential_access ("only controls proxy posture"), accountability_mode ("controls monitoring") and skill defaults, but leaves the other ~12 parameters to the schema, matching the baseline for full coverage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource ("Register a new agent with STACK") plus the return ("return its record"). It also implicitly distinguishes the sibling grant step by noting that giving the agent access "is asked of the person separately" via a grant, so an agent can separate registration from stack_grant_agent_access.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a real usage condition — registering needs no approval because the principal starts with no service access, and access is granted separately — which tells the caller this is the right first step. It stops short of naming siblings like stack_setup_agent or stack_update_agent or stating when not to use it, so no explicit alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.