Skip to main content
Glama

Batch Create qURLs

batch_create_qurls

Create up to 100 protected qURLs in one request to provision vendor lists or per-customer share links, returning per-item success and failure results instead of looping single creations.

Instructions

Create up to 100 qURLs in a single request. The single-call alternative to looping create_qurl — saves round trips and returns a single envelope of per-item results. Only use this when the user explicitly wants multiple qURLs in one request. Never use it for a single URL, a single file, a single image, or a single attachment. Do not use this tool for uploaded files, image attachments, PDFs, or base64 file content — use upload_file_data_qurl (HTTP mode) or upload_file_qurl (stdio mode) instead. Not transactional: items succeed or fail independently (see succeeded/failed counts and per-item error). Use this when you need to mint many qURLs at once (e.g. provisioning a vendor list, distributing per-customer share links). Use create_qurl for a single resource. Response shape: { succeeded: number, failed: number, results: BatchItemResult[], request_id?: string }. Each results[i] carries index (matching the input position), success, plus either qurl_link + resource_id + qurl_site + expires_at (success) OR error: { code, message } (failure). Successful items may also carry branded_domain for custom-domain anchor text. Partial failure signaling: the handler sets isError: true on the tool response whenever failed > 0, so agents can branch without parsing JSON. The HTTP layer also returns 400 when every item fails — that's surfaced through the same shape (read data.results[*].error). One-shot links: like create_qurl, every qurl_link in the response is shown ONCE. Don't lose them.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "items": "<items>"
    },
    "name": "batch_create_qurls"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesArray of qURL creation requests (1-100 items)

Output Schema

NameRequiredDescriptionDefault
failedYes
resultsYes
succeededYes
request_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.8
    • addedInput schema / properties / items / items / properties / name
      Added value: +{
      +  "description": "Public name recipients see on the qURL page and in link previews; it also names the passkey they save. Write a short, specific, human-readable title for what is shared (e.g. 'Q3 board deck', 'Acme staging dashboard'); never a generic or random string. It is public on qurl.link: never include internal hostnames, IPs, secrets, or recipient details (max 100 chars, one line). Ignored when the target URL reuses an existing resource, which keeps its name. Not the same as `label`, which identifies who one link is for.",
      +  "maxLength": 100,
      +  "minLength": 1,
      +  "pattern": "^[^\\p{Cc}\\p{Cf}\\u2028\\u2029]*$",
      +  "type": "string"
      +}
    • changedInput schema / properties / items / items / required
      Previous value: -[
      -  "target_url"
      -]New value: +[
      +  "target_url",
      +  "name"
      +]
  2. Changed1 schema field changedv0.2.2
    • changedInput schema / properties / items / items / properties / expires_in / description
      Previous value: -"Duration string (e.g., \"1h\", \"24h\", \"7d\")"New value: +"Duration string (e.g., \"1h\", \"24h\", \"7d\"; the API enforces 1m to 30d)"
  3. Changed38 schema fields changedv0.2.1
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / items / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / items / items / properties / access_policy / additionalProperties
      Removed value: -false
    • removedInput schema / properties / items / items / properties / access_policy / properties / ai_agent_policy / additionalProperties
      Removed value: -false
    • changedInput schema / properties / items / items / properties / access_policy / properties / ai_agent_policy / properties / allow_categories / description
      Previous value: -"AI agent categories to permit (all others blocked)"New value: +"AI agent categories to permit (all others blocked; max 20 entries, 128 chars each)"
    • addedInput schema / properties / items / items / properties / access_policy / properties / ai_agent_policy / properties / allow_categories / items / maxLength
      Added value: +128
    • addedInput schema / properties / items / items / properties / access_policy / properties / ai_agent_policy / properties / allow_categories / items / minLength
      Added value: +1
    • addedInput schema / properties / items / items / properties / access_policy / properties / ai_agent_policy / properties / allow_categories / maxItems
      Added value: +20
    • changedInput schema / properties / items / items / properties / access_policy / properties / ai_agent_policy / properties / deny_categories / description
      Previous value: -"AI agent categories to block (e.g., gptbot, commoncrawl)"New value: +"AI agent categories to block (e.g., gptbot, commoncrawl; max 20 entries, 128 chars each)"
    • addedInput schema / properties / items / items / properties / access_policy / properties / ai_agent_policy / properties / deny_categories / items / maxLength
      Added value: +128
    • addedInput schema / properties / items / items / properties / access_policy / properties / ai_agent_policy / properties / deny_categories / items / minLength
      Added value: +1
    • addedInput schema / properties / items / items / properties / access_policy / properties / ai_agent_policy / properties / deny_categories / maxItems
      Added value: +20
    • changedInput schema / properties / items / items / properties / access_policy / properties / geo_allowlist / description
      Previous value: -"Allowed country codes (ISO 3166-1 alpha-2)"New value: +"Allowed country codes (ISO 3166-1 alpha-2; max 50 entries, 8 chars each)"
    • addedInput schema / properties / items / items / properties / access_policy / properties / geo_allowlist / items / maxLength
      Added value: +8
    • addedInput schema / properties / items / items / properties / access_policy / properties / geo_allowlist / items / minLength
      Added value: +1
    • addedInput schema / properties / items / items / properties / access_policy / properties / geo_allowlist / maxItems
      Added value: +50
    • changedInput schema / properties / items / items / properties / access_policy / properties / geo_denylist / description
      Previous value: -"Denied country codes (ISO 3166-1 alpha-2)"New value: +"Denied country codes (ISO 3166-1 alpha-2; max 50 entries, 8 chars each)"
    • addedInput schema / properties / items / items / properties / access_policy / properties / geo_denylist / items / maxLength
      Added value: +8
    • addedInput schema / properties / items / items / properties / access_policy / properties / geo_denylist / items / minLength
      Added value: +1
    • addedInput schema / properties / items / items / properties / access_policy / properties / geo_denylist / maxItems
      Added value: +50
    • changedInput schema / properties / items / items / properties / access_policy / properties / ip_allowlist / description
      Previous value: -"Allowed IP addresses or CIDR ranges"New value: +"Allowed IP addresses or CIDR ranges (max 100 entries, 64 chars each)"
    • addedInput schema / properties / items / items / properties / access_policy / properties / ip_allowlist / items / maxLength
      Added value: +64
    • addedInput schema / properties / items / items / properties / access_policy / properties / ip_allowlist / items / minLength
      Added value: +1
    • addedInput schema / properties / items / items / properties / access_policy / properties / ip_allowlist / maxItems
      Added value: +100
    • changedInput schema / properties / items / items / properties / access_policy / properties / ip_denylist / description
      Previous value: -"Denied IP addresses or CIDR ranges"New value: +"Denied IP addresses or CIDR ranges (max 100 entries, 64 chars each)"
    • addedInput schema / properties / items / items / properties / access_policy / properties / ip_denylist / items / maxLength
      Added value: +64
    • addedInput schema / properties / items / items / properties / access_policy / properties / ip_denylist / items / minLength
      Added value: +1
    • addedInput schema / properties / items / items / properties / access_policy / properties / ip_denylist / maxItems
      Added value: +100
    • changedInput schema / properties / items / items / properties / access_policy / properties / user_agent_allow_regex / description
      Previous value: -"Regex to allow matching user agents"New value: +"Regex to allow matching user agents (max 256 chars)"
    • addedInput schema / properties / items / items / properties / access_policy / properties / user_agent_allow_regex / maxLength
      Added value: +256
    • changedInput schema / properties / items / items / properties / access_policy / properties / user_agent_deny_regex / description
      Previous value: -"Regex to deny matching user agents"New value: +"Regex to deny matching user agents (max 256 chars)"
    • addedInput schema / properties / items / items / properties / access_policy / properties / user_agent_deny_regex / maxLength
      Added value: +256
    • changedInput schema / properties / items / items / properties / custom_domain / description
      Previous value: -"Custom domain to assign to the auto-created resource"New value: +"Custom domain to assign to the auto-created resource (max 253 chars, must be registered/active/owned)."
    • addedInput schema / properties / items / items / properties / custom_domain / maxLength
      Added value: +253
    • changedInput schema / properties / items / items / properties / max_sessions / description
      Previous value: -"Maximum concurrent sessions (0 = unlimited, max 1000)"New value: +"Maximum concurrent sessions for this qURL token (0 = unlimited when one_time_use is explicitly false; max 1000)"
    • changedInput schema / properties / items / items / properties / session_duration / description
      Previous value: -"How long access lasts after clicking (e.g., \"1h\")"New value: +"How long access lasts after the recipient reaches the content (e.g., \"1h\"). This anchors the resource-level session-duration cap when a new resource is created."
    • addedInput schema / properties / items / items / properties / type
      Added value: +{
      +  "description": "Resource type for integrations allowed to mint non-url qURLs (max 64 chars). Defaults to url.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "failed": {
      +      "type": "number"
      +    },
      +    "request_id": {
      +      "type": "string"
      +    },
      +    "results": {
      +      "items": {
      +        "description": "Per-item result. Discriminated on `success`.",
      +        "oneOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "branded_domain": {
      +                "description": "Bare branded hostname for anchor text when the resource has a usable custom domain",
      +                "type": "string"
      +              },
      +              "expires_at": {
      +                "type": "string"
      +              },
      +              "index": {
      +                "description": "Index of the corresponding item in the input `items` array",
      +                "type": "number"
      +              },
      +              "qurl_link": {
      +                "description": "One-shot display access link — shown ONCE on creation",
      +                "type": "string"
      +              },
      +              "qurl_site": {
      +                "type": "string"
      +              },
      +              "resource_id": {
      +                "type": "string"
      +              },
      +              "success": {
      +                "const": true,
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "index",
      +              "success",
      +              "resource_id",
      +              "qurl_link",
      +              "qurl_site",
      +              "expires_at"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": {},
      +            "properties": {
      +              "error": {
      +                "additionalProperties": {},
      +                "properties": {
      +                  "code": {
      +                    "type": "string"
      +                  },
      +                  "message": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "code",
      +                  "message"
      +                ],
      +                "type": "object"
      +              },
      +              "index": {
      +                "description": "Index of the corresponding item in the input `items` array",
      +                "type": "number"
      +              },
      +              "success": {
      +                "const": false,
      +                "type": "boolean"
      +              }
      +            },
      +            "required": [
      +              "index",
      +              "success",
      +              "error"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "type": "array"
      +    },
      +    "succeeded": {
      +      "type": "number"
      +    }
      +  },
      +  "required": [
      +    "succeeded",
      +    "failed",
      +    "results"
      +  ],
      +  "type": "object"
      +}
  4. First observedv0.2.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only say non-readonly, non-idempotent, non-destructive; the description adds genuinely new behavior: per-item independence ('Not transactional'), partial-failure signaling via `isError: true` when `failed > 0`, an HTTP 400 when all items fail, and that `qurl_link` values are shown exactly once. It does not state rate limits, auth requirements, or ordering guarantees on the response, which keeps it short of a 5.

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

Conciseness4/5

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

Front-loads the batch purpose and the single-item exclusion, and the bolded labels ('Not transactional', 'Response shape', 'Partial failure signaling', 'One-shot links') make it scannable. It repeats itself, though: the 'explicitly wants multiple' rule, the 'not for a single URL' rule, and 'Use `create_qurl` for a single resource' cover the same ground twice, and the response-shape block partially duplicates the output schema.

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 one-parameter batch mutation with rich annotations and an output schema, this is nearly complete: failure semantics, error branching, and the one-shot link hazard are all covered. The return-value walkthrough overlaps an output schema that already exists, so some of the space could have gone to batch-level concerns instead.

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%, including detailed per-field text for `name`, `target_url`, `expires_in`, `one_time_use`, `access_policy`, and `custom_domain`, so the schema carries parameter meaning. The description adds only the 1-100 item bound already encoded as minItems/maxItems, and says nothing about how per-item options interact within a batch.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with explicit scope: 'Create up to 100 qURLs in a single request,' and immediately frames it as the batch counterpart to `create_qurl`. An agent can distinguish it from `create_qurl` and the upload tools without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Gives explicit when-to-use ('user explicitly wants multiple qURLs in one request', provisioning vendor lists, per-customer share links) and when-not ('Never use it for a single URL, a single file, a single image, or a single attachment'), plus named alternatives for file cases: `upload_file_data_qurl` (HTTP) and `upload_file_qurl` (stdio).

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.