Skip to main content
Glama

Change scope

change_scope

Use this when the person wants to change who can read a memory: the organization, only its author, teams or a project. Narrowing applies at once; widening, an added team or a move to a different team or project follows the confirm_widen rule. The result's visible_to says who can read it now.

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": {
      "memory_id": "<memory_id>",
      "scope": "<scope>",
      "reason": "<reason>"
    },
    "name": "change_scope"
  }
}

Input Schema

NameRequiredDescriptionDefault
teamNoFor scope 'team': id, slug, name or alias of a team the person belongs to.
agentNoYour agent label.
scopeYesNew audience: 'shared' (= 'organization'), 'personal' (= 'private', its author only), 'team' (needs `team` or `teams`) or 'project' (needs `project`).
teamsNoUp to 20 more teams: the memory's teams become exactly `team` plus these.
reasonYesWhy, for the audit; ask the person if unsure.
run_idNoYour run id.
projectNoFor scope 'project': id, slug, name or alias of a project the person belongs to.
memory_idYesMemory id ('mem_' prefix optional).
confirm_humanNoTrue only if the person approved clearing the flag on a memory you saved.
confirm_widenNoSet true only after the person agreed; a widening change without it gets confirm_required.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / scope / description
      Previous value: -"New audience: 'shared' (= 'organization'), 'personal' (= 'private', its author only), 'team' (needs `team`) or 'project' (needs `project`)."New value: +"New audience: 'shared' (= 'organization'), 'personal' (= 'private', its author only), 'team' (needs `team` or `teams`) or 'project' (needs `project`)."
    • addedInput schema / properties / teams
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "maxLength": 200,
      +        "minLength": 1,
      +        "type": "string"
      +      },
      +      "maxItems": 20,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Up to 20 more teams: the memory's teams become exactly `team` plus these."
      +}
  2. Changed6 schema fields changed
    • removedInput schema / properties / reason / anyOf
      Removed value: -[
      -  {
      -    "maxLength": 500,
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / reason / default
      Removed value: -null
    • changedInput schema / properties / reason / description
      Previous value: -"Why, kept in the audit trail. Up to 500 characters."New value: +"Why, for the audit; ask the person if unsure."
    • addedInput schema / properties / reason / maxLength
      Added value: +500
    • addedInput schema / properties / reason / type
      Added value: +"string"
    • changedInput schema / required
      Previous value: -[
      -  "memory_id",
      -  "scope"
      -]New value: +[
      +  "memory_id",
      +  "scope",
      +  "reason"
      +]
  3. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations declare only mutation and non-idempotence; the description adds genuinely new behavior: narrowing applies immediately, while widening, adding a team, or moving teams requires the confirm_widen gate and otherwise returns confirm_required. It also points to the `visible_to` result field for verification. It does not describe permissions or error shapes beyond the confirm gate.

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?

Three sentences, front-loaded with the trigger condition and ending with the verification field. The middle sentence on the widening rule is dense and slightly elliptical ('widening, an added team or a move...') but every clause carries operational meaning.

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?

With 10 parameters, full schema coverage and an output schema, the description covers the non-obvious parts: the narrowing/widening asymmetry, the confirm gate, and where to check the resulting audience. Enough for correct invocation, though nothing is said about failure modes such as invalid team or project identifiers.

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 every parameter, including the scope enum and its team/teams/project dependencies. The description adds only framing (which scopes exist, that `visible_to` confirms the outcome), so the baseline 3 applies.

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

Purpose4/5

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

The description names a specific verb and resource: 'change who can read a memory', and enumerates the audience options (organization, author, teams, project). An agent can distinguish this from change_sensitivity by the audience dimension, though no sibling is named explicitly.

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?

'Use this when the person wants to change who can read a memory' is an explicit trigger condition, which is more than most definitions offer. It does not name an alternative tool or state when not to use it (e.g., sensitivity vs. scope confusion with change_sensitivity).

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.

Resources