Skip to main content
Glama

Set Tracker entity direct permissions

tracker_entities_permissions_update_direct
Idempotent

Grant and revoke an entity's direct rights; the rest stay as they are.

Instructions

Grant and revoke an entity's direct rights; the rest stay as they are.

grant and revoke each map READ / WRITE / GRANT to users (logins or ids), groups (ids) and roles (AUTHOR, OWNER, CLIENT, FOLLOWER, MEMBER). Returns the resulting rights. Read them first with entities_permissions_get_direct.

Grants access: a client that honours the mark asks a person on every call.

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": {
      "entity_type": "<entity_type>",
      "entity_id": "<entity_id>",
      "body": "<body>"
    },
    "name": "tracker_entities_permissions_update_direct"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesTyped request body for ``PATCH …/permissions`` (grant and revoke direct rights). Each side maps an access level (READ / WRITE / GRANT) to users, groups and roles; the API adds or removes exactly those and keeps the rest. ``permissionSources`` is refused (400).
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
entity_idYesEntity id (or shortId).
entity_typeYesEntity type: ``project``, ``portfolio`` or ``goal``.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.142.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).",
      +  "type": "boolean"
      +}
  2. Addedv0.122.1

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so the description's added value is the partial-update guarantee ('the rest stay as they are'), the return value ('Returns the resulting rights'), and the per-call consent note for marked clients. The final sentence about 'a client that honours the mark' is opaque enough that its behavioral meaning is not fully clear.

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?

Three short paragraphs, front-loaded with the mutation semantics and followed by the read-first pointer. The closing sentence about marked clients is cryptic and costs more parsing effort than it repays.

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 nested, four-parameter permission-mutation tool with no output schema, the description covers the mutation model, the return value, the prerequisite read step, and the safety profile via annotations. An agent has enough to call it correctly without further inference.

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 adds real meaning beyond the schema: grant/revoke each map READ/WRITE/GRANT across users, groups and roles, and it enumerates the valid role values (AUTHOR, OWNER, CLIENT, FOLLOWER, MEMBER) that the schema leaves as free strings. It says nothing about the dry_run or entity_type/entity_id parameters, which the schema covers.

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/revoke) and resource (an entity's direct rights), plus the key scope constraint that everything else stays unchanged. 'Direct' distinguishes it from the inherited/effective-permissions sibling tracker_entities_permissions_update.

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?

Explicitly routes the agent to tracker_entities_permissions_get_direct to read current rights before mutating, and clarifies the partial-update semantics. It does not contrast with the non-direct sibling tracker_entities_permissions_update, so the alternative set is only partially covered.

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