Skip to main content
Glama

set_permissions

Configure DocType permissions by passing the DocType name and a permissions array, controlling user access to ERPNext records.

Instructions

Set permissions for a DocType

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": {
      "doctype": "<doctype>",
      "perms": "<perms>"
    },
    "name": "set_permissions"
  }
}

Input Schema

NameRequiredDescriptionDefault
permsYesPermissions array
doctypeYesDocType name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. It does not say whether "set" replaces the entire permission set (a destructive overwrite) or merges with existing rules, what privilege level is required, or whether the change is reversible. For a permissions mutation, that is a significant disclosure gap.

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?

A single, front-loaded sentence with no filler. Its brevity is efficient, though it shades into under-specification rather than crisp conciseness.

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

Completeness2/5

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

For a no-annotation mutation tool whose core payload is a loosely typed array of permission objects, the description should explain overwrite semantics, required fields in each permission entry, and expected outcome. With no output schema and no annotations, the one-line description leaves the agent under-informed before making a security-sensitive call.

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%, so both parameters (doctype, perms) are already documented in the input schema, which sets the baseline at 3. The description adds no meaning beyond it — notably nothing about the expected shape of entries in the perms array beyond "Permissions array."

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?

States a specific verb and resource: set permissions for a DocType. An agent can tell what it does, but the description makes no attempt to distinguish it from the sibling smart_set_permissions or to relate it to get_permissions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The only implied guidance is that this targets a DocType's permission configuration; there is no explicit when-to-use, when-not-to-use, or routing to smart_set_permissions vs. get_permissions. The implied usage is discernible from the name and sibling context but not stated in the definition.

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