Skip to main content
Glama

Paperjoy

Update Draft

update-draft-tool
Idempotent

Change a draft postcard. Only the fields you send are changed; send null to clear a field. Free. Submitted postcards 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": {
      "id": "<id>"
    },
    "name": "update-draft-tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe draft postcard ID, for example pc_abc123.
qr_urlNoOptional http or https URL. Adds a 30 x 30 mm QR code sticker pointing to it in the bottom-right corner of the card, at no extra cost.
addressNoRecipient address. Required before sending. Always provide the complete address; it replaces the previous one.
contentNoThe handwritten message. Required before sending. Newlines are kept.
font_idNoHandwriting style. Required before sending.
mistakeNo
design_idNoOptional printed front from list-designs-tool (available designs only), at no extra cost. Omit or null for a blank front. The message is always handwritten on the back.
recipientNoRequired before sending: provide either recipient.first_name or recipient.company_name. It replaces the previous recipient.
signatureNo
signature_idNoAn active custom signature ID from the list-signatures-tool. Use either signature or signature_id, never both.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / design_id
      Added value: +{
      +  "description": "Optional printed front from list-designs-tool (available designs only), at no extra cost. Omit or null for a blank front. The message is always handwritten on the back.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / qr_url / description
      Previous value: -"Optional http or https URL. Adds a 30 x 30 mm QR code sticker pointing to it in the bottom-right corner of the card; the postcard then costs 1.5 credits instead of one."New value: +"Optional http or https URL. Adds a 30 x 30 mm QR code sticker pointing to it in the bottom-right corner of the card, at no extra cost."
  3. Changed1 schema field changed
    • addedInput schema / properties / qr_url
      Added value: +{
      +  "description": "Optional http or https URL. Adds a 30 x 30 mm QR code sticker pointing to it in the bottom-right corner of the card; the postcard then costs 1.5 credits instead of one.",
      +  "maxLength": 255,
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  4. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, which only establish that this is a safe, idempotent, non-destructive mutation, the description discloses three behavioral facts an agent cannot derive elsewhere: the update is a partial patch (only sent fields change), null explicitly clears a field, and the operation is free while submitted cards are immutable. These are exactly the semantics that govern correct invocation.

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 short sentences, zero filler, with the partial-update rule front-loaded before the cost and immutability constraints. Every sentence carries a constraint the caller must respect.

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 ten-parameter mutation with no output schema, the definition covers the operation's nature, mutation semantics and hard limits, which is enough to call it correctly. It does not say what the response contains (presumably the updated draft) or what happens on invalid field combinations, which would fully close the gaps.

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 80%, so the baseline is 3, and the description earns an extra point by explaining the null-vs-omitted distinction for the nine optional parameters, which applies across content, design_id, qr_url, signature and the nested objects. It does not address the signature/signature_id mutual exclusion or required-before-sending fields, which the schema already carries.

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?

"Change a draft postcard" pairs a specific verb with a specific resource and scopes it to drafts, which cleanly separates it from create-postcard-tool, submit-postcard-tool and delete-draft-tool. It stops short of naming the sibling to use for sending, but the object of the operation is unambiguous.

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?

The when is clear (editing an existing draft) and the when-not is explicit ("Submitted postcards cannot be changed"). It never names an alternative route, e.g. submit-postcard-tool for sending or create-postcard-tool for new cards, so an agent must still infer the transition path.

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