Skip to main content
Glama

Set user project access

set_user_project_access
DestructiveIdempotent

Grant or revoke a user's access to one project. Admin only. For customer accounts this controls which projects they can see; for scoped staff it controls their project scope. Full-access roles (admin/team lead/supporter/…) already see all projects, so assignments only matter for customers and scoped roles.

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": {
      "user_id": "<user_id>",
      "project_id": "<project_id>",
      "action": "<action>"
    },
    "name": "set_user_project_access"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesGrant (add) or revoke (remove) access
user_idYessupport_users.id
project_idYesProject UUID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the safety profile is covered by structured data. The description adds context those annotations cannot: an admin authorization requirement, and what the access actually controls (project visibility for customers versus project scope for scoped staff). It does not describe the effect of removing an assignment on existing data, which keeps it from 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.

Conciseness5/5

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

Three sentences, front-loaded with the action, then the permission gate, then the disambiguating context. Nothing is repeated from the title and every sentence carries information an agent would otherwise have to guess.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter, fully documented mutation tool with rich annotations and no output schema, the description supplies everything an agent needs: what it does, who may call it, and which user types the call is meaningful for.

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% and the enum already documents add/remove, so the baseline is 3. The description contributes real semantic meaning about what project_id access represents per user type, but adds no format, default, or validation detail beyond the schema.

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 pair ('Grant or revoke') with a precisely scoped resource ('a user's access to one project'), and the 'one project' framing makes clear this is a single-assignment operation rather than a bulk or customer-level one. An agent can distinguish it from the similarly named customer-access sibling without opening either schema.

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?

Gives a clear precondition ('Admin only') and, unusually valuable, tells the agent when the call is pointless: full-access roles already see all projects, so assignments only matter for customers and scoped roles. It stops short of naming an alternative tool (e.g. a list/inspect access tool) for verification before mutating, so it is not a full 5.

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