Skip to main content
Glama

Get message access settings

stack_get_message_access
Read-only

Read the message access settings: for one agent (agent_id) its own values over the account's over STACK's defaults, or without agent_id the account's. Returns read_teammates and messages_read_only (what is set at that scope, or null when nothing is), effective (what is in force there) and source (agent, account or default, for each). 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. Operator only; an agent cannot read or change its own.

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

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?

Beyond the supplied readOnlyHint annotation, the description discloses operator-only access, cross-customer isolation ("An agent of another customer never reads any of it"), and that reads of another agent's messages are audit-logged without content. These are non-obvious behavioral traits an agent could not infer from the annotations or schema.

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 purpose and scope rule are front-loaded and nearly every sentence carries real information (defaults, semantics of both flags, audit logging, operator restriction). The single dense block would be easier to scan split into scope/returns/field-semantics lines, which keeps it from a 5.

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?

There is no output schema, so the description carries the burden of explaining returns, and it does: read_teammates, messages_read_only, effective, and source, including null handling and default values. Combined with the access constraint and precedence rules, an agent has everything needed to call and interpret this correctly.

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, but the description adds meaningful resolution semantics the schema only gestures at: the three-tier fallback to account values and then STACK defaults, plus the null-when-unset return behavior. It does not add format details for the agt_* id itself, which the schema already covers.

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 description opens with a specific verb and resource ("Read the message access settings") and immediately defines the two scopes keyed on agent_id, which cleanly separates it from the sibling write tool stack_set_message_access. An agent can tell what this returns and at which scope without opening the schema.

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 concrete selection rule: supply agent_id for one agent's values, omit it for the account's, and it explains the fallback chain (agent over account over STACK defaults). It also adds a hard access precondition ("Operator only; an agent cannot read or change its own"). It stops short of naming stack_set_message_access as the mutation alternative, so it is clear context rather than full when/when-not 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.