Skip to main content
Glama
Anwani MCP

Anwani MCP

Official

create_address

Creates a permanent 9-digit Anwani address code from user-provided map coordinates and returns its code and URL. Use it to register new places; ask for real latitude/longitude instead of inventing them.

Instructions

Creates one new permanent 9-digit Anwani address within the account quota and returns {ok, code, created, url}. Requires a real user-provided latitude/longitude (map pin) — NEVER invent coordinates, city, or name; if the user gave no location (coords, Maps link, or clear place), ask first and do not call with sample data. Use it for new places; use patch_address to edit an existing code. Not idempotent unless the same idempotency_key is retried, which returns the original result.

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

Output Schema

NameRequiredDescriptionDefault
okNoTrue when the request succeeded.
urlNoPublic link https://9code.app/code/{code}.
codeNoNew permanent 9-digit Anwani address code.
createdNoTrue when a new address was made.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.1.6
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "properties": {
      +    "code": {
      +      "description": "New permanent 9-digit Anwani address code.",
      +      "type": "string"
      +    },
      +    "created": {
      +      "description": "True when a new address was made.",
      +      "type": "boolean"
      +    },
      +    "ok": {
      +      "description": "True when the request succeeded.",
      +      "type": "boolean"
      +    },
      +    "url": {
      +      "description": "Public link https://9code.app/code/{code}.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the mutation profile is known. The description adds genuinely non-redundant context: quota consumption and the retry contract ('not idempotent unless the same idempotency_key is retried, which returns the original result'), which sharpens the bare idempotentHint=false flag. It stops short of describing validation failure modes or what happens when the quota is exhausted.

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?

Four sentences, front-loaded with the action and return shape, then the coordinate-provenance guardrail, then the sibling routing, then the idempotency caveat. Every sentence carries distinct information; no restatement of the name or title.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 19-parameter mutation with an output schema and full annotations, the description covers the remaining risk surface: quota side effect, hallucinated-coordinate prevention, create-vs-edit routing, and retry safety. Return values need not be explained in depth since an output schema exists, and the brief return mention is a bonus rather than a gap.

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 100%, so per-field meaning is already carried by the schema; a 3 would be the floor. The description still adds cross-field meaning by insisting latitude/longitude must be real user-provided pins and by explaining what idempotency_key actually buys on retry, which the field text alone does not state.

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 and resource with scope: 'Creates one new permanent 9-digit Anwani address within the account quota', and names the return shape. It explicitly contrasts itself with patch_address ('use patch_address to edit an existing code'), so an agent can route without opening either schema.

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?

Gives both the positive case ('use it for new places'), the alternative ('patch_address to edit an existing code'), and an explicit precondition-with-exclusion: if the user gave no location (coords, Maps link, or clear place), ask first and do not call with sample data. That is a full when/when-not ruleset.

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