Skip to main content
Glama
Anythink-MCP

Anythink-MCP

Official

Roles: update

roles_update
Destructive

Update a role's name, description, or API access without changing its permissions. Enable API access to fix users getting 403 errors on data calls.

Instructions

Change a role's name, description or API access. Changes a role's name, description or API access, keeping its permissions and active state; only what you pass changes. Turn api_access on for a role whose users get 403 on data calls: without it the role's entity permissions never apply. It changes or deletes existing data, so check with the user before running it.

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": "roles_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesRole ID. Find it with roles_list.
nameNoNew role name
api_accessNoLet the role's users reach data through the API (true/false)
descriptionNoNew description

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.38

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, yet the description still adds substance: existing permissions and active state are preserved, unspecified fields are left alone, and api_access gates whether entity permissions apply at all. The phrase "changes or deletes existing data" slightly overstates the scope of a patch operation, but this falls short of contradicting 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.

Conciseness3/5

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

The opening two clauses restate the same fact almost verbatim ("Change a role's name, description or API access" repeated), which is pure waste. The remaining content is front-loaded and useful, but the duplication and the imprecise "or deletes" wording cost it.

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 four-parameter mutation with full schema coverage, destructive annotations, and no output schema, the definition covers patch semantics, a key gotcha, and a confirmation requirement. It omits failure modes such as duplicate names or an unknown id, which is a minor gap given the schema already fully documents parameters.

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 baseline is 3, but the description earns an extra point by explaining the consequence of api_access (403s, entity permissions never applying) and by emphasizing that only supplied parameters take effect. It also implies the id is the selector for the role being updated.

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 gives a specific verb plus resource and enumerates the mutable fields: "Change a role's name, description or API access." That is enough to separate it from roles_create and roles_delete, though it never names those siblings explicitly to route the agent.

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 real usage context: patch semantics ("only what you pass changes") and a concrete trigger for api_access ("Turn api_access on for a role whose users get 403 on data calls"). It also sets a confirmation precondition. What's missing is explicit routing to alternatives such as roles_permissions_add for permission edits.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools