Skip to main content
Glama

Choose a flow's persona

set_flow_persona
DestructiveIdempotent

Choose the agent, skills, implants and rules a flow runs with, for this user.

Instructions

Choose the agent, skills, implants and rules a flow runs with, for this user.

Works for built-in, user: and repo: flows without copying their text; it
replaces the persona in the flow's frontmatter. A list loads exactly those
components (empty = none); an omitted list keeps the agent's own selection.
agent omitted: run the flow without a persona. reset=true (alone): drop this
choice so the flow's frontmatter applies again; it also repairs a broken one.
IDs: agent names as in list_agents; skills and implants by file ID
(skill-web-search, implant-iteration-budget, not footer short names);
rules by name (no-fabrication).
A workspace outside this session's grant leaves repo: flows unavailable: the result is
then an error carrying workspace_mismatch with both roots and the remedy, while
builtin: and user: flows still answer.

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

Input Schema

NameRequiredDescriptionDefault
flowYes
agentNoAgent name for the flow persona.
resetNo
rulesNoOptional rule names, as a JSON array of strings.
skillsNoOptional skill ids, as a JSON array of strings.
implantsNoOptional implant ids, as a JSON array of strings.
workspaceNoAbsolute path of your working directory, the project this session works in. Pass it whenever you have one. It never widens this session's grant: over HTTP the workspace registered for the connection decides, and over stdio it is checked against the client's own MCP roots unless this session's root is already pinned, when it is ignored. Each tool's description says what it does with a path that grant does not cover.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv26.10.18
    • changedInput schema / properties / workspace / description
      Previous value: -"Absolute path of your working directory, the project this session works in. Pass it whenever you have one: one server can serve several sessions."New value: +"Absolute path of your working directory, the project this session works in. Pass it whenever you have one. It never widens this session's grant: over HTTP the workspace registered for the connection decides, and over stdio it is checked against the client's own MCP roots unless this session's root is already pinned, when it is ignored. Each tool's description says what it does with a path that grant does not cover."
  2. First observedv26.10.14+1807

TDQS

A4.6/5.0
Behavior5/5

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

Beyond annotations (destructiveHint=true, idempotentHint=true, openWorldHint=true), the description discloses that the frontmatter persona is replaced, that reset also repairs a broken persona, and that a workspace outside the session grant yields an error carrying workspace_mismatch with both roots and the remedy while builtin:/user: flows still answer. That is meaningful side-effect and failure-mode context the annotations cannot convey.

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 the core action and packed with high-value detail, but the trailing workspace/error paragraph and the ID-format sentence make it long and line-broken in a way that is dense to parse. Almost every sentence earns its place, though the workspace error narrative could be tightened.

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 7-parameter mutation with an output schema (so return values need not be described), the definition covers scoping, list semantics, reset behavior, ID formats, and the repo:-flow workspace failure mode. The only thin spot is what happens with a workspace path that IS within the grant, which the schema field text only partially clarifies.

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 71%, but the description goes well past it: it explains the empty-list vs omitted-list distinction for skills/implants/rules, the meaning of omitting agent, that reset=true must be used alone, and the exact ID conventions (agent names from list_agents, skills/implants by file ID such as skill-web-search, rules by name such as no-fabrication) including what NOT to pass (footer short names).

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 opening sentence names a specific verb ('Choose') and a precisely scoped resource (agent, skills, implants and rules a flow runs with, for this user), plus the storage location (the flow's frontmatter). An agent can distinguish this persona-setting operation from flow CRUD or agent-listing siblings without opening the schema.

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?

It states concrete operating conditions: works for built-in, user: and repo: flows without copying text; an explicit list loads exactly those components; an omitted list keeps the agent's own selection; agent omitted runs without a persona; reset=true alone reverts to frontmatter. It does not name an alternative tool for other persona tasks, but the when/when-not semantics are unusually explicit.

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