Skip to main content
Glama

Get the principles behind a flow

get_flow_principles
Read-onlyIdempotent

Retrieves the key UX principles governing a user flow plus the smell IDs that commonly break it, so you can ground a flow review in evidence.

Instructions

Get the key principles that govern one user flow and the UX smells that most often break it. Returns the principle slugs and the smell ids so you can read them with get_principle and get_smell. Use it to ground a flow review in evidence.

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_id": "<flow_id>"
    },
    "name": "get_flow_principles"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage of the returned content: "en" (English) or "es" (Spanish). Defaults to "en".en
flow_idYesThe flow id. One of: "onboarding", "forms", "pricing", "dashboard", "empty-states", "checkout", "settings", "navigation", "search", "authentication", "notifications", "data-tables".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv1.3.0
    • changedInput schema / properties / flow_id / description
      Previous value: -"The flow ID. One of: \"onboarding\", \"forms\", \"pricing\", \"dashboard\", \"empty-states\", \"checkout\", \"settings\", \"navigation\", \"search\", \"authentication\", \"notifications\", \"data-tables\"."New value: +"The flow id. One of: \"onboarding\", \"forms\", \"pricing\", \"dashboard\", \"empty-states\", \"checkout\", \"settings\", \"navigation\", \"search\", \"authentication\", \"notifications\", \"data-tables\"."
    • addedInput schema / properties / locale / description
      Added value: +"Language of the returned content: \"en\" (English) or \"es\" (Spanish). Defaults to \"en\"."
  2. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description adds genuine value by disclosing that the response is only references (principle slugs and smell ids), not the substantive content, which shapes how the agent must follow up — but it says nothing about result size, ordering, or whether the flow's smells are filtered by relevance.

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?

Three short sentences, front-loaded with purpose, then return shape, then usage. Every clause carries information — no restatement of the name or filler.

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?

With no output schema, the description carries the burden of describing return values, and it does so concisely (principle slugs plus smell ids). For a simple two-parameter read tool this is close to sufficient; only ambiguity about result structure/grouping keeps it from a 5.

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?

Schema description coverage is 100%, with flow_id enumerating all valid flows and locale documenting both languages and its default, so the schema does all the work. The description adds no additional meaning about parameter effects (e.g., how locale affects the returned slugs). Baseline 3 applies.

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 names a specific verb and resource ("Get the key principles that govern one user flow" plus its UX smells) and implicitly distinguishes it from get_principle/get_smell by noting it returns slugs and ids rather than the content. An agent can tell this is a flow-level index/lookup, not a single-principle fetch.

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 gives a clear usage context ("Use it to ground a flow review in evidence") and an explicit follow-up chain — read the returned slugs with get_principle and the smell ids with get_smell — which is the key routing decision an agent needs. It stops short of stating when NOT to use it versus list_principles or search_principles, so it isn't a full 5.

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