Skip to main content
Glama

get_tone_pattern

Analyze Cantonese text to produce tonal patterns (1056 or 0243) for matching lyrics with melody notes in songwriting.

Instructions

Analyze the tonal pattern of Cantonese text for lyrics writing.

Converts each character's tone to the 1056 or 0243 system used in Cantonese lyric writing to match syllables with melody notes.

The 1056 system groups Cantonese tones as:

  • 1: High tones (tones 1, 2, 7) - highest pitch

  • 0: Low falling (tone 4) - falling pitch

  • 5: Mid tones (tones 3, 5, 8) - middle pitch

  • 6: Low tones (tones 6, 9) - lowest pitch

The 0243 system uses different digits but same groupings:

  • 3: High tones (tones 1, 2, 7)

  • 0: Low falling (tone 4)

  • 4: Mid tones (tones 3, 5, 8)

  • 2: Low tones (tones 6, 9)

Args: text: Cantonese text to analyze system: Tonal classification system, either "1056" or "0243"

Returns: Dictionary with: - text: Original input text - system: The system used (1056 or 0243) - pattern: Condensed tone pattern string (e.g., "1560") - breakdown: Detailed per-character analysis

Example: Input: "今天天氣", system="1056" Output includes pattern like "1516" showing the tonal contour

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYes
systemNo0243
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It details the tone grouping algorithms for both systems, the return structure (text, system, pattern, breakdown), and includes an example. It does not discuss error handling, performance, or limitations, but for a straightforward analysis tool, the transparency is adequate.

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 well-structured with sections for purpose, system explanations, args, returns, and example. It is slightly lengthy but each section is justified. The bullet points for tone groupings are clear. Minor redundancy (e.g., repeating 'the X system uses different digits but same groupings') could be trimmed.

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?

Given the tool's moderate complexity (2 parameters, no output schema), the description provides comprehensive information: input format, system choices with rationale, output structure, and a concrete example. It covers all necessary aspects for correct invocation and interpretation of results.

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?

The input schema has 0% description coverage, but the description compensates fully. It explains both parameters: 'text' as Cantonese text to analyze, and 'system' as an enum with detailed explanations of each option (1056 and 0243), including the tone groupings. The example further clarifies usage. This adds significant value beyond the 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 tool's purpose: analyzing tonal patterns of Cantonese text for lyrics writing. It specifies the verb ('analyze'), resource ('tonal pattern'), and domain ('Cantonese lyrics writing'). It distinguishes from siblings like get_jyutping (romanization) and get_rhyming_characters (rhyming) by focusing on tone mapping systems.

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 description implicitly provides usage context by explaining the two tonal classification systems (1056 and 0243) and their relevance to Cantonese lyrics. However, it does not explicitly state when to use this tool versus alternatives like get_jyutping or get_rhyming_characters, leaving the differentiation to the user's understanding of the tool's purpose.

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/liyb-gz/tinci-mcp'

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