Skip to main content
Glama

Gọi tên ngẫu nhiên

goi_ten_ngau_nhien
Read-only

Gọi tên ngẫu nhiên: bốc ngay một học sinh trong danh sách tên và hiện tên to trên màn hình; bấm Quay để gọi bạn tiếp theo, không lặp lại bạn đã gọi. Chỉ dùng khi đã có danh sách tên học sinh. Muốn có vòng quay may mắn (hình bánh xe), quay thưởng, rút thăm phần thưởng thì dùng vong_quay_may_man. Randomly calls on one student from a list of names (big name display). For a spin wheel / prize wheel use vong_quay_may_man.

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": {
      "danh_sach": "<danh_sach>"
    },
    "name": "goi_ten_ngau_nhien"
  }
}

Input Schema

NameRequiredDescriptionDefault
ngon_nguNoNgôn ngữ của widget và câu trả lời: "en" khi người dùng viết tiếng Anh, "vi" khi viết tiếng Việt / UI language: use "en" when the user writes in Englishvi
danh_sachYesDanh sách họ tên học sinh, mỗi phần tử một bạn. Student names, one per item.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / ngon_ngu
      Added value: +{
      +  "default": "vi",
      +  "description": "Ngôn ngữ của widget và câu trả lời: \"en\" khi người dùng viết tiếng Anh, \"vi\" khi viết tiếng Việt / UI language: use \"en\" when the user writes in English",
      +  "enum": [
      +    "vi",
      +    "en"
      +  ],
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses the UI behavior (name shown large on screen) and, importantly, that pressing Quay draws the next student without repeating anyone already called — stateful behavior an agent could not infer from the schema. This does not conflict with readOnlyHint, since no stored data is mutated.

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?

Core purpose, prerequisite, and the alternative are front-loaded in the first two clauses. The Vietnamese and English sentences restate each other, which aids bilingual matching but is mildly redundant.

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?

For a simple two-parameter widget tool with full schema coverage and no output schema, the description covers purpose, prerequisite, no-repeat behavior, and the main confusion case. Only minor details (item cap, language handling) are left entirely to the schema.

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 coverage is 100%, so danh_sach and ngon_ngu are already documented in the schema. The description reinforces the names-list concept but adds nothing about the language parameter or the 200-item cap, so the 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 gives a concrete verb and resource ("bốc ngay một học sinh trong danh sách tên" / randomly calls on one student from a list of names) plus the display behavior, and explicitly distinguishes itself from the sibling vong_quay_may_man.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a prerequisite ("Chỉ dùng khi đã có danh sách tên học sinh") and an explicit alternative with its selecting condition (spin wheel / prize draw -> vong_quay_may_man). Nothing about when to pick this tool is left to inference.

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