Skip to main content
Glama

role_set_current

Select an existing persona card by name to make it the current role for rolecard-mcp.

Instructions

切换当前人格卡(必须已存在)。

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

Input Schema

NameRequiredDescriptionDefault
nameYes

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 burden. It discloses one behavioral trait — the name must reference an existing card — but says nothing about whether this mutates persistent state, whether it replaces a previously active persona, or how the change affects downstream tools such as role_context_render. For a stateful mutation with zero annotation coverage, this is a significant 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, and the key constraint is placed where it is seen first. It is arguably over-terse given the tool's stateful nature, but nothing is redundant.

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?

With no annotations, no output schema, and an undocumented parameter, the definition should explain the meaning of 'current', persistence of the switch, and failure behavior. None of that is present, so an agent cannot confidently predict side effects or the result of the 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?

There is a single parameter with 0% schema description coverage, so the schema contributes only a string type and minLength. The description partially compensates by indicating the parameter identifies an existing persona card by name, but gives no format, casing, or example values to resolve ambiguity.

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?

The description names a specific verb and resource — switching the active persona card — which an agent can distinguish from siblings like role_clear_current (which unsets it) and role_get/role_list (which read it). It does not explicitly name those siblings, which keeps it short of a 5.

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 parenthetical '(must already exist)' implies the agent should verify the card via role_list or role_get first, which is useful conditional guidance. However, it never states when to prefer this over role_clear_current or what happens if a non-existent name is passed, leaving the when-to-use logic implied rather than explicit.

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