Skip to main content
Glama

Get campaign pack · 查询短链接和二维码文件(短.在线)

get_campaign_pack
Read-onlyIdempotent

按 campaign_id 返回活动状态、逐行结果与可下载文件。需要已注册账号。 Fetch campaign state, per-item results, and downloadable files by campaign_id. 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": {
      "campaign_id": "cmp_example"
    },
    "name": "get_campaign_pack"
  }
}

Input Schema

NameRequiredDescriptionDefault
campaign_idYesCampaign pack id returned from prepare or retry.

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"
      -          }
      -        },
      -        "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"
      +  }
      +]
  2. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint=false, covering the safety profile. The description still adds real value by disclosing the authentication requirement ('Registered account required') and by enumerating the three output categories, which helps an agent understand what it gets back without opening the output schema.

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

Conciseness3/5

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

The core content is front-loaded and short, but every sentence is duplicated in Chinese and English, roughly doubling the length for an agent that needs only one language pass. The result is readable but carries redundant text.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With one required parameter, full schema coverage, an output schema, and rich annotations, most structured information is already supplied. However, the description does not address how to handle an incomplete or in-progress campaign state, which is the main behavioral question for an asynchronous pack-fetching tool.

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 coverage is 100% and the single campaign_id parameter is fully documented in the schema, including its origin ('returned from prepare or retry'). The description adds no syntax, format, or validation meaning beyond that, so the baseline of 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?

States a specific verb and resource — fetch campaign state, per-item results, and downloadable files keyed by campaign_id — which is concrete and distinguishable from write-oriented siblings like prepare_campaign_pack and retry_campaign_pack. It stops short of naming those siblings, so the read-versus-write distinction is only implicit.

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?

The only usage constraint given is 'Registered account required', which is a prerequisite rather than when-to-use guidance. There is no explicit statement that this should be called after prepare_campaign_pack or retry_campaign_pack to poll status — that link exists only in the schema's parameter description, not in the tool description.

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