Skip to main content
Glama

set_role

Declare this session's role and optional responsibilities so peers can route work by function via list_agents; use a roster name or freehand text, or null to clear it.

Instructions

Declare what this session is for on the bus, so peers can route work by function (via list_agents), not just by model. role is either one of the project's configured roster names (see the [roles] config table) or any freehand string. When role names a roster entry and you omit responsibilities, the roster's text is used; pass your own to override. Call set_role(None) to clear the role.

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

Input Schema

NameRequiredDescriptionDefault
roleYes
responsibilitiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/5

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

With no annotations, the description carries the full behavior burden. It usefully discloses the roster-default/override behavior and the clearing path, but says nothing about persistence, whether peers are notified, or what errors can occur for invalid roster names.

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?

Front-loaded with purpose, then parameter semantics, then the clearing idiom. Dense but every sentence carries information; only the pointer to the `[roles]` config table leans on external context.

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 two-parameter, no-output, unannotated tool, the description covers purpose, both parameters, defaulting, and clearing. Lacking only notes on return value or side effects on peers, which is minor at this complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must compensate and it does: `role` is defined as a roster name, arbitrary string, or None-to-clear, and `responsibilities` is explained as defaulting to roster text when omitted while overriding it when supplied.

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?

Names a specific verb and resource ("Declare what this session is for on the bus") and scopes it to routing-by-function, explicitly pointing at list_agents as the consumer. This distinguishes it from set_handle and other session tools without needing the schema opened.

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 clear context for calling it: set a roster name or a freehand string, and call set_role(None) to clear. It does not explicitly state when-not-to-use or contrast with set_handle, so it falls short of the full when/alternatives bar.

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