Skip to main content
Glama

Batch shorten · 批量短链(短.在线)

shorten_urls
Idempotent

按 client_ref 对应,一次创建多条短链,可部分成功。需已注册账号。 Create several short links in one call, matched by client_ref. Partial success is allowed. A registered account is 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": [
        {
          "url": "https://example.com/notes",
          "alias": "notes",
          "title": "Notes",
          "locale": "zh-cn",
          "client_ref": "item-1"
        }
      ],
      "idempotency_key": "example-batch-1"
    },
    "name": "shorten_urls"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesOne link each.
idempotency_keyYesUnique client key. Replays the stored result for 24h.

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": {
      -      "batch_id": {
      -        "type": "string"
      -      },
      -      "batch_mode": {
      -        "const": "sync",
      -        "type": "string"
      -      },
      -      "fail_count": {
      -        "type": "number"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "ok_count": {
      -        "type": "number"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "results": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "client_ref": {
      -              "type": "string"
      -            },
      -            "ok": {
      -              "type": "boolean"
      -            },
      -            "problem": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "result": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "retryable": {
      -              "type": "boolean"
      -            }
      -          },
      -          "required": [
      -            "client_ref",
      -            "ok"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "batch_id",
      -      "batch_mode",
      -      "ok_count",
      -      "fail_count",
      -      "results"
      -    ],
      -    "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"
      -      },
      -      "plans_url": {
      -        "type": "string"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "resend_path": {
      -        "description": "Where to resend verification email if this would raise the account's limits.",
      -        "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"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "batch_id": {
      +        "type": "string"
      +      },
      +      "batch_mode": {
      +        "const": "sync",
      +        "type": "string"
      +      },
      +      "fail_count": {
      +        "type": "number"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "ok_count": {
      +        "type": "number"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "results": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "client_ref": {
      +              "type": "string"
      +            },
      +            "ok": {
      +              "type": "boolean"
      +            },
      +            "problem": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "result": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "retryable": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "client_ref",
      +            "ok"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "batch_id",
      +      "batch_mode",
      +      "ok_count",
      +      "fail_count",
      +      "results"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "accepted": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "alias_normalized": {
      +        "type": "string"
      +      },
      +      "aliases": {
      +        "items": {
      +          "type": "string"
      +        },
      +        "type": "array"
      +      },
      +      "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"
      +      },
      +      "plans_url": {
      +        "type": "string"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "resend_path": {
      +        "description": "Where to resend verification email if this would raise the account's limits.",
      +        "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"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "batch_id": {
      -        "type": "string"
      -      },
      -      "batch_mode": {
      -        "const": "sync",
      -        "type": "string"
      -      },
      -      "fail_count": {
      -        "type": "number"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "ok_count": {
      -        "type": "number"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "results": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "client_ref": {
      -              "type": "string"
      -            },
      -            "ok": {
      -              "type": "boolean"
      -            },
      -            "problem": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "result": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "retryable": {
      -              "type": "boolean"
      -            }
      -          },
      -          "required": [
      -            "client_ref",
      -            "ok"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "batch_id",
      -      "batch_mode",
      -      "ok_count",
      -      "fail_count",
      -      "results"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "plans_url": {
      -        "type": "string"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "resend_path": {
      -        "description": "Where to resend verification email if this would raise the account's limits.",
      -        "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"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "batch_id": {
      +        "type": "string"
      +      },
      +      "batch_mode": {
      +        "const": "sync",
      +        "type": "string"
      +      },
      +      "fail_count": {
      +        "type": "number"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "ok_count": {
      +        "type": "number"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "results": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "client_ref": {
      +              "type": "string"
      +            },
      +            "ok": {
      +              "type": "boolean"
      +            },
      +            "problem": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "result": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "retryable": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "client_ref",
      +            "ok"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "batch_id",
      +      "batch_mode",
      +      "ok_count",
      +      "fail_count",
      +      "results"
      +    ],
      +    "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"
      +      },
      +      "plans_url": {
      +        "type": "string"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "resend_path": {
      +        "description": "Where to resend verification email if this would raise the account's limits.",
      +        "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"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "batch_id": {
      -        "type": "string"
      -      },
      -      "batch_mode": {
      -        "const": "sync",
      -        "type": "string"
      -      },
      -      "fail_count": {
      -        "type": "number"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "ok_count": {
      -        "type": "number"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "results": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "client_ref": {
      -              "type": "string"
      -            },
      -            "ok": {
      -              "type": "boolean"
      -            },
      -            "problem": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "result": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "retryable": {
      -              "type": "boolean"
      -            }
      -          },
      -          "required": [
      -            "client_ref",
      -            "ok"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "batch_id",
      -      "batch_mode",
      -      "ok_count",
      -      "fail_count",
      -      "results"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "resend_path": {
      -        "description": "Where to resend verification email if this would raise the account's limits.",
      -        "type": "string"
      -      },
      -      "retryable": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "error",
      -      "code",
      -      "message",
      -      "type",
      -      "title",
      -      "retryable"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "batch_id": {
      +        "type": "string"
      +      },
      +      "batch_mode": {
      +        "const": "sync",
      +        "type": "string"
      +      },
      +      "fail_count": {
      +        "type": "number"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "ok_count": {
      +        "type": "number"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "results": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "client_ref": {
      +              "type": "string"
      +            },
      +            "ok": {
      +              "type": "boolean"
      +            },
      +            "problem": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "result": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "retryable": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "client_ref",
      +            "ok"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "batch_id",
      +      "batch_mode",
      +      "ok_count",
      +      "fail_count",
      +      "results"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "plans_url": {
      +        "type": "string"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "resend_path": {
      +        "description": "Where to resend verification email if this would raise the account's limits.",
      +        "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"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id"
      +    ],
      +    "type": "object"
      +  }
      +]
  4. Changed8 schema fields changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Client-generated unique key for this create. Required. Replays within 24h."New value: +"Unique client key. Replays the stored result for 24h."
    • changedInput schema / properties / items / description
      Previous value: -"Synchronous batch items (1 to 100). Each item creates one short link."New value: +"One link each."
    • changedInput schema / properties / items / items / properties / alias / description
      Previous value: -"Optional custom path segment (stored lowercase). Do not send customSlug."New value: +"No customSlug; lowercased."
    • changedInput schema / properties / items / items / properties / client_ref / description
      Previous value: -"Batch item correlation id. Do not join on array index. The link_created event stores client_ref only when it is 1 to 64 characters matching [A-Za-z0-9._:-]. Any other value is omitted from that event. link_create_failed uses the same rule."New value: +"Do not join on array index. The link_created event stores client_ref only when it is 1 to 64 characters matching [A-Za-z0-9._:-]. link_create_failed uses the same rule; any other value is omitted."
    • changedInput schema / properties / items / items / properties / locale / description
      Previous value: -"API language preference. Canonical values: en and zh-CN. Documented aliases normalized to the canonical value: zh-cn, zh-Hans, zh-hans, zh_Hans, zh_hans. Traditional Chinese is not supported. EN, ZH-CN, and bare zh are rejected. Omitted or blank defaults to en. This preference does not rewrite URL bytes, translate parameter names, or use the caller's location. Website routes stay /zh-cn."New value: +"en or zh-CN. Aliases zh-cn, zh-Hans, zh-hans, zh_Hans, zh_hans become zh-CN. Rejects Traditional Chinese, EN, ZH-CN, and bare zh. Blank is en. Does not rewrite URLs, names, or location. Routes stay /zh-cn."
    • removedInput schema / properties / items / items / properties / title / description
      Removed value: -"Optional link title, at most 256 characters."
    • changedInput schema / properties / items / items / properties / url / description
      Previous value: -"Destination HTTPS/HTTP URL to shorten. Required. Do not send longUrl."New value: +"HTTP or HTTPS. Do not send longUrl."
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "batch_id": {
      -        "type": "string"
      -      },
      -      "batch_mode": {
      -        "const": "sync",
      -        "type": "string"
      -      },
      -      "fail_count": {
      -        "type": "number"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "ok_count": {
      -        "type": "number"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "results": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "client_ref": {
      -              "type": "string"
      -            },
      -            "ok": {
      -              "type": "boolean"
      -            },
      -            "problem": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "result": {
      -              "additionalProperties": {},
      -              "propertyNames": {
      -                "type": "string"
      -              },
      -              "type": "object"
      -            },
      -            "retryable": {
      -              "type": "boolean"
      -            }
      -          },
      -          "required": [
      -            "client_ref",
      -            "ok"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "batch_id",
      -      "batch_mode",
      -      "ok_count",
      -      "fail_count",
      -      "results"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "code": {
      -        "type": "string"
      -      },
      -      "error": {
      -        "type": "string"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      },
      -      "resend_path": {
      -        "description": "Where to resend the verification email when verification would raise this account's limits.",
      -        "type": "string"
      -      },
      -      "retryable": {
      -        "type": "boolean"
      -      },
      -      "title": {
      -        "type": "string"
      -      },
      -      "type": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id",
      -      "error",
      -      "code",
      -      "message",
      -      "type",
      -      "title",
      -      "retryable"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "request_id": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "request_id"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "batch_id": {
      +        "type": "string"
      +      },
      +      "batch_mode": {
      +        "const": "sync",
      +        "type": "string"
      +      },
      +      "fail_count": {
      +        "type": "number"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "ok_count": {
      +        "type": "number"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "results": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "client_ref": {
      +              "type": "string"
      +            },
      +            "ok": {
      +              "type": "boolean"
      +            },
      +            "problem": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "result": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "retryable": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "client_ref",
      +            "ok"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "batch_id",
      +      "batch_mode",
      +      "ok_count",
      +      "fail_count",
      +      "results"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "resend_path": {
      +        "description": "Where to resend verification email if this would raise the account's limits.",
      +        "type": "string"
      +      },
      +      "retryable": {
      +        "type": "boolean"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "error",
      +      "code",
      +      "message",
      +      "type",
      +      "title",
      +      "retryable"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id"
      +    ],
      +    "type": "object"
      +  }
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / client_ref / description
      Previous value: -"Batch item correlation id (never use array index)."New value: +"Batch item correlation id. Do not join on array index. The link_created event stores client_ref only when it is 1 to 64 characters matching [A-Za-z0-9._:-]. Any other value is omitted from that event. link_create_failed uses the same rule."
  6. Changed4 schema fields changed
    • removedOutput schema / additionalProperties
      Removed value: -false
    • addedOutput schema / oneOf
      Added value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "batch_id": {
      +        "type": "string"
      +      },
      +      "batch_mode": {
      +        "const": "sync",
      +        "type": "string"
      +      },
      +      "fail_count": {
      +        "type": "number"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "ok_count": {
      +        "type": "number"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "results": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "client_ref": {
      +              "type": "string"
      +            },
      +            "ok": {
      +              "type": "boolean"
      +            },
      +            "problem": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "result": {
      +              "additionalProperties": {},
      +              "propertyNames": {
      +                "type": "string"
      +              },
      +              "type": "object"
      +            },
      +            "retryable": {
      +              "type": "boolean"
      +            }
      +          },
      +          "required": [
      +            "client_ref",
      +            "ok"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "batch_id",
      +      "batch_mode",
      +      "ok_count",
      +      "fail_count",
      +      "results"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "code": {
      +        "type": "string"
      +      },
      +      "error": {
      +        "type": "string"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      },
      +      "resend_path": {
      +        "description": "Where to resend the verification email when verification would raise this account's limits.",
      +        "type": "string"
      +      },
      +      "retryable": {
      +        "type": "boolean"
      +      },
      +      "title": {
      +        "type": "string"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id",
      +      "error",
      +      "code",
      +      "message",
      +      "type",
      +      "title",
      +      "retryable"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "request_id": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "request_id"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / properties
      Removed value: -{
      -  "batch_id": {
      -    "type": "string"
      -  },
      -  "batch_mode": {
      -    "const": "sync",
      -    "type": "string"
      -  },
      -  "code": {
      -    "type": "string"
      -  },
      -  "error": {
      -    "type": "string"
      -  },
      -  "fail_count": {
      -    "type": "number"
      -  },
      -  "message": {
      -    "type": "string"
      -  },
      -  "ok": {
      -    "type": "boolean"
      -  },
      -  "ok_count": {
      -    "type": "number"
      -  },
      -  "request_id": {
      -    "type": "string"
      -  },
      -  "resend_path": {
      -    "description": "Where to resend the verification email when verification would raise this account's limits.",
      -    "type": "string"
      -  },
      -  "results": {
      -    "items": {
      -      "additionalProperties": {},
      -      "propertyNames": {
      -        "type": "string"
      -      },
      -      "type": "object"
      -    },
      -    "type": "array"
      -  },
      -  "retryable": {
      -    "type": "boolean"
      -  },
      -  "title": {
      -    "type": "string"
      -  },
      -  "type": {
      -    "type": "string"
      -  }
      -}
    • removedOutput schema / required
      Removed value: -[
      -  "ok",
      -  "request_id"
      -]
  7. Changed3 schema fields changed
    • addedOutput schema / properties / resend_path
      Added value: +{
      +  "description": "Where to resend the verification email when verification would raise this account's limits.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / title
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / type
      Added value: +{
      +  "type": "string"
      +}
  8. Changed1 schema field changed
    • changedInput schema / properties / items / items / properties / locale / description
      Previous value: -"Accepted values: en, zh-CN, and zh-cn (the only case fold of zh-CN). EN, ZH-CN, and bare zh are rejected. Omitted or blank defaults to en."New value: +"API language preference. Canonical values: en and zh-CN. Documented aliases normalized to the canonical value: zh-cn, zh-Hans, zh-hans, zh_Hans, zh_hans. Traditional Chinese is not supported. EN, ZH-CN, and bare zh are rejected. Omitted or blank defaults to en. This preference does not rewrite URL bytes, translate parameter names, or use the caller's location. Website routes stay /zh-cn."
  9. Changed4 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "idempotency_key": "example-batch-1",
      +    "items": [
      +      {
      +        "alias": "notes",
      +        "client_ref": "item-1",
      +        "locale": "zh-cn",
      +        "title": "Notes",
      +        "url": "https://example.com/notes"
      +      }
      +    ]
      +  }
      +]
    • addedInput schema / properties / items / description
      Added value: +"Synchronous batch items (1 to 100). Each item creates one short link."
    • addedInput schema / properties / items / items / properties / locale / description
      Added value: +"Accepted values: en, zh-CN, and zh-cn (the only case fold of zh-CN). EN, ZH-CN, and bare zh are rejected. Omitted or blank defaults to en."
    • addedInput schema / properties / items / items / properties / title / description
      Added value: +"Optional link title, at most 256 characters."
  10. Changed8 schema fields changed
    • changedInput schema / properties / idempotency_key / description
      Previous value: -"Idempotency key (same semantics as REST Idempotency-Key header)"New value: +"Client-generated unique key for this create. Required. Replays within 24h."
    • changedInput schema / properties / items / items / properties / alias / description
      Previous value: -"Optional ASCII alias [A-Za-z0-9_-], stored lowercase"New value: +"Optional custom path segment (stored lowercase). Do not send customSlug."
    • addedInput schema / properties / items / items / properties / client_ref / description
      Added value: +"Batch item correlation id (never use array index)."
    • removedInput schema / properties / items / items / properties / customSlug
      Removed value: -{
      -  "description": "Optional ASCII alias [A-Za-z0-9_-], stored lowercase",
      -  "maxLength": 32,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • removedInput schema / properties / items / items / properties / longUrl
      Removed value: -{
      -  "description": "http(s) destination URL — Soft C SSRF no-fetch applies",
      -  "maxLength": 2048,
      -  "minLength": 1,
      -  "type": "string"
      -}
    • changedInput schema / properties / items / items / properties / url / description
      Previous value: -"http(s) destination URL — Soft C SSRF no-fetch applies"New value: +"Destination HTTPS/HTTP URL to shorten. Required. Do not send longUrl."
    • changedInput schema / properties / items / items / required
      Previous value: -[
      -  "client_ref"
      -]New value: +[
      +  "client_ref",
      +  "url"
      +]
    • changedInput schema / required
      Previous value: -[
      -  "items"
      -]New value: +[
      +  "items",
      +  "idempotency_key"
      +]
  11. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true, so the safety/mutability profile is covered; the description adds genuine beyond-schema behavior: partial success is possible, and an account must already exist. It does not explain what happens to the successful items when some fail, or whether a replay with a new idempotency_key re-attempts only failed items.

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 core facts — batch creation, client_ref matching, partial success, account prerequisite — are front-loaded and stated in one tight sentence per language. The bilingual duplication roughly doubles the token count, but it matches the service's stated audience rather than being redundant 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?

An output schema exists, so return values need not be explained, and the description covers the mutation nature, the auth prerequisite, and the non-atomic outcome. The main remaining gap is operational: nothing says what an agent should do with the failed subset after a partial success.

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 the schema already carries the heavy parameter documentation (url vs alias mapping, locale normalization, client_ref character rules). The description adds only the correlation intent of client_ref ('matched by client_ref'), which is a small but real addition over the schema's formatting rules — 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?

The description states a specific verb and resource — create several short links in one call — and adds the correlation rule (matched by client_ref) and the partial-success contract. It never names the single-link sibling shorten_url, so the batch-vs-single distinction is left for the agent to infer from wording alone rather than being asserted.

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 is implied by 'in one call' / 'Partial success is allowed', and one real prerequisite is given ('A registered account is required'). There is no explicit when-to-use-this-vs-shorten_url statement and no guidance on when partial failure should trigger a retry versus a per-item fix.

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