Skip to main content
Glama
Anythink-MCP

Anythink-MCP

Official

Roles: create

roles_create

Create a project role with optional API access; it starts without entity permissions until actions are granted, then assign its ID when inviting users.

Instructions

Create a new role. Adds a role with API access on (set api_access false to turn it off) and no entity permissions yet, so its users can't reach any data until you grant actions with roles_permissions_add. Then give it to people by passing its id as role_id to users_invite. Role names must be unique in the project.

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

Input Schema

NameRequiredDescriptionDefault
nameYesRole name
api_accessNoLet the role's users reach data through the API (true/false, default true). Entity permissions only apply when this is on
descriptionNoOptional description

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.38
    • addedInput schema / properties / api_access
      Added value: +{
      +  "description": "Let the role's users reach data through the API (true/false, default true). Entity permissions only apply when this is on",
      +  "type": "boolean"
      +}
  2. Addedv0.2.27

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare this is a non-destructive, closed-world mutation. The description adds real behavioral context: the default state of api_access (true), the consequence of leaving it on (no data reachable), and a hard constraint that role names must be unique in the project. That is exactly the kind of side-effect and precondition detail annotations cannot carry.

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?

Four short sentences, front-loaded with the core action, then defaulting behavior, then follow-up tooling, then the uniqueness constraint. No filler, no repetition of the title, and each sentence carries new 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 three-parameter create tool with no output schema and full schema coverage, the description covers purpose, defaults, downstream steps, and constraints. The one gap is the return value: it references 'its id' but never says the created role (and its id) comes back in the response, which an agent needs to chain into users_invite.

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 baseline is 3, but the description goes further by explaining that role_id is how the role gets consumed by users_invite and by adding the uniqueness constraint on name that the schema's 'Role name' does not convey. The api_access explanation largely restates the schema's own wording, keeping it below a 5.

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 and resource ('Create a new role') and immediately characterizes the resulting state: API access on by default, zero entity permissions. It is clearly distinguishable from roles_permissions_add (grants actions) and users_invite (assigns the role), both of which are named.

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 lifecycle: create here, grant data access with roles_permissions_add, then assign to people via users_invite with role_id. It also sets a clear expectation of when-not-to-expect-functionality ('its users can't reach any data until...'), removing the main ambiguity an agent would have.

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