Skip to main content
Glama

Roles: save

manage_roles_save
Destructive

Create a data role or change one: which systems, tables and columns it may reach. Naming an existing id edits it (systems you do not mention stay as they are; replace: true starts again). With many tables use patterns. Search names first with systems.search_schema. Changes Junction's own settings as the person asking, only as far as their role allows in the Junction portal. Tell the user what you are about to do and call this only after they agree. It answers with a preview first; show it, and only call again with confirm set to true after the user agrees. Company administrators only. Never pass a password, key or token; anything that needs one is done in the portal.

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": {
      "id": "<id>"
    },
    "name": "manage_roles_save"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYeslowercase letters, digits, - or _
confirmNoset true only after the user has seen the preview this action answers with first and agreed
replaceNowhen editing, ignore the current access and start from what you give
systemsNoan object keyed by system id (from systems.list). Per system: access (all, some or none), tables (exact names), table_patterns (names with * wildcards, resolved against the live tables now), exclude_tables (patterns to leave out of all tables), columns ({table: [exact columns]}), hide_columns ({table or *: [column patterns]} keeps every other column). Anything you do not allow stays hidden, including tables and columns added later.
clone_fromNostart a NEW role from this role's access
hide_amountsNohide financial amounts

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, so the description is not obligated to prove it mutates. It still adds real value beyond them: the two-step preview/confirm protocol, the merge semantics ('systems you do not mention stay as they are'), the reset behavior of replace:true, and the acting-as-the-requester permission limit. It does not explain what the preview contains or what happens on a failed save, which keeps it below a 5.

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?

Purpose is front-loaded and nearly every sentence carries an operational constraint. The parenthetical '(systems you do not mention stay as they are; replace: true starts again)' packs two distinct semantics into one clause and reads densely, but nothing is genuinely redundant.

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 destructive six-parameter mutation with a nested systems object and no output schema, the description covers the consent gate, the preview response, the permission model, and the secret-handling boundary. Remaining gaps are minor: the preview's shape and error behavior are left implicit.

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 3 baseline is already met by the schema. The description still adds meaning the schema does not carry: naming an existing id switches the call from create to edit, unspecified systems are preserved rather than wiped, and replace:true discards existing access. It leaves confirm's mechanics to the schema, which is acceptable.

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?

Opens with a specific verb+resource pair ('Create a data role or change one') and immediately scopes it to 'which systems, tables and columns it may reach'. The create-or-edit duality is stated explicitly, which distinguishes it from the read-only siblings manage_roles_get/list and the manage_roles_delete sibling.

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

Usage Guidelines5/5

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

Gives an explicit prerequisite ('Search names first with systems.search_schema'), an explicit exclusion ('Never pass a password, key or token; anything that needs one is done in the portal'), an audience gate ('Company administrators only'), and a mandatory consent protocol. An agent knows both when to call it and what to do before and after.

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