Skip to main content
Glama

Set signature

set_signature
DestructiveIdempotent

Changes only the signature of a saved sender, not its address (that is save_sender), and shows the signature card with QR code and drawing field. For a plain request to change or draw a signature, mode draw is the fitting choice. Replaces the old signature and re-typesets this sender's unpaid letters, so their previews show the new signature (letter_id: the current one). It is no legal handwritten signature; for that use self_print.

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": {
      "sender_id": "<sender_id>",
      "mode": "<mode>"
    },
    "name": "set_signature"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeYesdraw: the user signs with a finger in the card or on a phone via QR code; the usual choice when the user just wants to change their signature. script: the name in a handwriting-style script (the default signature). image: an uploaded signature image. copy: take the signature of another saved sender. none: no signature.
image_urlNoFor image: public https link to a PNG or JPEG.
letter_idNoSet this unpaid letter again with the new signature; an open review page updates itself.
sender_idYesThe sender_id of a saved sender, from list_senders or create_letter, e.g. '2ed4ac857e35'.
image_fileNoFor image: an image file from this conversation.
image_base64NoFor image: the image as Base64. PNG with transparent or white background, or JPEG on white; at most 3 MB.
user_languageNoLanguage the user writes in, for the card and the drawing page (two-letter code).
signature_textNoFor script: the text to write, if it should differ from the sender's name.
copy_from_sender_idNoFor copy: the sender whose signature is taken.

Output Schema

NameRequiredDescriptionDefault
letterNoThe letter set again, if letter_id was given.
senderNoPostal address.
defaultNotrue for the default sender used when create_letter gets none.
qr_codeNoQR code of draw_url as data URI.
draw_urlNoPage to draw the signature on a touchscreen.
letter_idNoLetter set again with the new signature.
sender_idNoId of the saved sender.
signatureNoHow the sender signs letters.
user_languageNoLanguage of the card and drawing page.
valid_minutesNoHow long draw_url stays valid.
updated_lettersNoOther open letters of this sender set again.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / mode / description
      Previous value: -"draw: the user signs with a finger in the card or on a phone via QR code; use it whenever the user just wants to change their signature. script: the name in a handwriting-style script (the default signature). image: an uploaded signature image. copy: take the signature of another saved sender. none: no signature."New value: +"draw: the user signs with a finger in the card or on a phone via QR code; the usual choice when the user just wants to change their signature. script: the name in a handwriting-style script (the default signature). image: an uploaded signature image. copy: take the signature of another saved sender. none: no signature."
    • changedInput schema / properties / sender_id / description
      Previous value: -"The sender_id of a saved sender, from list_senders or create_letter."New value: +"The sender_id of a saved sender, from list_senders or create_letter, e.g. '2ed4ac857e35'."
    • changedOutput schema / properties / letter / properties / preview_url / description
      Previous value: -"Web page with the whole letter: review and payment before purchase, status after. Give it as a link, never embed it as an image."New value: +"Web page with the whole letter: review and payment before purchase, status after. It is a web page, not an image file."
  2. Changed5 schema fields changed
    • changedInput schema / properties / image_file / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "download_url": {
      -        "title": "Download Url",
      -        "type": "string"
      -      },
      -      "file_id": {
      -        "title": "File Id",
      -        "type": "string"
      -      },
      -      "file_name": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "File Name"
      -      },
      -      "mime_type": {
      -        "anyOf": [
      -          {
      -            "type": "string"
      -          },
      -          {
      -            "type": "null"
      -          }
      -        ],
      -        "default": null,
      -        "title": "Mime Type"
      -      }
      -    },
      -    "required": [
      -      "download_url",
      -      "file_id"
      -    ],
      -    "title": "PdfDatei",
      -    "type": "object"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "download_url": {
      +        "description": "Temporary https URL of the file, provided by the client.",
      +        "title": "Download Url",
      +        "type": "string"
      +      },
      +      "file_id": {
      +        "description": "Id of the file in the client.",
      +        "title": "File Id",
      +        "type": "string"
      +      },
      +      "file_name": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Original file name.",
      +        "title": "File Name"
      +      },
      +      "mime_type": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "MIME type, e.g. application/pdf or image/png.",
      +        "title": "Mime Type"
      +      }
      +    },
      +    "required": [
      +      "download_url",
      +      "file_id"
      +    ],
      +    "title": "PdfDatei",
      +    "type": "object"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / properties / image_url / description
      Previous value: -"For image: https link to the image."New value: +"For image: public https link to a PNG or JPEG."
    • changedInput schema / properties / sender_id / description
      Previous value: -"The id of a saved sender from list_senders."New value: +"The sender_id of a saved sender, from list_senders or create_letter."
    • addedOutput schema / properties
      Added value: +{
      +  "default": {
      +    "description": "true for the default sender used when create_letter gets none.",
      +    "type": [
      +      "boolean",
      +      "null"
      +    ]
      +  },
      +  "draw_url": {
      +    "description": "Page to draw the signature on a touchscreen.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "letter": {
      +    "additionalProperties": true,
      +    "description": "The letter set again, if letter_id was given.",
      +    "properties": {
      +      "approval_url": {
      +        "description": "Page where the user approves and pays this letter.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "delivered_at": {
      +        "description": "Delivery time reported by Deutsche Post.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "delivery": {
      +        "description": "'automatic' (sent by Deutsche Post) or 'self_print' (the user prints and posts it).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "delivery_estimate": {
      +        "additionalProperties": true,
      +        "description": "Expected delivery, without guarantee.",
      +        "properties": {
      +          "deadline_warning": {
      +            "description": "Set when the given deadline cannot be met safely.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "delivered_95_percent_by": {
      +            "description": "Germany: date by which 95 % of letters arrive.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "delivered_99_percent_by": {
      +            "description": "Germany: date by which 99 % of letters arrive.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "delivered_earliest": {
      +            "description": "Abroad: earliest expected delivery date.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "delivered_latest": {
      +            "description": "Abroad: latest expected delivery date.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "note": {
      +            "description": "Transit note from Deutsche Post.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "posted_from": {
      +            "description": "Earliest posting date, YYYY-MM-DD.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "dispatch_status": {
      +        "description": "queued, posted, cancelled or test.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "error": {
      +        "description": "Last error of this letter, if any.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "invoice_url": {
      +        "description": "Invoice.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "letter_id": {
      +        "description": "Id of the letter, used by all other letter tools.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "letter_pdf_url": {
      +        "description": "self_print only: franked PDF to print.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "link_validity": {
      +        "description": "How long the links stay valid.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "next_step": {
      +        "description": "What to do next.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "pages": {
      +        "description": "Number of A4 pages.",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "payment": {
      +        "description": "pending, paid, balance, refunded or a test marker.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "postage_cent": {
      +        "description": "Deutsche Post postage in cents.",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "posted_on": {
      +        "description": "Date the letter was posted, YYYY-MM-DD.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "posting_receipt_url": {
      +        "description": "Proof of posting for registered mail.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "preview_images": {
      +        "description": "PNG images of the pages, for showing the letter inline.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      },
      +      "preview_pdf_url": {
      +        "description": "Preview PDF with specimen stamp.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "preview_url": {
      +        "description": "Web page with the whole letter: review and payment before purchase, status after. Give it as a link, never embed it as an image.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "price": {
      +        "description": "Total price incl. postage and VAT, formatted, e.g. '4,84 €'.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "price_cent": {
      +        "description": "Total price in euro cents.",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "price_from_balance": {
      +        "description": "Price when paid from the prepaid balance.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "product": {
      +        "description": "Deutsche Post postage product.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "product_code": {
      +        "description": "Code of the postage product.",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "recipient": {
      +        "additionalProperties": true,
      +        "description": "Postal address.",
      +        "properties": {
      +          "address_line2": {
      +            "description": "Optional second line.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "city": {
      +            "description": "City, with state or province where usual.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "country": {
      +            "description": "Two-letter ISO country code.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "description": "Person, company or office.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "postal_code": {
      +            "description": "Postal code.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "street": {
      +            "description": "Street and house number or PO box.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "registered": {
      +        "description": "Registered mail with tracking.",
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "return_receipt": {
      +        "description": "Registered mail with return receipt.",
      +        "type": [
      +          "boolean",
      +          "null"
      +        ]
      +      },
      +      "returned_undeliverable_at": {
      +        "description": "Set when the letter came back as undeliverable.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "sender": {
      +        "additionalProperties": true,
      +        "description": "Postal address.",
      +        "properties": {
      +          "address_line2": {
      +            "description": "Optional second line.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "city": {
      +            "description": "City, with state or province where usual.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "country": {
      +            "description": "Two-letter ISO country code.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "name": {
      +            "description": "Person, company or office.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "postal_code": {
      +            "description": "Postal code.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "street": {
      +            "description": "Street and house number or PO box.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "sender_id": {
      +        "description": "Saved sender used for this letter.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "service_fee_cent": {
      +        "description": "Service fee in cents.",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      },
      +      "status": {
      +        "description": "created, preview_ready, awaiting_payment, purchasing, purchased or purchase_unclear.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "status_url": {
      +        "description": "Status page of the letter.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "test_mode": {
      +        "description": "Set when purchases are simulated (review accounts, test operation).",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "tracking": {
      +        "additionalProperties": true,
      +        "description": "Tracking after dispatch.",
      +        "properties": {
      +          "carrier_status": {
      +            "additionalProperties": true,
      +            "description": "Latest status reported by Deutsche Post, with events.",
      +            "properties": {},
      +            "type": "object"
      +          },
      +          "note": {
      +            "description": "What the tracking shows.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "pending": {
      +            "description": "true while the tracking number of registered mail is not known yet.",
      +            "type": [
      +              "boolean",
      +              "null"
      +            ]
      +          },
      +          "stamp_number": {
      +            "description": "Stamp number used for basic tracking of ordinary letters.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "trackable": {
      +            "description": "true for a tracking number, 'basis' for basic tracking, false if none.",
      +            "type": [
      +              "boolean",
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "tracking_number": {
      +            "description": "Deutsche Post tracking number.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "tracking_url": {
      +            "description": "Deutsche Post tracking page.",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "tracking_note": {
      +        "description": "Limits of tracking for the destination.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "upload_url": {
      +        "description": "URL that accepts the raw PDF via PUT until purchase.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "user_language": {
      +        "description": "Language of the user, for pages and e-mails.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "letter_id": {
      +    "description": "Letter set again with the new signature.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "qr_code": {
      +    "description": "QR code of draw_url as data URI.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "sender": {
      +    "additionalProperties": true,
      +    "description": "Postal address.",
      +    "properties": {
      +      "address_line2": {
      +        "description": "Optional second line.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "city": {
      +        "description": "City, with state or province where usual.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "country": {
      +        "description": "Two-letter ISO country code.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "description": "Person, company or office.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "postal_code": {
      +        "description": "Postal code.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "street": {
      +        "description": "Street and house number or PO box.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "sender_id": {
      +    "description": "Id of the saved sender.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "signature": {
      +    "additionalProperties": true,
      +    "description": "How the sender signs letters.",
      +    "properties": {
      +      "preview_url": {
      +        "description": "PNG preview of the signature.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "text": {
      +        "description": "Text written in script.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "type": {
      +        "description": "script, image or none.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "updated": {
      +        "description": "Unix time of the last change.",
      +        "type": [
      +          "integer",
      +          "null"
      +        ]
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "updated_letters": {
      +    "description": "Other open letters of this sender set again.",
      +    "items": {
      +      "type": "string"
      +    },
      +    "type": [
      +      "array",
      +      "null"
      +    ]
      +  },
      +  "user_language": {
      +    "description": "Language of the card and drawing page.",
      +    "type": [
      +      "string",
      +      "null"
      +    ]
      +  },
      +  "valid_minutes": {
      +    "description": "How long draw_url stays valid.",
      +    "type": [
      +      "integer",
      +      "null"
      +    ]
      +  }
      +}
    • removedOutput schema / title
      Removed value: -"set_signatureDictOutput"
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations flag destructiveHint=true and idempotentHint=true, and the description earns credit on top of that by naming what is destroyed and what the side effects are: the old signature is replaced, unpaid letters are re-typeset, and previews/open review pages update. It also discloses the interactive card with QR code and drawing field, which is not derivable from annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The scoping and sibling boundary is front-loaded, and the side-effect sentence is dense and useful. The mode-draw sentence partially duplicates the enum text in the schema, which is the only clear redundancy.

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?

Output schema exists, so return values need not be explained. For a destructive, multi-mode mutation with nine parameters, the description covers scope, side effects, alternative tools, and interactive behavior, leaving nothing essential for correct invocation unstated.

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 mode, letter_id, and the image fields are already fully documented in the schema, including the meaning of 'draw'. The description adds a little practical framing ('letter_id: the current one') but largely restates the mode guidance already present in the enum description, so it does not substantially exceed the schema.

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?

Opens with a precise verb and resource ('Changes only the signature of a saved sender') and immediately scopes the boundary against a named sibling ('not its address (that is save_sender)'). An agent can distinguish this from save_sender 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 an explicit routing rule for the common request ('For a plain request to change or draw a signature, mode draw is the fitting choice') and names the alternative for the case this tool does not cover ('It is no legal handwritten signature; for that use self_print'). Both when-to-use and when-not-to-use are stated.

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.

Resources