Skip to main content
Glama

Set the share card (WeChat card title, description, cover)

set_share_card
Idempotent

Change the card a page shows when its link is forwarded or pasted in WeChat: title, description (desc) and cover. Stored per page, takes effect immediately, no new version needed: the next time the link is fetched the card is new.

  • Precedence (per item): set here > the live version’s manifest.share > the default (page name / first paragraph / LivePage brand image).

  • cover is a path inside the package (e.g. img/cover.png) and must be in the live version; keep that image in the package when you publish later versions, or the card falls back to no image.

  • Two cards: cover is the link card (opening the page in WeChat and forwarding via the top-right “···”, a 1:1 thumbnail on the right); mini_cover is only the mini-program card (5:4 large image, sent with “Send to friend” in the mini program). Omit mini_cover and the mini-program card uses the same image as cover; mini_cover="auto" uses the automatic card (page 1 for PDF/PPT, otherwise a text title card).

  • Pass only what changes; null for an item clears the per-page value and falls back to manifest.share / the default.

  • The result gives the card’s actual title / description / cover after the change (the same one WeChat fetches).

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": {
      "proposal_id": "<proposal_id>"
    },
    "name": "set_share_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
descNoCard description, up to 300 characters; null clears it
coverNoCover: a path inside the live version’s package; null clears it
titleNoCard title, up to 120 characters; null clears it
mini_coverNo小程序卡片单独的封面:包内相对路径或 auto;null = 清掉(跟 cover 同一张)
proposal_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / mini_cover
      Added value: +{
      +  "anyOf": [
      +    {
      +      "maxLength": 512,
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "小程序卡片单独的封面:包内相对路径或 auto;null = 清掉(跟 cover 同一张)"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only say non-read-only, non-destructive, idempotent; the description goes well beyond by stating changes take effect immediately with no new version, that cover must exist in the live version or the card falls back to no image, and the exact precedence/fallback chain. It also describes what the response returns, which the tool lacks an output schema for.

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-loaded action sentence followed by scannable bullets, no filler. It runs long and the mini_cover explanation is dense, but every bullet carries non-obvious behavior rather than restating the 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 mutation tool with no output schema and no annotation detail, the description covers timing, fallbacks, image constraints, and the return value. The one omission is how the target page is specified — the required proposal_id goes unexplained in both description and schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 80% schema coverage the baseline is 3, but the description adds real meaning: per-item precedence, cover being a package-internal path that must exist in the live version, mini_cover's 'auto' behavior and 5:4 mini-program card semantics, and null-clears-value. The gap is proposal_id — the required parameter is never mentioned and identifies which page is being modified.

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?

Opens with a concrete verb+resource and enumerates the three fields it touches: 'Change the card a page shows when its link is forwarded or pasted in WeChat: title, description (desc) and cover.' This is clearly distinct from siblings like revoke_share_link or set_visibility without needing to open the schema.

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

Usage Guidelines4/5

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

Gives strong operational rules — precedence (set here > manifest.share > default), 'pass only what changes', null to clear, and omitting mini_cover to inherit cover. It never names an alternative tool or an explicit when-not-to-use case, so routing guidance is contextual rather than comparative.

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