Skip to main content
Glama

create_address

Create one address within the user quota. Requires a real map pin from the user (latitude/longitude). NEVER invent coordinates, city, or display name. If the user did not provide a location (coords, Maps link, or clear place), ask them first — do not call this tool with sample/demo data.

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": {
      "idempotency_key": "<idempotency_key>",
      "latitude": "<latitude>",
      "longitude": "<longitude>"
    },
    "name": "create_address"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinNoOptional 4-digit privacy PIN that couriers must enter to view details. Example: 4821
cityNoCity only if the user provided it. Example: الرياض
floorNoFloor / level of the unit. Example: 5 or G
labelNoShort friendly label for the address. Example: البيت or المكتب
phoneNoContact phone in international or local form if provided. Example: +9665xxxxxxx
streetNoStreet name if the user provided it. Example: شارع التحلية
countryNoCountry name or ISO-ish label if provided. Example: السعودية or SA
categoryNoOptional category tag. Example: home, work, shop
latitudeYesUser-provided latitude only — never invent. Example: 24.7136
longitudeYesUser-provided longitude only — never invent. Example: 46.6753
ownerNameNoDisplay name for the address owner only if the user provided one. Example: أحمد
pinEnabledNoWhen true, details stay locked until the correct 4-digit PIN is entered. Example: true
postalCodeNoPostal / ZIP code if provided. Example: 13521
houseNumberNoHouse / unit number if provided. Example: 12
buildingNameNoBuilding name if provided. Example: برج الملقا
instructionsNoDelivery notes for the courier (door color, buzzer, landmark). Example: الباب الأصفر، دق الجرس
neighborhoodNoNeighborhood / district if provided. Example: حي الملقا
idempotency_keyYesClient-generated key to safely retry the same create without duplicates. Example: create-2026-11-16-home-a1b2c3d4
saudiNationalCodeNoOptional Saudi national short code (4 letters + 4 digits, AAAA####) when country is SA. Does not replace the Anwani 9-digit code. Example: RADC2959

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed20 schema fields changed
    • addedInput schema / properties / buildingName / description
      Added value: +"Building name if provided. Example: برج الملقا"
    • addedInput schema / properties / category / description
      Added value: +"Optional category tag. Example: home, work, shop"
    • changedInput schema / properties / city / description
      Previous value: -"Only if the user provided a city."New value: +"City only if the user provided it. Example: الرياض"
    • addedInput schema / properties / country / description
      Added value: +"Country name or ISO-ish label if provided. Example: السعودية or SA"
    • addedInput schema / properties / floor / description
      Added value: +"Floor / level of the unit. Example: 5 or G"
    • changedInput schema / properties / floor / oneOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "maxLength": 10,
      -    "type": "string"
      -  }
      -]New value: +[
      +  {
      +    "description": "Floor number as integer. Example: 5",
      +    "type": "number"
      +  },
      +  {
      +    "description": "Floor label when not a plain number. Example: G or 3B",
      +    "maxLength": 10,
      +    "type": "string"
      +  }
      +]
    • addedInput schema / properties / houseNumber / description
      Added value: +"House / unit number if provided. Example: 12"
    • addedInput schema / properties / idempotency_key / description
      Added value: +"Client-generated key to safely retry the same create without duplicates. Example: create-2026-11-16-home-a1b2c3d4"
    • addedInput schema / properties / instructions / description
      Added value: +"Delivery notes for the courier (door color, buzzer, landmark). Example: الباب الأصفر، دق الجرس"
    • addedInput schema / properties / label / description
      Added value: +"Short friendly label for the address. Example: البيت or المكتب"
    • changedInput schema / properties / latitude / description
      Previous value: -"User-provided latitude only — never invent."New value: +"User-provided latitude only — never invent. Example: 24.7136"
    • changedInput schema / properties / longitude / description
      Previous value: -"User-provided longitude only — never invent."New value: +"User-provided longitude only — never invent. Example: 46.6753"
    • addedInput schema / properties / neighborhood / description
      Added value: +"Neighborhood / district if provided. Example: حي الملقا"
    • changedInput schema / properties / ownerName / description
      Previous value: -"Display name only if the user provided one."New value: +"Display name for the address owner only if the user provided one. Example: أحمد"
    • addedInput schema / properties / phone / description
      Added value: +"Contact phone in international or local form if provided. Example: +9665xxxxxxx"
    • addedInput schema / properties / pin / description
      Added value: +"Optional 4-digit privacy PIN that couriers must enter to view details. Example: 4821"
    • addedInput schema / properties / pinEnabled / description
      Added value: +"When true, details stay locked until the correct 4-digit PIN is entered. Example: true"
    • addedInput schema / properties / postalCode / description
      Added value: +"Postal / ZIP code if provided. Example: 13521"
    • changedInput schema / properties / saudiNationalCode / description
      Previous value: -"Optional Saudi national short code (AAAA####) when country is SA. Does not replace the Anwani 9-digit code."New value: +"Optional Saudi national short code (4 letters + 4 digits, AAAA####) when country is SA. Does not replace the Anwani 9-digit code. Example: RADC2959"
    • addedInput schema / properties / street / description
      Added value: +"Street name if the user provided it. Example: شارع التحلية"
  2. Changed1 schema field changed
    • addedInput schema / properties / saudiNationalCode
      Added value: +{
      +  "description": "Optional Saudi national short code (AAAA####) when country is SA. Does not replace the Anwani 9-digit code.",
      +  "maxLength": 8,
      +  "type": "string"
      +}
  3. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare this is a write, non-destructive, non-idempotent operation. The description adds important behavioral constraints beyond annotations: user quota scope, real coordinates only, and no invented city or display name. It does not cover quota-exceeded behavior or response details, but it meaningfully adds context.

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?

Three short sentences, front-loaded with the action and scope, followed by hard constraints. No redundant restatement of schema fields or wasted wording.

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 19-parameter create tool with rich schema coverage and annotations, the description supplies the critical non-schema policy: real pin, no fabricated data, and asking the user first. It omits return/error behavior and idempotency guidance, but the schema covers most parameter-level detail.

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 description coverage is 100%, so the schema already documents all 19 parameters. The description reinforces latitude/longitude provenance and prohibits inventing city/display name, but does not add detailed meaning for most other parameters beyond what the schema provides.

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?

States a specific verb and resource ('Create one address') and scope ('within the user quota'), so the operation is clear. It does not explicitly differentiate from siblings such as patch_address or delete_address, so it falls just short of a 5.

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

Usage Guidelines4/5

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

Gives clear prerequisites and when-not-to-use guidance: requires a real map pin, ask the user first if no location is provided, and never call with sample/demo data. It lacks explicit routing to alternatives like patch_address for updates, but the exclusions are strong.

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.