Skip to main content
Glama

Vietnamese number words to digits

vn_money_parse
Read-onlyIdempotent

Converts amounts written in Vietnamese words back into digits, returning the numeric value, negative flag, and unit for payment or accounting workflows.

Instructions

Parse an amount written in Vietnamese words back to digits, e.g. "một triệu hai trăm nghìn đồng" -> "1200000". Returns value (digit string), negative, unit, chan.

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": {
      "text": "<text>"
    },
    "name": "vn_money_parse"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered by structured data. The description adds genuine value by naming the returned fields (value, negative, unit, chan) in the absence of an output schema, but 'chan' is left undefined and no error/failure behavior is described for unparseable text.

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?

One front-loaded sentence containing purpose, direction, and a concrete example, followed by a compact return-field list. No filler wording; every clause adds information.

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 single-parameter pure function with rich annotations, the description covers purpose, input format, and output shape. The unexplained 'chan' field and the absence of any statement about invalid input are the only remaining gaps.

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% with a single parameter named only 'text', so the description must carry the semantics. It does so effectively via the Vietnamese-language example, making clear the parameter expects number words rather than digits. It stops short of stating edge cases (dialect variants, 'linh'/'lẻ', missing unit word).

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?

States a specific verb (parse) and resource (an amount written in Vietnamese words) with an explicit direction — 'back to digits' — which distinguishes it from the sibling vn_money_to_words. The worked example "một triệu hai trăm nghìn đồng" -> "1200000" removes any ambiguity about input format.

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 by the inverse-direction phrasing, so an agent can infer this is the tool for words-to-number conversion. However, there is no explicit when-to-use statement, no mention of when not to use it, and no guidance on what happens with malformed or non-money input.

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