Split street and building
split_street_and_buildingParses a free-text street line into street name, building number, and sub-building, handling leading or trailing number formats. Returns the full line as street name when no building number is present.
Instructions
Split a street line into street name, building, and sub-building.
Handles the leading-number convention (US/UK: ``10 Downing Street``),
the trailing-number convention (much of continental Europe: ``Rue de
Rivoli 12``), and an optional sub-building marker (``Flat 2``, ``Apt
3B``, ``Suite 400``). When no building number is present the whole line
is returned as ``street_name`` (never an error).
Args:
street_line: The free-text street line to split.
Returns ``{"street_name", "building_number", "sub_building"}`` with
``building_number`` / ``sub_building`` set to ``null`` when absent.
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": {
"street_line": "<street_line>"
},
"name": "split_street_and_building"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| street_line | Yes | A single free-text street line, e.g. '10 Downing Street', 'Rue de Rivoli 12', or 'Flat 2, 221B Baker Street'. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||