Skip to main content
Glama

patch_address

Patch only provided fields (e.g. instructions). Does not clear omitted fields. Coordinates cannot be changed.

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": {
      "code": "<code>",
      "changes": "<changes>"
    },
    "name": "patch_address"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesAnwani permanent 9-digit address code (digits 1–9 only). Example: 365131449
changesYesPartial address fields to update. Omit keys you do not want to change. Example: {"instructions":"الباب الأصفر","floor":5}

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed19 schema fields changed
    • addedInput schema / properties / changes / description
      Added value: +"Partial address fields to update. Omit keys you do not want to change. Example: {\"instructions\":\"الباب الأصفر\",\"floor\":5}"
    • addedInput schema / properties / changes / properties / buildingName / description
      Added value: +"Building name if provided. Example: برج الملقا"
    • addedInput schema / properties / changes / properties / category
      Added value: +{
      +  "description": "Optional category tag. Example: home, work, shop",
      +  "maxLength": 40,
      +  "type": "string"
      +}
    • addedInput schema / properties / changes / properties / city / description
      Added value: +"City only if the user provided it. Example: الرياض"
    • addedInput schema / properties / changes / properties / country / description
      Added value: +"Country name or ISO-ish label if provided. Example: السعودية or SA"
    • addedInput schema / properties / changes / properties / floor / description
      Added value: +"Floor / level of the unit. Example: 5 or G"
    • changedInput schema / properties / changes / 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 / changes / properties / houseNumber / description
      Added value: +"House / unit number if provided. Example: 12"
    • addedInput schema / properties / changes / properties / instructions / description
      Added value: +"Delivery notes for the courier (door color, buzzer, landmark). Example: الباب الأصفر، دق الجرس"
    • addedInput schema / properties / changes / properties / label / description
      Added value: +"Short friendly label for the address. Example: البيت or المكتب"
    • addedInput schema / properties / changes / properties / neighborhood / description
      Added value: +"Neighborhood / district if provided. Example: حي الملقا"
    • addedInput schema / properties / changes / properties / ownerName / description
      Added value: +"Display name for the address owner only if the user provided one. Example: أحمد"
    • addedInput schema / properties / changes / properties / phone / description
      Added value: +"Contact phone in international or local form if provided. Example: +9665xxxxxxx"
    • addedInput schema / properties / changes / properties / pin / description
      Added value: +"Optional 4-digit privacy PIN that couriers must enter to view details. Example: 4821"
    • addedInput schema / properties / changes / properties / pinEnabled / description
      Added value: +"When true, details stay locked until the correct 4-digit PIN is entered. Example: true"
    • addedInput schema / properties / changes / properties / postalCode / description
      Added value: +"Postal / ZIP code if provided. Example: 13521"
    • changedInput schema / properties / changes / properties / saudiNationalCode / description
      Previous value: -"Optional Saudi national short code (AAAA####) when country is SA. Pass empty string to clear."New value: +"Optional Saudi national short code (AAAA####) when country is SA. Pass empty string to clear. Example: RADC2959"
    • addedInput schema / properties / changes / properties / street / description
      Added value: +"Street name if the user provided it. Example: شارع التحلية"
    • addedInput schema / properties / code / description
      Added value: +"Anwani permanent 9-digit address code (digits 1–9 only). Example: 365131449"
  2. Changed1 schema field changed
    • addedInput schema / properties / changes / properties / saudiNationalCode
      Added value: +{
      +  "description": "Optional Saudi national short code (AAAA####) when country is SA. Pass empty string to clear.",
      +  "maxLength": 8,
      +  "type": "string"
      +}
  3. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Goes beyond the annotations (readOnly=false, idempotent=false, destructive=false) by disclosing two real behavioral traits: omitted fields are preserved rather than cleared, and coordinates are immutable. It still says nothing about permission/auth requirements or what happens on an invalid code or unknown field, so not a 5.

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 terse sentences, front-loaded with the core patch semantics, each carrying distinct information with zero filler.

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 partial-update mutation over a 15-field nested object with annotations present, the description covers the critical risks (silent non-clearing, immutable fields). It omits any indication of validation failures or what the call returns, though with no output schema only the former is a meaningful gap.

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 coverage is 100% and the nested `changes` object documents every field with examples, so the schema carries the parameter burden. The description adds only marginal meaning — the "e.g. instructions" hint and the note that coordinates (absent from the schema) cannot be changed — so baseline 3 applies.

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 ("Patch") and precise partial-update scope ("only provided fields", "Does not clear omitted fields"), which distinguishes it from create/delete siblings without naming them. The resource is only implied by the tool name rather than stated in the description, keeping it 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 Guidelines3/5

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

The partial-update contract implicitly tells the agent to use this for modifying existing addresses rather than creating them, but there is no explicit when-to-use/when-not guidance and no pointer to a sibling such as create_address for full replacement or delete_address for removal.

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.