Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
ROLECARD_MCP_TOKENNoLocal token required by the loopback HTTP API. If not set, one is generated automatically and written to state/http-token with mode 0o600.auto-generated and stored at state/http-token (0o600)
ROLECARD_MCP_DATA_DIRNoDirectory containing the role cards (`roles/*.md`).<package>/roles
ROLECARD_MCP_HTTP_PORTNoPort for the loopback HTTP interface (127.0.0.1).7182

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
role_listB

列出可用的人格卡名称。

role_getA

读取一张人格卡的全文与统计;不给 name 时读当前角色。

role_set_currentB

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

role_clear_currentA

清除当前人格卡(之后不再注入人格段)。

role_sectionsB

报告各小节在当前模式下是否会被注入,用于解释「这段为什么没生效」。

role_context_renderC

产出可直接拼接的提示词段落(【人格】),平台桥接拿去即用。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 6 tools

Disambiguation4/5

Each tool targets a distinct operation: listing names, reading content, setting/clearing the current card, section diagnostics, and rendering an injectable prompt block. The only mild overlap is between role_get (raw read + stats) and role_context_render (formatted 【人格】 segment), but the descriptions make the split clear enough.

Naming Consistency4/5

All names share the role_ prefix and snake_case, which is predictable. Minor deviation: role_sections is a bare noun and role_context_render uses noun_verb rather than the verb-first pattern of the other four tools.

Tool Count5/5

Six tools is well within the sweet spot and every tool maps to a real step in the persona-card workflow (discover, inspect, activate, deactivate, debug, render). Nothing feels redundant or missing at the count level.

Completeness3/5

The current-card lifecycle (set/clear/get) and rendering path are covered, but there is no create/update/delete for the cards themselves—agents can only consume cards that already exist. If cards are managed externally this is workable, but as a stated rolecard domain it leaves a notable gap.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues