Skip to main content
Glama
Upload-Post

Upload-Post

Official

Generate platform-integration JWT

generate_jwt
Destructive

Generate a JWT and connection URL so end users can connect social accounts in an embedded Upload-Post flow; the profile must exist and each call resets its connection-page settings.

Instructions

Generate a JWT + connection URL so an end-user can connect socials inside an embedded Upload-Post flow (white-label integration). The profile must already exist. Each call resets the profile's connection-page settings to the values passed. To simply help the account owner connect their own socials, prefer get_connect_link.

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": {
      "username": "<username>"
    },
    "name": "generate_jwt"
  }
}

Input Schema

NameRequiredDescriptionDefault
languageNoForce the connection page language for this profile. When omitted, the page auto-detects the visitor's browser language and falls back to English.
uiLabelsNoFlat map of i18n dot-path keys to replacement strings for the connection page, e.g. { 'connect.title': 'Link your accounts' }. Max 100 entries; keys must match ^[a-zA-Z0-9_.]+$ and values are at most 300 characters. Echoed back in the `profile` object of validate_jwt.
usernameYes
logoImageNo
platformsNo
redirectUrlNo
connectTitleNo
showCalendarNo
clientApprovalNoNot generally available yet (post approvals). true lets the end client approve or reject this profile's pending posts from the connect page; generate again with false to turn it off.
readonlyCalendarNo
connectDescriptionNo
redirectButtonTextNo

Output Schema

NameRequiredDescriptionDefault
resultNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.26.5
    • addedInput schema / properties / clientApproval
      Added value: +{
      +  "description": "Not generally available yet (post approvals). true lets the end client approve or reject this profile's pending posts from the connect page; generate again with false to turn it off.",
      +  "type": "boolean"
      +}
  2. Changed2 schema fields changedv0.11.1
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  3. Changed2 schema fields changedv0.7.0
    • changedInput schema / properties / language / enum
      Previous value: -[
      -  "en",
      -  "es",
      -  "de",
      -  "fr",
      -  "pt"
      -]New value: +[
      +  "en",
      +  "es",
      +  "de",
      +  "fr",
      +  "pt",
      +  "pl",
      +  "tr"
      +]
    • addedInput schema / properties / uiLabels
      Added value: +{
      +  "additionalProperties": {
      +    "maxLength": 300,
      +    "type": "string"
      +  },
      +  "description": "Flat map of i18n dot-path keys to replacement strings for the connection page, e.g. { 'connect.title': 'Link your accounts' }. Max 100 entries; keys must match ^[a-zA-Z0-9_.]+$ and values are at most 300 characters. Echoed back in the `profile` object of validate_jwt.",
      +  "type": "object"
      +}
  4. First observedv0.4.0

TDQS

A4.3/5.0
Behavior4/5

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

The annotations declare destructiveHint=true, and the description earns credit for explaining exactly what is destroyed: "Each call resets the profile's connection-page settings to the values passed," which tells the agent that an existing configuration can be overwritten on every call. It adds the profile-existence prerequisite as well. It does not discuss token lifetime/expiry or whether the reset is recoverable, so it stops just 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.

Conciseness5/5

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

Three sentences, front-loaded with what the tool produces, then the prerequisite, the side effect, and the alternative. No filler or duplication of schema content.

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?

The output schema means return values need no explanation, and the key risks (destructive reset, profile prerequisite, alternative tool) are covered. For a 12-parameter tool with a nested object and only 25% schema coverage, however, the many connection-page customization parameters remain unexplained, leaving an agent guessing about what each one changes.

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 low (25%), so the description carries a larger burden, and it only partially compensates: the "resets settings to the values passed" clause implies that omitted options revert rather than persist, which is genuinely useful semantics. Eight parameters (logoImage, platforms, redirectUrl, connectTitle, showCalendar, readonlyCalendar, connectDescription, redirectButtonText) get no meaning from the description at all. A 3 reflects partial compensation for the coverage gap.

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?

The description gives a specific verb+resource ("Generate a JWT + connection URL") and pins the exact scenario (embedded white-label Upload-Post flow for end-users connecting socials). It is clearly distinguishable from get_connect_link and validate_jwt by naming the embedded-integration use case.

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?

It states a prerequisite ("The profile must already exist") and an explicit exclusion with the alternative to prefer ("To simply help the account owner connect their own socials, prefer get_connect_link"). The routing decision between this and the sibling is unambiguous.

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

Deploy Server

Other Tools