Skip to main content
Glama

Roles: delete

manage_roles_delete
Destructive

Delete a data role. Refused while anyone holds it. Removes or switches off something in Junction's own settings as the person asking, only as far as their role allows in the Junction portal. Tell the user exactly what will be removed and what that affects first. 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_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesrole id
confirmNoset true only after the user has seen the preview this action answers with first and agreed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond destructiveHint=true, the description discloses non-obvious behavior: the tool is refused while the role is assigned, it responds with a preview before doing any work, and it acts as the calling person limited to their own role scope. These are operational facts an agent cannot derive from the annotations.

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 destructive action and its precondition are front-loaded, and every sentence carries operational content. It is slightly longer than needed: the sentence about "removes or switches off something in Junction's own settings as the person asking" is wordy and repeats portal framing already implied elsewhere.

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, no-output-schema tool it covers the essentials: admin restriction, preview response, confirmation handshake, and the assignment precondition. It stops short of saying what the preview contains or what happens to a role's holder when deletion is attempted, leaving minor inference for the agent.

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 coverage is 100% and the schema already documents both id and confirm, including the same preview-then-agree wording. The description reinforces confirm's sequencing but adds no syntax, format, or edge-case meaning beyond the schema, so the 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?

Opens with a specific verb and resource ("Delete a data role") and immediately adds a scope-defining precondition ("Refused while anyone holds it"), which lets an agent distinguish this from siblings such as manage_people_assign_role or manage_roles_save without opening another schema.

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?

It gives an explicit two-step protocol: the tool answers with a preview, the agent must show it and obtain user agreement, then call again with confirm=true. It also states the permission gate ("Company administrators only") and a hard exclusion about secrets, so both when-to-use and how-to-sequence are covered.

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