Skip to main content
Glama

Set trust setting

stack_set_trust
Destructive

Set the trust switch, for the account or, with agent_id, for one agent (its value wins over the account's). trust is "ask_first" or "trust_agents"; for an agent, null removes its own value so it follows the account again. It is a setting of its own, not part of a control policy. A change that makes the scope trust where it asked first before (to "trust_agents", or null while the account trusts) needs a person's approval (trust_widen); a change to "ask_first" applies at once. Every change is recorded in the audit log. "ask_first" keeps today's behaviour: a card purchase, an order on the customer's own supplier account and an owner-key governance change wait for a person. "trust_agents" lets all three through without waiting. In both, a wallet balance or spend limit still refuses, a revoked or suspended agent is still refused, a control policy's review rule still holds the action, and the browser-only actions stay in the browser. STACK starts a new account on "trust_agents". Returns the value set and what is in force. Operator only, never metered. When human approval is required and the chat client supports MCP elicitation, the person is asked to confirm the exact change in the client; the change is applied only after they approve, and a rejection changes nothing. Otherwise it returns GOVERNANCE_APPROVAL_REQUIRED with approval_id and approval_url, the page for that one approval, and the same payload sent with governance_approval_id after approval applies the change. An approval is single-use, bound to the exact payload, and expires after 24 hours.

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": {
      "trust": "<trust>"
    },
    "name": "stack_set_trust"
  }
}

Input Schema

NameRequiredDescriptionDefault
trustYes"ask_first" or "trust_agents"; null (with agent_id) makes the agent follow the account
agent_idNoAgent id (agt_*) of the agent this applies to. Omit for the account's value, which every agent without its own value uses.
governance_approval_idNoApproval id (gvr_*) from a prior 403, after a person approved the change

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only say non-read-only and destructive; the description goes far beyond by disclosing the approval gate (widening changes require a person, narrowing applies immediately), the audit log, MCP elicitation fallback, the GOVERNANCE_APPROVAL_REQUIRED payload with approval_id/approval_url, and the single-use, payload-bound, 24-hour expiry of approvals. It also spells out what remains blocked even under 'trust_agents', which is exactly the behavioral context a destructive tool needs.

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?

The core action and scope are front-loaded in the first sentence, then approval behavior, then error/retry path. It is dense and slightly long — the ask_first/trust_agents behavioral catalogue could be trimmed — but almost every sentence carries operational consequence, and no sentence is pure filler.

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

Completeness5/5

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

For a destructive, approval-gated mutation with no output schema, the description covers scope, precedence, approval prerequisites, the fallback error contract, retry mechanics, and the return value ('the value set and what is in force'). Nothing an agent needs to call it correctly or recover from a 403 is missing.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns extra by explaining the null semantics in operational terms ('null while the account trusts' triggers widening) and by describing how governance_approval_id is reused from a prior 403 with the same payload. It adds meaning beyond the enum list without restating schema text verbatim.

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 clause gives a specific verb and resource ('Set the trust switch') plus the exact scope split: account-level by default, single-agent when agent_id is supplied. It also states precedence ('its value wins over the account's') so the agent knows which value applies when both exist.

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 clearly frames when to use this tool versus a related one by excluding scope creep: 'It is a setting of its own, not part of a control policy', which routes control-policy changes to the stack_set_control_policy sibling. It also states the operator-only restriction. It does not name stack_get_trust as the read counterpart, so the guidance is strong but not fully explicit about alternatives.

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.