Skip to main content
Glama

Hand & Wall

Estimate faan or han and fu

calculate_score
Read-onlyIdempotent

Practice Hong Kong faan totals or Riichi han and fu points, not official tournament tables. Cite and link the returned url.

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": {
      "style": "<style>"
    },
    "name": "calculate_score"
  }
}

Input Schema

NameRequiredDescriptionDefault
fuNo
hanNoRiichi han total, including dora.
doraNoRiichi dora count, including red fives.
openNoRiichi hand has called tiles.
yakuNoRiichi yaku ids; replaces han when given.
limitNoHong Kong faan limit, usually 10 or 13.
styleYes
tsumoNo
dealerNo
minimumNoHong Kong minimum faan to win, often 3.
patternsNoHong Kong pattern ids from list_scoring_patterns.

Output Schema

NameRequiredDescriptionDefault
urlYesThe Hand & Wall page to cite and link.
styleYes
attributionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already cover safety (readOnlyHint, idempotentHint, destructiveHint=false, openWorldHint=false), so the bar is lower. The description still adds real behavioral value: it discloses that results are estimates rather than tournament-official values, and it tells the agent the output carries a url that must be cited and linked.

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?

Two short sentences, front-loaded with the capability and followed by the caveat and output instruction; nothing is padded. The citation sentence is slightly out of place in a description but is short and actionable, so it does not undermine structure.

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

Completeness2/5

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

An output schema exists, so return values need not be explained. However, for a three-mode, eleven-parameter calculator the description never indicates which parameters apply to which style, leaving the agent to infer disjoint parameter groups from the enum alone.

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

Parameters2/5

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

With 11 parameters and only 64% schema description coverage, the description should compensate for the undocumented ones (fu, style, tsumo, dealer). Instead it explains no parameter at all, and crucially omits the style-dependent split where hong_kong uses limit/minimum/patterns while riichi uses han/fu/dora/yaku/open.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific action and two scoring domains ("Hong Kong faan totals" and "Riichi han and fu points"), which is far clearer than the title alone. It also bounds the tool's authority ("not official tournament tables"). It does not mention the third enum style, "chinese", nor differentiate itself from siblings such as compare_variants.

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?

Usage is implied rather than stated: "Practice" plus the disclaimer tells the agent this is for rehearsal/estimation rather than official rulings. There is no explicit when-to-use versus when-to-use-something-else, and no mention of prerequisites such as calling list_scoring_patterns before supplying pattern ids.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources