Skip to main content
Glama

Set message access settings

stack_set_message_access
Destructive

Set the message access settings, for the account or, with agent_id, for one agent (its value wins over the account's). Give read_teammates, messages_read_only or both; a key left out is not changed, and null removes the value at that scope so it follows the next one (an agent follows the account, the account follows STACK's default). Applies at once and every change is recorded in the audit log. read_teammates (default true): the agent reads the messages of every message account of the customer; false: only its own account. messages_read_only (default false): true lets the agent read but never send, reply, forward, text or post, from any account, its own included. An agent of another customer never reads any of it. Reads of another agent's messages are recorded in the audit log without their content. Returns the values set and what is in force. Operator only, never metered.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "stack_set_message_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
agent_idNoAgent id (agt_*) of the agent this applies to. Omit for the account's values, which every agent without its own values follows.
read_teammatesNotrue: the agent reads its teammates' messages; false: only its own; null: follow the next scope
messages_read_onlyNotrue: the agent reads but never sends; false: it may send; null: follow the next scope

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?

Goes well beyond the annotations: changes apply immediately, every change lands in the audit log, cross-agent message reads are logged without content, and an agent of another customer can never read the data. It also explains the inheritance chain (agent → account → STACK default), which clarifies why destructiveHint=true — a null can revoke access in effect.

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 scope resolution before the parameter details, and nearly every clause carries information. It is a single dense block, though; splitting the parameter semantics into their own sentences would aid scanning, and a couple of clauses ("An agent of another customer never reads any of it") sit oddly in the middle of the parameter explanation.

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?

No output schema exists, but the description covers the return value ("Returns the values set and what is in force"), the immediate-effect and audit consequences, the permission prerequisite, and the cost profile (never metered). An agent has everything needed to call this correctly for a three-parameter mutation tool.

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 exceeds it by supplying defaults (read_teammates true, messages_read_only false), the exact effect of each boolean in plain terms ("never send, reply, forward, text or post, from any account, its own included"), and the agent-over-account precedence for agent_id.

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?

States a specific verb and resource ("Set the message access settings") and immediately names the two scopes it covers — account-wide, or a single agent when agent_id is passed. The scope precedence rule ("its value wins over the account's") distinguishes it clearly from the read-side sibling stack_get_message_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?

Gives concrete call guidance: supply read_teammates, messages_read_only or both; an omitted key is left unchanged; null clears the value at that scope. Also states the prerequisite "Operator only, never metered." It does not explicitly point to stack_get_message_access for inspection or explain when to clear a value vs set false, but the when-to-use conditions are clear.

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.