Skip to main content
Glama

suggest_personas_for_query

Recommends the most relevant specialist personas for a query by scoring relevance, so you know which expert profiles to consult for informed guidance.

Instructions

Suggest relevant personas for a given query using intelligent selection.

Uses keyword matching, context detection, and relevance scoring to recommend which personas would be most helpful for the query.

MCP Design Philosophy: This tool helps the LLM discover which personas to consult, but doesn't perform analysis itself. The LLM uses the suggestions to call get_persona_content() for each recommended persona.

Args: query: The user's question or scenario max_suggestions: Maximum number of personas to suggest (default: 5) context_hint: Optional context hint to improve suggestions (e.g., "crisis", "security", "architectural")

Returns: JSON list of suggested personas with relevance scores and rationale

Example: # Get suggestions for a query suggestions = suggest_personas_for_query( query="How should we handle user authentication?", max_suggestions=3 )

# Returns JSON with suggested personas and why they're relevant
# LLM then calls get_persona_content() for each suggestion

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
context_hintNo
max_suggestionsNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the burden. It discloses that the tool uses keyword matching, context detection, and relevance scoring, does not perform analysis itself, and returns a JSON list with scores and rationale. This is reasonable transparency, though it doesn't explicitly state read-only status or edge-case behaviors.

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?

The description is somewhat long but well-structured with sections for purpose, philosophy, Args, Returns, and Example. Each sentence adds value; the example is pragmatic. It earns a slight deduction for redundancy (e.g., 'JSON list of suggested personas with relevance scores and rationale' appears in both Returns and Example).

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a suggestion tool with an output schema, the description covers all needed aspects: purpose, usage workflow, parameter semantics, return format, and a concrete example. It is complete enough for an agent to select and invoke the tool correctly.

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?

Despite the input schema lacking descriptions (0% coverage), the description includes an 'Args' section that explains each parameter: query, max_suggestions (with default), and context_hint (with example). This fully compensates for the schema gaps, making the parameters clear.

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 clearly states 'Suggest relevant personas for a given query', a specific verb+resource that distinguishes this from sibling tools like get_persona_content (which retrieves content) and suggest_mcps_for_query (which suggests MCPs). The purpose is unmistakable.

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?

The 'MCP Design Philosophy' explains that this tool is for discovering which personas to consult and that the LLM should then call get_persona_content() for each recommendation. This gives clear workflow context, though it doesn't explicitly state when NOT to use it or contrast with alternatives.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/amarodeabreu/sensei-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server