Awkward names for a name field
get_name_variantsLists values for testing what the app under test does with a name field, as get_address_variants does for the email field: accept (a real person's name the app should take as typed: O'Brien, Smith-Jones, José, Straße, 李, Мария, محمد, สมชาย, kanji and furigana, Urdu, a long South Indian name, a single name for a whole-name field, one letter, exactly the maximum), reject (over the maximum, empty except for a family name, only spaces), store_as_text (HTML, a script tag, a SQL injection, a template expression: the app should store and show them exactly as typed, never run them) and decide (digits, symbols, an emoji, spaces around, a zero-width space, composed and decomposed accents, full-width letters and half-width katakana, an empty family name for someone with one name, and 64, 128 and 255 characters when no maximum is given: apps differ, so note what the app did). Type each into the field yourself and report what the app did: accepted, rejected, or changed it (trimmed, escaped, cut short).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_name_variants"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | No | Which field the values are for. | first_name |
| max_length | No | The field's maximum length, when it has one: adds a value exactly that long and one over it. |