Skip to main content
Glama

set_agent_role

Set an agent's role: worker (own tasks), coordinator (all tasks, comment), admin (full management). Requires admin key; sandbox agents excluded.

Instructions

Set an agent's role (admin key required): worker (own-task scope), coordinator (sees + can comment on all account tasks), or admin (full account management). Sandbox agents graduate via the claim flow and cannot be assigned a role.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idYesAgent ID to change
roleYesRole preset to apply
Behavior3/5

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

No annotations provided, so the description carries the behavioral transparency burden. It discloses authentication requirements (admin key) and a constraint (sandbox agents exclusion). However, it does not describe the effect on the agent's existing permissions, whether the role change is immediate, or any return value. Adds some useful context but leaves gaps.

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?

Two sentences with no extraneous words. Information is front-loaded and efficiently packed.

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 tool with 2 parameters and no output schema, the description covers the essential: purpose, role options, required key, and an edge case (sandbox). Could be more explicit about the result (e.g., success confirmation) but is sufficient for correct invocation.

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%, baseline 3. The description adds value by explaining the meaning and scope of each role enum value, which goes beyond the schema's 'Role preset to apply' description. The agent_id parameter is not elaborated 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?

The description clearly states 'set an agent's role' and lists the three distinct role options with brief scope explanations. This uniquely identifies the tool among siblings, as no other tool deals with role assignment.

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 requires admin key and states that sandbox agents cannot be assigned a role. Provides clear context for when to use (role assignment) and an important exclusion (sandbox agents). Missing explicit alternatives, but the context is sufficient.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/delega-dev/delega-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server