Skip to main content
Glama

suggest_sentence

Generates tailored practice sentences for English pronunciation drills. Choose phoneme focus and difficulty to get a sentence to read aloud.

Instructions

Suggest a practice sentence the user can read aloud.

Args: focus: Phoneme focus area. Options: "th", "f_v", "r_l", "vowels", "general". If not specified, picks randomly. difficulty: Difficulty level. Options: "beginner", "intermediate", "advanced". If not specified, picks randomly.

Returns: A practice sentence with its focus area and difficulty.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
focusNo
difficultyNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The actual handler function for the 'suggest_sentence' MCP tool. It filters the SENTENCES pool by optional focus/difficulty, selects a random sentence, and returns it as a Markdown suggestion string.
    @mcp.tool()
    def suggest_sentence(
        focus: str | None = None,
        difficulty: str | None = None,
    ) -> str:
        """
        Suggest a practice sentence the user can read aloud.
    
        Args:
            focus: Phoneme focus area. Options: "th", "f_v", "r_l", "vowels", "general".
                If not specified, picks randomly.
            difficulty: Difficulty level. Options: "beginner", "intermediate", "advanced".
                If not specified, picks randomly.
    
        Returns:
            A practice sentence with its focus area and difficulty.
        """
        pool = SENTENCES
        if focus:
            pool = [s for s in pool if s["focus"] == focus]
        if difficulty:
            pool = [s for s in pool if s["difficulty"] == difficulty]
    
        if not pool:
            return (
                "No sentences match that filter. "
                "Try: focus=th/f_v/r_l/vowels/general, "
                "difficulty=beginner/intermediate/advanced"
            )
    
        sentence = random.choice(pool)
        return (
            f"**Practice this:**\n\n"
            f"> {sentence['text']}\n\n"
            f"**Focus:** {sentence['focus']} | **Difficulty:** {sentence['difficulty']}\n\n"
            f"When ready, use the `practice` tool with this sentence."
        )
  • Input schema (docstring-based parameter definitions) for suggest_sentence: optional 'focus' (str: th/f_v/r_l/vowels/general) and optional 'difficulty' (str: beginner/intermediate/advanced). Returns a string.
    """
    Suggest a practice sentence the user can read aloud.
    
    Args:
        focus: Phoneme focus area. Options: "th", "f_v", "r_l", "vowels", "general".
            If not specified, picks randomly.
        difficulty: Difficulty level. Options: "beginner", "intermediate", "advanced".
            If not specified, picks randomly.
    
    Returns:
        A practice sentence with its focus area and difficulty.
    """
  • Registration via @mcp.tool() decorator on line 259, which registers 'suggest_sentence' as an MCP tool on the FastMCP instance ('pronunciation').
    @mcp.tool()
    def suggest_sentence(
  • The SENTENCES data module: a list of dicts with keys 'text', 'focus', and 'difficulty' used as the pool from which suggest_sentence picks.
    """Curated practice sentences organized by phoneme focus and difficulty."""
    
    from __future__ import annotations
    
    SENTENCES: list[dict[str, str]] = [
Behavior3/5

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

No annotations provided, so description carries full burden. It discloses that parameters have random defaults but does not discuss other behavioral aspects such as sentence generation source, repetition avoidance, or side effects.

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?

The description is well-structured with a concise purpose statement followed by Args and Returns sections, each providing essential information without redundancy.

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?

Given no annotations and presence of output schema, the description covers purpose, parameters, and return value. However, it lacks details on how the sentence is generated (e.g., fixed set vs. dynamic) and any restrictions.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, yet description compensates by listing allowed values for 'focus' and 'difficulty', and explaining default behavior (random selection). This adds significant meaning beyond the raw schema.

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 the verb 'suggest' and the resource 'a practice sentence', with explicit purpose of reading aloud. It is distinct from sibling tools like 'practice' or 'record' which handle execution or recording.

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 description implies usage for generating sentences but does not explicitly guide when to use this tool versus siblings like 'practice' or 'quick_practice'. No exclusion or alternative suggestions are given.

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/JuhongPark/mcp-server-pronunciation'

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