Skip to main content
Glama

agent_access_set

Replace an org ceiling or one agent's access rules. org:admin signed in as themselves. An agent cannot call this.

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": {
      "scope": "<scope>",
      "rules": "<rules>"
    },
    "name": "agent_access_set"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNoorg only: enforce (default) or report (log, do not enforce)
rulesYesRules that replace this scope. Each is {dimension: namespace|data_class|action|tool, target, effect: allow|notify|ask|block}. An agent rule may only narrow the org ceiling. An empty list clears that scope.
scopeYesorg (the ceiling) or agent
agent_idNoAgent record UUID when scope=agent

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

No annotations are supplied, so the description carries the burden, and it delivers key behavior: this is a full replacement rather than a merge, an empty list clears the scope, agent rules may only narrow the org ceiling, and the call requires an org:admin acting as themselves. It stops short of describing failure modes or whether replacement is atomic.

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

Conciseness5/5

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

Three short, front-loaded sentences with no filler: action first, then authorization, then the agent restriction. Every sentence carries distinct information.

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 mutation tool with no annotations and an output schema already present, the description covers the essentials: what is replaced, who may call it, and the clearing behavior. Minor gaps remain around error handling and the relationship to the org ceiling when scope=org.

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%, so the schema already documents mode, rules, scope, and agent_id with meaningful detail (enforce vs report, agent_id required when scope=agent, rule shape). The description repeats none of this and adds no syntax or format detail beyond it, so baseline 3 applies.

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 ('Replace') applied to a specific resource ('an org ceiling or one agent's access rules'), and names both scope variants. The word 'Replace' also distinguishes it in kind from read-style siblings such as agent_access_get.

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

Usage Guidelines3/5

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

The description implies the use case (changing access rules) and gives an important caller constraint ('org:admin signed in as themselves', 'An agent cannot call this'), but it never names an alternative tool or states when to prefer this over agent_access_get or agent_access_kill. Usage is inferred rather than instructed.

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.