Skip to main content
Glama

Prepare campaign pack · 准备短链接和二维码文件(短.在线)

prepare_campaign_pack

从你提供的表格行生成短链接和二维码文件:分配 item_id、创建短链接与二维码;与你提供的表格行一一对应,每个二维码编码的都是对应的返回短链接;并返回可下载文件。每个 PNG 二维码另有 SVG 文本 resource,见 qr_files.svg_uri,用 resources/read 读取后可保存。部分行可成功。恢复时未再次提交的行会保留,返回的是完整活动包。ready_to_share 仅在每一行都已核对且每个文件都已生成时为 true。需要已注册账号。 Prepare short links and QR files from tabular rows you provide: assign item_id, create short links and QR codes; match each item to the row you provided so that each QR encodes the returned short link; and return downloadable files. Each PNG QR also has an SVG text resource at qr_files.svg_uri. resources/read returns that SVG as text so a client can save the file. Mixed per-item outcomes allowed. Rows you do not resubmit on recovery stay in the pack, and the result is the full pack. ready_to_share is true only when every row is checked and every file is present and generated. Registered account required.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "items": [
        {
          "label": "Row A",
          "destination_url": "https://example.com/a"
        }
      ],
      "options": {
        "png_size": 512,
        "qr_format": "png"
      }
    },
    "name": "prepare_campaign_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesRows with optional destination_url, label, language, and item_id. At most 10000 rows, 64 columns, 8192 characters per field, and 1048576 bytes of items JSON. These are request limits, not a plan allowance. A row may omit destination_url; that row is an exception in the pack, not a rejected request.
optionsNoQR sizing, format, language, or a saved setup_id to apply.
recovery_campaign_idNoOptional prior campaign_id when re-running a pack in recovery mode.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "artifacts": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "exception_list_markdown": {
      -            "type": "string"
      -          },
      -          "index_markdown": {
      -            "type": "string"
      -          },
      -          "ownership_instructions_slot_markdown": {
      -            "type": "string"
      -          },
      -          "qr_files": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "alias_filename": {
      -                  "type": "string"
      -                },
      -                "bytes_base64": {
      -                  "type": "string"
      -                },
      -                "filename": {
      -                  "type": "string"
      -                },
      -                "item_id": {
      -                  "type": "string"
      -                },
      -                "mime_type": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "filename",
      -                "item_id",
      -                "mime_type",
      -                "bytes_base64"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "spreadsheet_csv": {
      -            "type": "string"
      -          },
      -          "spreadsheet_notice": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "en": {
      -                "type": "string"
      -              },
      -              "zh-CN": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "en",
      -              "zh-CN"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "spreadsheet_csv",
      -          "spreadsheet_notice",
      -          "index_markdown",
      -          "exception_list_markdown",
      -          "ownership_instructions_slot_markdown",
      -          "qr_files"
      -        ],
      -        "type": "object"
      -      },
      -      "campaign_id": {
      -        "type": "string"
      -      },
      -      "items": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "changed_since_previous": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "baseline": {
      -                  "description": "Present when this campaign has no earlier pack for this item_id.",
      -                  "enum": [
      -                    "first_version"
      -                  ],
      -                  "type": "string"
      -                },
      -                "changed": {
      -                  "type": "boolean"
      -                },
      -                "fields": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "required": [
      -                "changed"
      -              ],
      -              "type": "object"
      -            },
      -            "checks": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "check": {
      -                    "type": "string"
      -                  },
      -                  "detail": {
      -                    "type": "string"
      -                  },
      -                  "passed": {
      -                    "type": [
      -                      "boolean",
      -                      "null"
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "check",
      -                  "passed"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "exception": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "code": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "code",
      -                "message"
      -              ],
      -              "type": "object"
      -            },
      -            "item_id": {
      -              "type": "string"
      -            },
      -            "qr_filename": {
      -              "type": "string"
      -            },
      -            "qr_filename_alias": {
      -              "type": "string"
      -            },
      -            "qr_revision": {
      -              "type": "number"
      -            },
      -            "qr_tracking_url": {
      -              "type": "string"
      -            },
      -            "returned_url": {
      -              "type": "string"
      -            },
      -            "short_url_ascii": {
      -              "type": "string"
      -            },
      -            "short_url_unicode": {
      -              "type": "string"
      -            },
      -            "status": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "item_id",
      -            "status",
      -            "checks",
      -            "changed_since_previous"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "ready_to_share": {
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "campaign_id",
      -      "ready_to_share",
      -      "items",
      -      "artifacts"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "alias_normalized": {
      -        "type": "string"
      -      },
      -      "code": {
      -        "type": "string"
      -      },
      -      "detail": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "field": {
      -        "type": "string"
      -      },
      -      "invalid_chars": {
      -        "items": {
      -          "type": "string"
      -        },
      -        "maxItems": 5,
      -        "type": "array"
      -      },
      -      "max_length": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "min_length": {
      -        "maximum": 9007199254740991,
      -        "minimum": -9007199254740991,
      -        "type": "integer"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "retry_after": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "retryable": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "error",
      -      "code",
      -      "message",
      -      "type",
      -      "title",
      -      "retryable"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "artifacts": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "exception_list_markdown": {
      +            "type": "string"
      +          },
      +          "index_markdown": {
      +            "type": "string"
      +          },
      +          "ownership_instructions_slot_markdown": {
      +            "type": "string"
      +          },
      +          "qr_files": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "alias_filename": {
      +                  "type": "string"
      +                },
      +                "filename": {
      +                  "type": "string"
      +                },
      +                "item_id": {
      +                  "type": "string"
      +                },
      +                "mime_type": {
      +                  "type": "string"
      +                },
      +                "svg_uri": {
      +                  "description": "MCP text resource uri for the same QR as SVG (image/svg+xml). For a PNG file the name is that filename with .svg. Read it with resources/read to save the file.",
      +                  "type": "string"
      +                },
      +                "uri": {
      +                  "description": "MCP resource uri for this QR file. Read it with resources/read.",
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "filename",
      +                "item_id",
      +                "mime_type",
      +                "uri",
      +                "svg_uri"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "spreadsheet_csv": {
      +            "type": "string"
      +          },
      +          "spreadsheet_notice": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "en": {
      +                "type": "string"
      +              },
      +              "zh-CN": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "en",
      +              "zh-CN"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "spreadsheet_csv",
      +          "spreadsheet_notice",
      +          "index_markdown",
      +          "exception_list_markdown",
      +          "ownership_instructions_slot_markdown",
      +          "qr_files"
      +        ],
      +        "type": "object"
      +      },
      +      "campaign_id": {
      +        "type": "string"
      +      },
      +      "file_resources": {
      +        "description": "MCP resources for the spreadsheet CSV, each QR file, and an SVG text resource for each PNG QR. resources/read returns CSV and SVG as text. The resource name is the filename.",
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "filename": {
      +              "type": "string"
      +            },
      +            "mime_type": {
      +              "type": "string"
      +            },
      +            "uri": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "filename",
      +            "mime_type",
      +            "uri"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "items": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "changed_since_previous": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "baseline": {
      +                  "description": "Present when this campaign has no earlier pack for this item_id.",
      +                  "enum": [
      +                    "first_version"
      +                  ],
      +                  "type": "string"
      +                },
      +                "changed": {
      +                  "type": "boolean"
      +                },
      +                "fields": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "changed"
      +              ],
      +              "type": "object"
      +            },
      +            "checks": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "check": {
      +                    "type": "string"
      +                  },
      +                  "detail": {
      +                    "type": "string"
      +                  },
      +                  "passed": {
      +                    "type": [
      +                      "boolean",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "check",
      +                  "passed"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "exception": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "code": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "item_id": {
      +              "type": "string"
      +            },
      +            "qr_filename": {
      +              "type": "string"
      +            },
      +            "qr_filename_alias": {
      +              "type": "string"
      +            },
      +            "qr_revision": {
      +              "type": "number"
      +            },
      +            "qr_tracking_url": {
      +              "type": "string"
      +            },
      +            "returned_url": {
      +              "type": "string"
      +            },
      +            "short_url_ascii": {
      +              "type": "string"
      +            },
      +            "short_url_unicode": {
      +              "type": "string"
      +            },
      +            "status": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "item_id",
      +            "status",
      +            "checks",
      +            "changed_since_previous"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "ready_to_share": {
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "campaign_id",
      +      "ready_to_share",
      +      "items",
      +      "artifacts",
      +      "file_resources"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "alias_normalized": {
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "detail": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "field": {
      +        "type": "string"
      +      },
      +      "invalid_chars": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 5,
      +        "type": "array"
      +      },
      +      "max_length": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "min_length": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "retry_after": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "retryable": {
      +        "type": "boolean"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "error",
      +      "code",
      +      "message",
      +      "type",
      +      "title",
      +      "retryable"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "artifacts": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "exception_list_markdown": {
      -            "type": "string"
      -          },
      -          "index_markdown": {
      -            "type": "string"
      -          },
      -          "ownership_instructions_slot_markdown": {
      -            "type": "string"
      -          },
      -          "qr_files": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "alias_filename": {
      -                  "type": "string"
      -                },
      -                "bytes_base64": {
      -                  "type": "string"
      -                },
      -                "filename": {
      -                  "type": "string"
      -                },
      -                "item_id": {
      -                  "type": "string"
      -                },
      -                "mime_type": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "filename",
      -                "item_id",
      -                "mime_type",
      -                "bytes_base64"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "spreadsheet_csv": {
      -            "type": "string"
      -          },
      -          "spreadsheet_notice": {
      -            "additionalProperties": false,
      -            "properties": {
      -              "en": {
      -                "type": "string"
      -              },
      -              "zh-CN": {
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "en",
      -              "zh-CN"
      -            ],
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "spreadsheet_csv",
      -          "spreadsheet_notice",
      -          "index_markdown",
      -          "exception_list_markdown",
      -          "ownership_instructions_slot_markdown",
      -          "qr_files"
      -        ],
      -        "type": "object"
      -      },
      -      "campaign_id": {
      -        "type": "string"
      -      },
      -      "items": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "changed_since_previous": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "baseline": {
      -                  "description": "Present when this campaign has no earlier pack for this item_id.",
      -                  "enum": [
      -                    "first_version"
      -                  ],
      -                  "type": "string"
      -                },
      -                "changed": {
      -                  "type": "boolean"
      -                },
      -                "fields": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "required": [
      -                "changed"
      -              ],
      -              "type": "object"
      -            },
      -            "checks": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "check": {
      -                    "type": "string"
      -                  },
      -                  "detail": {
      -                    "type": "string"
      -                  },
      -                  "passed": {
      -                    "type": [
      -                      "boolean",
      -                      "null"
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "check",
      -                  "passed"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "exception": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "code": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "code",
      -                "message"
      -              ],
      -              "type": "object"
      -            },
      -            "item_id": {
      -              "type": "string"
      -            },
      -            "qr_filename": {
      -              "type": "string"
      -            },
      -            "qr_filename_alias": {
      -              "type": "string"
      -            },
      -            "qr_revision": {
      -              "type": "number"
      -            },
      -            "qr_tracking_url": {
      -              "type": "string"
      -            },
      -            "returned_url": {
      -              "type": "string"
      -            },
      -            "short_url_ascii": {
      -              "type": "string"
      -            },
      -            "short_url_unicode": {
      -              "type": "string"
      -            },
      -            "status": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "item_id",
      -            "status",
      -            "checks",
      -            "changed_since_previous"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "ready_to_share": {
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "campaign_id",
      -      "ready_to_share",
      -      "items",
      -      "artifacts"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "retry_after": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "retryable": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "error",
      -      "code",
      -      "message",
      -      "type",
      -      "title",
      -      "retryable"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "artifacts": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "exception_list_markdown": {
      +            "type": "string"
      +          },
      +          "index_markdown": {
      +            "type": "string"
      +          },
      +          "ownership_instructions_slot_markdown": {
      +            "type": "string"
      +          },
      +          "qr_files": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "alias_filename": {
      +                  "type": "string"
      +                },
      +                "bytes_base64": {
      +                  "type": "string"
      +                },
      +                "filename": {
      +                  "type": "string"
      +                },
      +                "item_id": {
      +                  "type": "string"
      +                },
      +                "mime_type": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "filename",
      +                "item_id",
      +                "mime_type",
      +                "bytes_base64"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "spreadsheet_csv": {
      +            "type": "string"
      +          },
      +          "spreadsheet_notice": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "en": {
      +                "type": "string"
      +              },
      +              "zh-CN": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "en",
      +              "zh-CN"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "spreadsheet_csv",
      +          "spreadsheet_notice",
      +          "index_markdown",
      +          "exception_list_markdown",
      +          "ownership_instructions_slot_markdown",
      +          "qr_files"
      +        ],
      +        "type": "object"
      +      },
      +      "campaign_id": {
      +        "type": "string"
      +      },
      +      "items": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "changed_since_previous": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "baseline": {
      +                  "description": "Present when this campaign has no earlier pack for this item_id.",
      +                  "enum": [
      +                    "first_version"
      +                  ],
      +                  "type": "string"
      +                },
      +                "changed": {
      +                  "type": "boolean"
      +                },
      +                "fields": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "changed"
      +              ],
      +              "type": "object"
      +            },
      +            "checks": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "check": {
      +                    "type": "string"
      +                  },
      +                  "detail": {
      +                    "type": "string"
      +                  },
      +                  "passed": {
      +                    "type": [
      +                      "boolean",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "check",
      +                  "passed"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "exception": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "code": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "item_id": {
      +              "type": "string"
      +            },
      +            "qr_filename": {
      +              "type": "string"
      +            },
      +            "qr_filename_alias": {
      +              "type": "string"
      +            },
      +            "qr_revision": {
      +              "type": "number"
      +            },
      +            "qr_tracking_url": {
      +              "type": "string"
      +            },
      +            "returned_url": {
      +              "type": "string"
      +            },
      +            "short_url_ascii": {
      +              "type": "string"
      +            },
      +            "short_url_unicode": {
      +              "type": "string"
      +            },
      +            "status": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "item_id",
      +            "status",
      +            "checks",
      +            "changed_since_previous"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "ready_to_share": {
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "campaign_id",
      +      "ready_to_share",
      +      "items",
      +      "artifacts"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "alias_normalized": {
      +        "type": "string"
      +      },
      +      "code": {
      +        "type": "string"
      +      },
      +      "detail": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "field": {
      +        "type": "string"
      +      },
      +      "invalid_chars": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "maxItems": 5,
      +        "type": "array"
      +      },
      +      "max_length": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "min_length": {
      +        "maximum": 9007199254740991,
      +        "minimum": -9007199254740991,
      +        "type": "integer"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "retry_after": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "retryable": {
      +        "type": "boolean"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "error",
      +      "code",
      +      "message",
      +      "type",
      +      "title",
      +      "retryable"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "artifacts": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "exception_list_markdown": {
      -            "type": "string"
      -          },
      -          "index_markdown": {
      -            "type": "string"
      -          },
      -          "ownership_instructions_slot_markdown": {
      -            "type": "string"
      -          },
      -          "qr_files": {
      -            "items": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "alias_filename": {
      -                  "type": "string"
      -                },
      -                "bytes_base64": {
      -                  "type": "string"
      -                },
      -                "filename": {
      -                  "type": "string"
      -                },
      -                "item_id": {
      -                  "type": "string"
      -                },
      -                "mime_type": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "filename",
      -                "item_id",
      -                "mime_type",
      -                "bytes_base64"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "spreadsheet_csv": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "spreadsheet_csv",
      -          "index_markdown",
      -          "exception_list_markdown",
      -          "ownership_instructions_slot_markdown",
      -          "qr_files"
      -        ],
      -        "type": "object"
      -      },
      -      "campaign_id": {
      -        "type": "string"
      -      },
      -      "items": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "changed_since_previous": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "blocked_on": {
      -                  "type": "string"
      -                },
      -                "changed": {
      -                  "type": "boolean"
      -                },
      -                "fields": {
      -                  "items": {
      -                    "type": "string"
      -                  },
      -                  "type": "array"
      -                }
      -              },
      -              "required": [
      -                "changed"
      -              ],
      -              "type": "object"
      -            },
      -            "checks": {
      -              "items": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "check": {
      -                    "type": "string"
      -                  },
      -                  "detail": {
      -                    "type": "string"
      -                  },
      -                  "passed": {
      -                    "type": [
      -                      "boolean",
      -                      "null"
      -                    ]
      -                  }
      -                },
      -                "required": [
      -                  "check",
      -                  "passed"
      -                ],
      -                "type": "object"
      -              },
      -              "type": "array"
      -            },
      -            "exception": {
      -              "additionalProperties": false,
      -              "properties": {
      -                "code": {
      -                  "type": "string"
      -                },
      -                "message": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "code",
      -                "message"
      -              ],
      -              "type": "object"
      -            },
      -            "item_id": {
      -              "type": "string"
      -            },
      -            "qr_filename": {
      -              "type": "string"
      -            },
      -            "qr_filename_alias": {
      -              "type": "string"
      -            },
      -            "qr_revision": {
      -              "type": "number"
      -            },
      -            "qr_tracking_url": {
      -              "type": "string"
      -            },
      -            "returned_url": {
      -              "type": "string"
      -            },
      -            "short_url_ascii": {
      -              "type": "string"
      -            },
      -            "short_url_unicode": {
      -              "type": "string"
      -            },
      -            "status": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "item_id",
      -            "status",
      -            "checks",
      -            "changed_since_previous"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "ready_to_share": {
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "campaign_id",
      -      "ready_to_share",
      -      "items",
      -      "artifacts"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "retry_after": {
      -        "exclusiveMinimum": 0,
      -        "maximum": 9007199254740991,
      -        "type": "integer"
      -      },
      -      "retryable": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "error",
      -      "code",
      -      "message",
      -      "type",
      -      "title",
      -      "retryable"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "artifacts": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "exception_list_markdown": {
      +            "type": "string"
      +          },
      +          "index_markdown": {
      +            "type": "string"
      +          },
      +          "ownership_instructions_slot_markdown": {
      +            "type": "string"
      +          },
      +          "qr_files": {
      +            "items": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "alias_filename": {
      +                  "type": "string"
      +                },
      +                "bytes_base64": {
      +                  "type": "string"
      +                },
      +                "filename": {
      +                  "type": "string"
      +                },
      +                "item_id": {
      +                  "type": "string"
      +                },
      +                "mime_type": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "filename",
      +                "item_id",
      +                "mime_type",
      +                "bytes_base64"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "spreadsheet_csv": {
      +            "type": "string"
      +          },
      +          "spreadsheet_notice": {
      +            "additionalProperties": false,
      +            "properties": {
      +              "en": {
      +                "type": "string"
      +              },
      +              "zh-CN": {
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "en",
      +              "zh-CN"
      +            ],
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "spreadsheet_csv",
      +          "spreadsheet_notice",
      +          "index_markdown",
      +          "exception_list_markdown",
      +          "ownership_instructions_slot_markdown",
      +          "qr_files"
      +        ],
      +        "type": "object"
      +      },
      +      "campaign_id": {
      +        "type": "string"
      +      },
      +      "items": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "changed_since_previous": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "baseline": {
      +                  "description": "Present when this campaign has no earlier pack for this item_id.",
      +                  "enum": [
      +                    "first_version"
      +                  ],
      +                  "type": "string"
      +                },
      +                "changed": {
      +                  "type": "boolean"
      +                },
      +                "fields": {
      +                  "items": {
      +                    "type": "string"
      +                  },
      +                  "type": "array"
      +                }
      +              },
      +              "required": [
      +                "changed"
      +              ],
      +              "type": "object"
      +            },
      +            "checks": {
      +              "items": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "check": {
      +                    "type": "string"
      +                  },
      +                  "detail": {
      +                    "type": "string"
      +                  },
      +                  "passed": {
      +                    "type": [
      +                      "boolean",
      +                      "null"
      +                    ]
      +                  }
      +                },
      +                "required": [
      +                  "check",
      +                  "passed"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "exception": {
      +              "additionalProperties": false,
      +              "properties": {
      +                "code": {
      +                  "type": "string"
      +                },
      +                "message": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "code",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "item_id": {
      +              "type": "string"
      +            },
      +            "qr_filename": {
      +              "type": "string"
      +            },
      +            "qr_filename_alias": {
      +              "type": "string"
      +            },
      +            "qr_revision": {
      +              "type": "number"
      +            },
      +            "qr_tracking_url": {
      +              "type": "string"
      +            },
      +            "returned_url": {
      +              "type": "string"
      +            },
      +            "short_url_ascii": {
      +              "type": "string"
      +            },
      +            "short_url_unicode": {
      +              "type": "string"
      +            },
      +            "status": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "item_id",
      +            "status",
      +            "checks",
      +            "changed_since_previous"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "ready_to_share": {
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "campaign_id",
      +      "ready_to_share",
      +      "items",
      +      "artifacts"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "retry_after": {
      +        "exclusiveMinimum": 0,
      +        "maximum": 9007199254740991,
      +        "type": "integer"
      +      },
      +      "retryable": {
      +        "type": "boolean"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "error",
      +      "code",
      +      "message",
      +      "type",
      +      "title",
      +      "retryable"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed2 schema fields changed
    • changedInput schema / properties / items / description
      Previous value: -"Approved rows with destination_url and optional label, language, and item_id."New value: +"Rows with optional destination_url, label, language, and item_id. At most 10000 rows, 64 columns, 8192 characters per field, and 1048576 bytes of items JSON. These are request limits, not a plan allowance. A row may omit destination_url; that row is an exception in the pack, not a rejected request."
    • addedInput schema / properties / items / maxItems
      Added value: +10000
  5. Added

TDQS

A3.8/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true), the description discloses several non-obvious traits: mixed per-item outcomes are allowed, a row without destination_url becomes an exception rather than a rejected request, recovery preserves previously submitted rows, ready_to_share is a strict all-or-nothing flag, and a registered account is required. It does not fully explain re-run idempotency or what happens to an existing pack, which is the main remaining gap.

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?

Content is front-loaded with purpose, then behavior, then the SVG resource note and the ready_to_share rule. The bilingual duplication roughly doubles length, but it mirrors the same structure and each section carries distinct information, so it stays readable rather than wasteful.

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 batch mutation with nested items, an output schema, and annotations, the definition covers the important behavior: partial success, recovery persistence, the ready_to_share gate, the SVG resource read path, and the account prerequisite. Only the recovery entry conditions and options/setup_id interaction are left for inference.

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 already 100%, but the description still adds meaning: item_id is assigned/echoed, each QR encodes its corresponding returned short link, and recovery_campaign_id is explained as a mode where unsubmitted rows persist so the result is the full pack. That is a real semantic layer over the schema's one-line recovery_campaign_id description.

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?

The description gives a specific verb and resource: generate short links and QR files from tabular rows, assigning item_id and returning downloadable files. The batch/row-oriented nature distinguishes it from single-link siblings like shorten_url or create_qr, though no sibling is named explicitly.

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?

Usage context is implied rather than stated: it is clearly the batch-pack builder, and the recovery paragraph hints at a re-run workflow keyed by recovery_campaign_id. However, it never says when to pick this over shorten_urls or retry_campaign_pack, nor does it define the recovery entry conditions.

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