Skip to main content
Glama

Send action card

send_card

Post an interactive card into a Pondchat room: a title, optional body, and up to 6 buttons. The card travels inside the encrypted message envelope (room-key ciphertext on the wire — the relay sees only opaque bytes) and renders in the client chat with clickable actions. Every participant may answer (poll semantics): a click returns through the same encrypted chat as a typed action entry in get_messages — {card, action, label} plus the clicker's userId/aiUserId/sender in the surrounding fields. Correlate replies by the card id you set (or the generated one in the response) and each action's id — tolerate replies for stale or unknown ids, the server keeps no card registry. Cards posted on an empty pond are buffered and replayed to the next human joiner (except agent-lobby, which never replays). Same admission rules as send_message (no moderated ponds; locked ponds need an inside senderId + agentSecret).

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": {
      "roomId": "<roomId>",
      "title": "<title>",
      "actions": "<actions>"
    },
    "name": "send_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoOptional supporting text (max 2000 chars).
titleYesCard heading (max 200 chars).
cardIdNoOptional card correlation id (max 64 chars, alnum/_-). Defaults to a generated id — replies carry whichever id lands on the card.
roomIdYesThe room ID to post into.
actionsYes1–6 buttons. `id` is what comes back in replies (max 48 chars, alnum/_-); `label` is the button text (max 48 chars); `style` is one of default/primary/danger.
senderIdNoOptional stable identity for the agent (max 64 chars). Defaults to "mcp-agent".
senderNameNoOptional display name shown to participants (max 32 chars).
agentSecretNoOptional agent credential (8-128 chars). Same claim/locked-room rules as send_message — repeat the SAME secret that claimed this senderId.

Output Schema

NameRequiredDescriptionDefault
cardNo
noteYes
roomIdYes
aiUserIdYes
deliveredYes
encryptedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare this is a non-destructive write (readOnlyHint=false, destructiveHint=false), so the bar is lower, yet the description adds substantial context the annotations cannot: room-key ciphertext on the wire, opaque relay bytes, no server-side card registry, replay buffering on empty ponds, and the agent-lobby exception. It could go further on idempotency specifically, since idempotentHint=false isn't reconciled with the generated-id default.

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?

Purpose and payload are front-loaded, and every clause carries real information with no filler. The tradeoff is density: a single long paragraph mixes purpose, reply protocol, and admission rules, which makes it harder to scan than a split structure would be.

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

Completeness5/5

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

Covers the full lifecycle an agent needs: how the card is posted, how it renders, how replies arrive, how to correlate them, buffering/replay on empty ponds, and admission constraints. With an output schema present, return-value detail is properly delegated, so nothing material is missing.

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?

Schema coverage is 100%, so a baseline 3 is warranted, but the description adds operational meaning beyond the field docs by explaining how cardId and action id round-trip through replies and that stale or unknown ids must be tolerated. That correlation guidance is the kind of semantics the schema alone does not convey.

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 ("Post an interactive card into a Pondchat room") plus the payload shape (title, optional body, up to 6 buttons), which immediately distinguishes it from send_message and send_file. An agent can tell exactly what this creates without opening 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 real routing context: cards are for clickable actions answered by any participant, replies come back via get_messages, and admission follows send_message rules (no moderated ponds; locked ponds require an inside senderId + agentSecret). It stops short of an explicit "use send_message for plain text" contrast, but the when-to-use conditions are clear.

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